|
|
#1 |
|
Junior Member
Join Date: Feb 2010
Posts: 1
|
Launch Parameters into variables
Is it possible to set parameters at the start of the installer so that they appear in variable form?
example nsis_install.exe /var=5 the above sets ${VAR} to 5 or something similar. Thanks. |
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
${VAR} isn't a variable, it's a define.
What you probably want to do is get the parameter in .onInit (google is your friend), then StrCpy $VAR ParamValue . |
|
|
|
|
|
#3 |
|
Junior Member
|
You can use the Files functions header (Appendix E.1 of the manual)
I personally use something like this: PHP Code:
After you get the parameter, you can set it to a variable with a StrCpy as MSG posted. As I said before, the documentation is in the Appendix E (Useful Headers) in the File Functions Header section. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|