Re: UNINSTALL FAILS on Pocket PC, subdirectories by obelix
obelix
Wed Sep 15 01:43:06 CDT 2004
thank You for the answer
Actually I have already tried Your idea, and it doesn't work:(
I did a workaround that helps my purposes, but isn't rather too
flexible.
I set
%InstallDir% on %CE1%\myApp\dir5\sub1
than added in [Strings]
%InstallMyApp% on %CE1%\myApp
and in [DestinationDirs]
Files.Dir1 = 0,%InstallMyApp%\dir1
Files.Dir2 = 0,%InstallMyApp%\dir2
Files.Dir3 = 0,%InstallMyApp%\dir3
Files.Dir4 = 0,%InstallMyApp%\dir4
Files.Dir5.Sub1 = 0,%InstallDir%\foo
Files.Dir5.Sub2 = 0,%InstallDir%\bar
It works fine as long as I don't wish to have two directories in some
other path as %CE1%\myApp\dir5\sub1.
best regards
Simon:)
"Scott Yost [MSFT]" <scyost@online.microsoft.com> wrote in message news:<O5TWtvrmEHA.596@TK2MSFTNGP11.phx.gbl>...
> This seems to be a problem with the 2003 PPC uninstaller. The same problem
> doesn't exist on 2003 Smartphones or on future versions, but in your case
> the only workaround is not to create a directory structure like that.
>
> Have you tried doing it like this instead?
> Files.Dir5 = 0,%InstallDir%\dir5\sub1\
> Files.Dir5.Sub1 = 0,%InstallDir%\dir5\sub1\foo
> Files.Dir5.Sub2 = 0,%InstallDir%\dir5\sub1\bar
>
> That might help.
>
> --
> Scott Yost
> Software Development Engineer/Test
> Microsoft Corp.
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "obelix" <obelix@zeus.polsl.gliwice.pl> wrote in message
> news:a4cc9408.0409130409.57def71@posting.google.com...
> > hi there:)
> > My case is as follows.
> >
> > I install the application on the iPAQ with the following entries in
> > the .inf file:
> >
> > [CEStrings]
> > AppName="myApp"
> > InstallDir=%CE1%\myApp
> > ...
> > than in
> > [DestinationDirs]
> > Files.Dir1 = 0,%InstallDir%\dir1
> > Files.Dir2 = 0,%InstallDir%\dir2
> > Files.Dir3 = 0,%InstallDir%\dir3
> > Files.Dir4 = 0,%InstallDir%\dir4
> >
> > Files.Dir5.Sub1 = 0,%InstallDir%\dir5\sub1\foo
> > Files.Dir5.Sub2 = 0,%InstallDir%\dir5\sub1\bar
> >
> > Than as I want to uninstall myApp following happens.
> > Files cannot be deleted, becouse they are either being executed, or
> > are read-only, or they are on the other storage card. Delete it
> > manually.
> > And it concerns only this subdirectory:
> > \Program Files\myApp\dir5\sub1
> >
> > If I do only this:
> > Files.Dir5.Sub1 = 0,%InstallDir%\dir5\sub1\foo
> > without the "Files.Dir5.Sub2 = 0,%InstallDir%\dir5\sub1\bar"
> > I do not get this error.
> >
> > So I did some more testing and it seems that if I have two or more
> > directories(A and B, ..) in a directory C, and those A and B are two
> > levels far from the "InstallDir" this error occurs.
> >
> > I do not know if I'm right. If there is anyone who could correct me
> > please do so.
> >
> > with best regards
> > Simon:)