Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 14th March 2002, 14:03   #1
mmullikin
Junior Member
 
Join Date: Mar 2002
Posts: 16
Send a message via AIM to mmullikin Send a message via Yahoo to mmullikin
Unhappy Uninstall from alternate folder bug?

Using NSIS v1.96

I have reason (it's a long story) to place my UNINSTALL.EXE into a different folder (not the $INSTDIR). However during the uninstall process it does not seem to honor the true $INSTDIR folder, instead it believes the $INSTDIR is the folder where the UNINSTALL.EXE is located.

I was able to fix this in the script by using a "ReadRegStr" command (it won't let me use "InstallDirRegKey" a second time), but I wanted to report this issue (bug?) in case I'm wrong or there is a better work around.

Thanks,

mmullikin
mmullikin is offline   Reply With Quote
Old 14th March 2002, 15:22   #2
rainwater
Senior Member
 
Join Date: Aug 2000
Posts: 396
Send a message via ICQ to rainwater
I have had the same problem. It seems to use EXEDIR as the INSTDIR. What I did was read the install dir from the registry. Then used that for all of my deletes.
rainwater is offline   Reply With Quote
Old 16th March 2002, 04:17   #3
justin
Moderator Alumni
 
Join Date: Apr 2000
Location: USA
Posts: 315
It assumes that $EXEDIR of the uninstall is the $INSTDIR.
If you do something like put the uninstaller in $INSTDIR\MiscCrap,
you can always do something like this:

Function un.onInit
Push $INSTDIR
Call un.GetParent ; see functions.nsi
Pop $INSTDIR ; update $INSTDIR with parent dir.
FunctionEnd

Justin
justin is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump