paolof
1st March 2006 09:22 UTC
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
Takhir
1st March 2006 09:36 UTC
Move SetOutPath $INSTDIR to the first section, otherwise destination dir not exists and Uninstaller copy fails.
paolof
2nd March 2006 09:34 UTC
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 10:10 UTC
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 ;)