Archive: makensis Query


makensis Query
Hi All,

I have one question regarding makensis. I want to create installer using makensis command. i want to read some parameters here and make my installer accordingly. What do I need to add in my script for this functionality ?

For example, I want to provide langid=1036 in makensis command, so my script creates English installer accordingly. I dont want to change my script again and again. I want only one script which creats installers of different types based on the arguments value provided at makensis.exe command.

Is it possible anyhow ?

Thanks
Sunil.


More on my question, say I want to create Type1 release, then some specific set of files should go t o installer, and if I want to create Type2 release, then some other set of files should go to installer.

Where can I add this functionality in the script ?

Please help
Sunil.


Both of your question can be answered using the !define command


!ifdef TYPE1
File /r C:\Type1\*.*
!endif
!ifdef TYPE2
File /r C:\Type2\*.*
!endif



To call it from command line use:

start makensisw.exe /DTYPE1 script.nsi
start makensisw.exe /DTYPE2 script.nsi

or use the settings dialog in makensisw

Thanks a lot .. It worked perfect.

-- Sunil.