Skip to content
⌘ NSIS Forum Archive

RMDir /REBOOTOK behaviour

3 posts

scrose#

RMDir /REBOOTOK behaviour

I would be surprised if this hasn't been mentioned before. I searched this forum and the bug tracker and couldn't find anything relevant. My apologies if this has already been discussed.

It appears that when RMDir /REBOOTOK attempts to delete a directory that does not exist, the RebootFlag is set to true. Note that this does not occur when Delete /REBOOTOK attempts to delete a file that does not exist.

I have attached a script that demonstrates this.

Is this a bug with RMDir? I believe it should behave the same as Delete and realize that the directory does not exist, therefore no reboot is required.
kichik#
That's weird. Seems MoveFileEx allows moving non existent files after reboot. Please submit this to the bug tracker. I'll take a better look at it after 2.03.