Archive: uninstaller not in root directory


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:


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


Thanks! That was helpful. :)


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]

Virtlink, you can do that with /D=(another inst dir).

In [ php ] use double backslash to represnt one backslash.