NSIS Uninstaller Working Directory
Posted
by James Thigpen
on Stack Overflow
See other posts from Stack Overflow
or by James Thigpen
Published on 2010-05-12T18:51:11Z
Indexed on
2010/05/12
18:54 UTC
Read the original article
Hit count: 303
I am using NSIS to create my installers/uninstallers, and the uninstaller seems to have a weird behavior.
I don't put the installer in $INSTDIR, it is located at $INSTDIR/subdir/uninstall.exe (it's a addon installer for a host application).
When I run the installer then, it thinks the application installation root is $INSTDIR/subdir instead of $INSTDIR. It then can't find all the files in subdir/* as it's already in subdir.
If I move the executable, it seems to just accept the current directory as where the application installation root is. I can move it to $INSTDIR and all is well.
Thanks.
© Stack Overflow or respective owner