treaz
10th February 2003 16:09 UTC
uninstaller not in root directory
Hi,
I was just wondering if it is possible for me not to place my uninstaller at the root directory (the $INSTDIR). I have tried to place it in a subdirectory but apparently when I do this the uninstaller does not delete all the files that I want it to during uninstaller.
Could anyone pls advice? Thanks in advance.
:confused:
kichik
10th February 2003 16:29 UTC
The uninstaller's $INSTDIR is the directory it starts in. If you put it in a sub-directory then the $INSTDIR reported in the uninstaller will be $INSTDIR\subdir. To get $INSTDIR use GetParent
treaz
12th February 2003 00:07 UTC
Thanks! That was helpful. :)
virtlink
12th February 2003 10:50 UTC
A suggestion:
uninstall.exe C:/install_dir
>
or
uninstall.exe ../relative_dir
>
Then you can write, for example, the parameter in the registry in the uninstaller key for Windows, with the full path or relative path. Then it will be uninstalled.
Please say whether this is an option, else I don't even have to post it at SF.
[edit]Why can't I use backslashes?[/edit]
kichik
12th February 2003 14:22 UTC
Virtlink, you can do that with /D=(another inst dir).
In [ php ] use double backslash to represnt one backslash.