- NSIS Discussion
- silent installations
Archive: silent installations
dmdm
25th January 2007 08:34 UTC
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?
kichik
25th January 2007 09:19 UTC
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.
dmdm
25th January 2007 18:40 UTC
1. not well
2. how? manually? but most scirpts are like: configuration, copy all files using mask *.* - so progress 0%, 1%, 100%...
kichik
25th January 2007 18:45 UTC
Yes, manually. You can split files masks if most of your installation is File *.
kichik
25th January 2007 21:33 UTC
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
kichik
25th January 2007 22:08 UTC
And for $TEMP initialization (only /S though):
http://nsis.cvs.sourceforge.net/nsis...1=1.77&r2=1.78
dmdm
26th January 2007 06:42 UTC
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 ?
kichik
26th January 2007 11:48 UTC
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.
onad
29th January 2007 17:34 UTC
Great improvement!
dmdm
30th January 2007 06:09 UTC
also for me :)