PDA

View Full Version : delete on reboot


Soundbytes
22nd November 2006, 14:51
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!

glory_man
23rd November 2006, 16:15
Use code like this:
IfFileExists "$INSTDIR\*.*" +2 0
RMDir /REBOOTOK "$INSTDIR"
goto +2
RMDir "$INSTDIR"