VCR
29th September 2004 10:17 UTC
Return values to the command prompt in silent mode.
Hi all,
How do I return and display different codes to the command prompt when my installer is executed in silent mode.
Presently I display message-boxes and pages in non-silent mode, but want the user to know about the failure/pass with the return codes displayed on the prompt after the execution in silent mode.
Can anybody tell me how can I do that?
Thanks and Regards,
VCR
kichik
29th September 2004 11:48 UTC
Use SetErrorLevel with the latest CVS version.
VCR
29th September 2004 13:57 UTC
Hi,
I don't find the documentation or work-examples of SetErrorLevel. Details are available only on SetErrors, which will set the error flag.
Can you give me an example of SetErrorLevel as to how it can help me in returning different error-codes to command-prompt in silent-mode.
Regards,
VCR.
kichik
29th September 2004 14:02 UTC
Run <NSIS folder>\Docs\src\build.bat on the latest CVS version and you'll get the latest documentation which includes information about SetErrorLevel.
VCR
29th September 2004 14:49 UTC
Hi,
I downloaded the latest release of NSIS.
But I did not find the above said directory and batch file.
I have Programfiles\NSIS\Docs\CVS and some 3 files under CVS. Thats all.
Pls help me.
-VCR
kichik
29th September 2004 14:55 UTC
Latest CVS version, not latest version. You can use the nightly snapshot from the front page or check out the files from CVS.
VCR
30th September 2004 04:52 UTC
Thanks for reply..
Can anyone plzzz give me a simple example script to show how can we return values from the installer or un-installer script.
Thanks in advance..
Regards
VCR
kichik
30th September 2004 09:27 UTC
Function .onInit
SetErrorLevel 500
FunctionEnd