![]() |
#1 |
Junior Member
Join Date: Jan 2021
Posts: 5
|
Using /D with makensis.exe
I am trying to define and/or override some !defines in script using /D on the command line. But I can't get it to work correctly.
I made the following test installation script: code: I'm calling makensis.exe like this: "C:\Program Files (x86)\NSIS\makensis.exe" "testscript.nsi" /DTESTDEFINE="from command line" If working correctly, then the pop-up message window when the script creates the setup EXE should read "Def is from command line". But it instead reads "Def is in script" If I remove TESTDEFINE from the script, I get this compilation error: code: If I have it defined in the script, the compilation completes with no errors and makensis says: Command line defined: "TESTDEFINE=from command line" But it does not change TESTDEFINE in the script. What am I doing wrong? Dave |
![]() |
![]() |
![]() |
#2 | ||
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,356
|
Read the makensis command line help one more time. It specifically tells you
Quote:
Quote:
IntOp $PostCount $PostCount + 1 |
||
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jan 2021
Posts: 5
|
Ugh... obviously totally missed that. Thank you!
|
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|