Archive: Rename /REBOOTOK and long filenames


Rename /REBOOTOK and long filenames
Hi NSIS gurus :),

I searched in the forums a little bit and I understand that "Rename /REBOOTOK" uses "wininit.ini" and the [Rename] section to rename files on reboot under Windows 98 (there is no other way anyway, right?).

In my installer I have to upgrade some EXE files that have long file names (with spaces), for example:

C:\Program Files\Something\Hey Dude.exe

What happens when renaming on reboot under windows 98 if the file was in use is that it gets renamed to:

C:\Program Files\Something\HeyD~1.exe

...which messes up the shortcuts I had setup for it in the start menu.

I understand the 8.3 limitation is on wininit.ini, not NSIS but is there a known workaround I can use to fix this?

Thanks a lot in advance.


This is a Windows limitation, there is no other way.