I'm starting with my first NSIS script, reading docs and looking at examples.
Two questions:
I have something like this:
The messagebox shows $P_FullName doesn't include the value set for the EMS_SERVICEID environment variable (through $P_ServiceName). Am I missing something?!define C_VERSION "1.0.0"
!define C_APPNAME "MYTEST"
Var P_ServiceName
Var P_FullName
Function .onInit
ReadEnvStr $P_ServiceName EMS_SERVICEID
StrCpy $P_FullName "${C_APPNAME}_$P_ServiceName"
MessageBox MB_YESNO "This will install $P_FullName. Continue?" IDYES NoAbort
Abort ; causes installer to quit.
NoAbort:
FunctionEnd
Another question: is it possible to supply a string as parameter to the install program and have the installer get and use the string for building the default install path name etc?
Thanks a lot,
Mario