i have a new problem. I write a new Environment-Variable in my installer like this
${EnvVarUpdate} $0 "VarName" "A" "HKLM" "$INSTDIR" this works fine. But later in my installer i start with ExecWait a .bat file which needs the EnVar "VarName".
But the result is that the Service could not find the ${VarName}.ExecWait $INSTDIR\installService.bat
Could anyone please help me with my problem?