Archive: silent installations


silent installations
hi
sorry for my english

i have server, where are storage install files
server sends install files to remote computers and install it,
during installation users on remote computer can't see any dialog etc.
so i use silent mode, but:
1. if problem with crc -> appears dialog, i won't disable checking crc because problem with crc is important for me, so is it possible to disable all dialogs and have informations about problems? ( eg.: error code from exe file )
2. haw to obtains progress in silent mode?


CRC error can pop-up even if CRC is disabled in some cases. There's currently no way to hide it, silent or not.

If you want to see progress on silent mode, you'll have to do it manually by, for example, writing it to a known file.


1. not well
2. how? manually? but most scirpts are like: configuration, copy all files using mask *.* - so progress 0%, 1%, 100%...


Yes, manually. You can split files masks if most of your installation is File *.


I've updated the CRC code to get the silent flag as early as possible. It will now show a message only in extreme cases where it couldn't get the silent flag from the header (command line flag will override this). It'll also still show a message if it can't initialize the temporary directory because it needs the directory for extracting data, including the header.

The diff is available at CVS.

http://nsis.cvs.sourceforge.net/nsis...1=1.61&r2=1.62


And for $TEMP initialization (only /S though):

http://nsis.cvs.sourceforge.net/nsis...1=1.77&r2=1.78


1. the best would be callback .onProgress... ( dream... )
2. sorry for questions but i haven't full access to internet in company ( eg. nsis cvs ), so a can't checking your solution now:
in silent mode ( /S ) not exists any bug window? ( crc and other )? and install file return <> 0 ?


You can use the nightly build from the development page, if you don't have CVS access.

With the latest version, using /S will suppress all messages. It's parsed before the installer is even opened for the headers. The return code, however, will stay on 2 in case of error, silent or not.


Great improvement!


also for me :)