Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Remove uninst.exe and reinstall (http://forums.winamp.com/showthread.php?t=239576)

paolof 1st March 2006 08:22

Remove uninst.exe and reinstall
 
1 Attachment(s)
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

Takhir 1st March 2006 08:36

Move SetOutPath $INSTDIR to the first section, otherwise destination dir not exists and Uninstaller copy fails.

paolof 2nd March 2006 08:34

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 ?

Takhir 2nd March 2006 09:10

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 ;)


All times are GMT. The time now is 04:39.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.