WINAMP.COM | Forums > Developer Center > NSIS Discussion > Set silent installer exit code? |
Last Thread
Next Thread
|
| Author |
|
|
BSOD2600 Member
Registered: Jan 2006 |
How does one set a unique exit code/error level and/or error message when using the silent installer feature? I've already searched and found the following: |
||
|
|
|
MSG Senior Member
Registered: Oct 2006 |
In the thread you linked, kickik said you can't set your own exit code in NSIS. |
||
|
|
|
ChocJunkie Senior Member
Registered: Oct 2009 |
|
||
|
|
|
BSOD2600 Member
Registered: Jan 2006 |
|
||
|
|
|
MSG Senior Member
Registered: Oct 2006 |
|
||
|
|
|
BSOD2600 Member
Registered: Jan 2006 |
|
||
|
|
|
MSG Senior Member
Registered: Oct 2006 |
.oninstsuccess and .oninstfailed then? Or just at the end of the last section. |
||
|
|
|
pengyou Senior Member
Registered: Mar 2003 |
I tried modifying the MUI2 'Basic.nsi' example to return an error code. When I ran it using /S on the command-line it returned the correct error code. |
||
|
|
|
BSOD2600 Member
Registered: Jan 2006 |
I'm making the installer silent via the /S command. code: What I really want to do, is to read in the silent answer file, parse it to check for issues and then throw various error codes/messages based before the installer actually gets to installing... |
||
|
|
|
pengyou Senior Member
Registered: Mar 2003 |
I think I see what the problem is: "1500" is the expected value when the script is run silently. My script is attached.code:
|
||
|
|
|
BSOD2600 Member
Registered: Jan 2006 |
Well heck, that made it easy and my existing code does work after all. Guess my validation was wrong the whole time. |
||
|
|
|
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > Set silent installer exit code? |
Forum Rules:
|