Old 1st March 2006, 08:22   #1
paolof
Junior Member
 
Join Date: Feb 2006
Posts: 5
Remove uninst.exe and reinstall

In the Uninstall section I delete the Uninst.exe file and then I remove $INSTDIR.

Now if I run the Uninst.exe (it works right, it delete itself and remove $INSTDIR) and after setup.exe (without reboot) the file Uninst.exe doesn't appear in $INSTDIR.
To solve this I've to run setup.exe twice.

I've WinXP SP2.


The attached file is a simple script that shows the problem.

Thanks
Attached Files
File Type: nsi test.nsi (354 Bytes, 319 views)
paolof is offline   Reply With Quote
Old 1st March 2006, 08:36   #2
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Move SetOutPath $INSTDIR to the first section, otherwise destination dir not exists and Uninstaller copy fails.
Takhir is offline   Reply With Quote
Old 2nd March 2006, 08:34   #3
paolof
Junior Member
 
Join Date: Feb 2006
Posts: 5
Many thanks Takhir it works fine.
But I think the behavior is enough odd, why the second time (or the absolutely first time) the uninstaller copy doesn't fail ?
paolof is offline   Reply With Quote
Old 2nd March 2006, 09:10   #4
Takhir
Major Dude
 
Join Date: Feb 2004
Location: Moscow, Russia
Posts: 1,222
Copy fails first time because folder not exists yet, but installer sets error flag only (IfErrors) and not displays message box. You can send bug report or feature request
Takhir is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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