Hello,
I'm relatively new to working with the NSIS Installer. Most features are easy to handle and I get a success, but there is one thing which I didn't get a solution for.. I've been trying since yesterday morning, so hopefully you can help me with it
.
After installing files to the install-directory, I have to start a Batch-file with parameters to do some operations.
So I do either
With option 1 I get a 1 whatever I do on input.
With option 2 I get always a -.
When I start the batch exclusively, it returns either "OK" or "ERROR".
This "State" I have to return to my NSIS installer. Depending on it the Installer will throw an Error in a MessageBox or continue.
So, how am I supposed to do this?
I'm relatively new to working with the NSIS Installer. Most features are easy to handle and I get a success, but there is one thing which I didn't get a solution for.. I've been trying since yesterday morning, so hopefully you can help me with it

After installing files to the install-directory, I have to start a Batch-file with parameters to do some operations.
So I do either
orcode:
ExpandEnvStrings $0 %COMSPEC%
ExecWait '"$0" /C "$SOMEDIRECTORY\my.bat" "quotedparameter" parameter2 parameter3' $0
MessageBox MB_OK "Exit code $0"
..but nothing works like I supposed.code:
ExpandEnvStrings $0 %COMSPEC%
ExecDos::exec '"$0" /C "$SOMEDIRECTORY\my.bat" "quotedparameter" parameter2 parameter3' '' "$EXEDIR\stdout.txt"
Pop $0
MessageBox MB_OK "Exit code $0"
With option 1 I get a 1 whatever I do on input.
With option 2 I get always a -.
When I start the batch exclusively, it returns either "OK" or "ERROR".
This "State" I have to return to my NSIS installer. Depending on it the Installer will throw an Error in a MessageBox or continue.
So, how am I supposed to do this?
Comment