i used to set /DOutFile="[path]/setup.exe" at compilation time to set path of application.
I wanted to add another /D switch like :
and in the setup.nsi :
makensis /V2 /DOutFile="..\Dist\pdc\setup.exe" /DInstallProdName="MyNewApp" setup.nsi
But it doesn't work (but Outfile variable works), it always take "MyOldApp" as if InstallProdName was never defined.
!ifndef InstallProdName
!define InstallProdName
!endif
..."MyOldApp"
Name ${InstallProdName}
....
VIAddVersionKey /LANG=${LANG_FRENCH} ProductName ${InstallProdName}
...
!ifndef OutFile
!define OutFile "setup.exe"
!endif
is it possible to define these variables at compile time ?