View Single Post
Old 6th November 2012, 18:57   #4
LoRd_MuldeR
Major Dude
 
LoRd_MuldeR's Avatar
 
Join Date: Sep 2005
Location: Somewhere over the Slaughterhouse
Posts: 797
Why do this at install-time? Why not change the icon of the EXE before building the installer?

I don't know how you compile the EXE file that you are going to deploy with your NSIS installer, but if you build with Visual Studio, for example, chaining the icon in an automated way should be straight forward by modifying the .RC file before calling MSBuild.

And, if the decision what icon is needed can only be drawn at install time, them simply package several variants of the EXE file (each with different icon) in your installer and then pick/extract the desired one...

(Adding more EXE files to the installer that only differ from the "main" EXE by their icon should compress to ~0 bytes)

My Plugins: StdUtils | NSISList | CPUFeatures | ExecTimeout | KillProc
My source of inspiration: http://youtu.be/lCwY4_0W1YI
LoRd_MuldeR is offline   Reply With Quote