Archive: Return values to the command prompt in silent mode.


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


Use SetErrorLevel with the latest CVS version.


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.


Run <NSIS folder>\Docs\src\build.bat on the latest CVS version and you'll get the latest documentation which includes information about SetErrorLevel.


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


Latest CVS version, not latest version. You can use the nightly snapshot from the front page or check out the files from CVS.


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


Function .onInit
SetErrorLevel 500
FunctionEnd