Archive: Dyn. name of installer.


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.


You should put your binaries in a different (sub)folder.


yep I know I can, but I really want to do this... :(


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.


Yep I will do that, thanks again MSG.


Yep I will do that, thanks again MSG ;)