Archive: Remove uninst.exe and reinstall


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


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


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 ?


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