Old 25th January 2007, 07:34   #1
dmdm
Junior Member
 
Join Date: Jan 2007
Posts: 4
Question 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?
dmdm is offline   Reply With Quote
Old 25th January 2007, 08:19   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 25th January 2007, 17:40   #3
dmdm
Junior Member
 
Join Date: Jan 2007
Posts: 4
1. not well
2. how? manually? but most scirpts are like: configuration, copy all files using mask *.* - so progress 0%, 1%, 100%...
dmdm is offline   Reply With Quote
Old 25th January 2007, 17:45   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Yes, manually. You can split files masks if most of your installation is File *.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 25th January 2007, 20:33   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 25th January 2007, 21:08   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
And for $TEMP initialization (only /S though):

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

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 26th January 2007, 05:42   #7
dmdm
Junior Member
 
Join Date: Jan 2007
Posts: 4
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 ?
dmdm is offline   Reply With Quote
Old 26th January 2007, 10:48   #8
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 29th January 2007, 16:34   #9
onad
Senior Member
 
onad's Avatar
 
Join Date: Dec 2004
Location: Turkey
Posts: 447
Thumbs up

Great improvement!

"Just do it"
onad is offline   Reply With Quote
Old 30th January 2007, 05:09   #10
dmdm
Junior Member
 
Join Date: Jan 2007
Posts: 4
also for me
dmdm is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump