Archive: delete on reboot


delete on reboot
one of my beta testers got a little nervous when he read the "delete on reboot message" in the uninstall summary.

I had to reassure him that the directory in question will in fact not be deleted because it is not empty.

Is there any way to make the deinstaller only display the message when the directory is really empty?

Thanks!


Use code like this:

        IfFileExists "$INSTDIR\*.*" +2 0
RMDir /REBOOTOK "$INSTDIR"
goto +2
RMDir "$INSTDIR"