Skip to content
⌘ NSIS Forum Archive

Dyn. name of installer.

6 posts

Noude#

Dyn. name of installer.

Hello !

I just want to know if it's possible to change the name of the installer of my program.

If I have a folder with: "toto.exe" inside.
And if the name of my installer is "toto.exe" too.

I don't want to overwrite the 1st "toto.exe".

So I want to change dynamically the name of my installer, like "toto(1).exe".

Thanks for help, it's the last thing I have to do in my project, yeaaah.
MSG#
I have my doubts that you can do this in NSIS, but you can use a vbscript to write the automatically generated filename command to, say, outfile.nsh, and then include that in your nsis script. Search the forums for info on how to automatically run a vbscript file during compilation.