Old 21st May 2003, 15:28   #1
e-novative
Junior Member
 
Join Date: Nov 2002
Location: Munich, Germany
Posts: 16
Silent installations

When I run an NSIS installer as silent, how is the behaviour when the installer opens dialog boxes and/or asks the user to select options?

Can I/must I influence this behaviour when coding the script?

Thanks for any help!

Steve
e-novative is offline   Reply With Quote
Old 21st May 2003, 18:50   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
The normal wizard pages won't be displayed, but your own message boxes will appear.
Joost Verburg is offline   Reply With Quote
Old 22nd May 2003, 09:14   #3
e-novative
Junior Member
 
Join Date: Nov 2002
Location: Munich, Germany
Posts: 16
So how can I provide answers to a slient installer? Can I do something similar to creating an .iss answer file with Install Shield?

For the background: I have created a fully automated test environment with VMWare which starts a VM, remotely installs some application (or installs one, then upgrades it to another version) and performs various pre- and postcondition tests. That way I can have a coffee while my computer checks what I broke when updating my installer.

This is perfect as long as I can run a silent install of a script that does not offer any options. But when the script requires the user to select options, I don't know how to do this silently.

Steve
e-novative is offline   Reply With Quote
Old 22nd May 2003, 09:26   #4
Sunjammer
Major Dude
 
Join Date: Jun 2002
Location: Swindon, UK
Posts: 559
Write the answers into a file that your installer reads using file read commands. Then base your actions on what you've read. Crappy but NSIS doesn't support silent automation via an .iss type file (yet).
Sunjammer is offline   Reply With Quote
Old 22nd May 2003, 15:12   #5
e-novative
Junior Member
 
Join Date: Nov 2002
Location: Munich, Germany
Posts: 16
Thanks Joost and Sunjammer.

Is there a timeline for incuding iss-like automation? I am not sure how many people out there use automated installation tests, but when you have to test an app on different os'es (possibly in different language, with different service packs), you start thinking about scripting the tests.

Regards,

Steve
e-novative is offline   Reply With Quote
Old 22nd May 2003, 17:08   #6
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
No, there isn't.

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 22nd May 2003, 18:16   #7
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
It won't be anytime soon. There are already a lot of things on the TODO list for NSIS 2 final.
Joost Verburg is offline   Reply With Quote
Old 18th June 2003, 12:13   #8
catfish81
Junior Member
 
Join Date: Nov 2002
Posts: 7
d'oh. so i guess this means unless the NSIS exe file has been designed to handle silent installations, there is no way of installing the package silently?

I just want to do an end-user silent installation from NSIS packages, not actually create the NSIS itself with silent settings.

Is there anyway to do this?

Actually, I just did installfilename.exe /S which does a silent install, but how can I specify where to install to? And any other options that are avilable at install time? Is there a --help switch or something i can use?

Last edited by catfish81; 18th June 2003 at 12:34.
catfish81 is offline   Reply With Quote
Old 18th June 2003, 15:29   #9
n0On3
Senior Member
 
n0On3's Avatar
 
Join Date: Jan 2001
Location: Barcelona
Posts: 314
Send a message via ICQ to n0On3
Quote:
Actually, I just did installfilename.exe /S which does a silent install, but how can I specify where to install to? And any other options that are avilable at install time? Is there a --help switch or something i can use? [/B]
You can use the GetParameters plugin to know the command line, and parse it.

Another way (lot easier), is read from an ini file the variables to install.

for example:
ReadINIStr $3 "$EXEDIR\Settings.ini" "Settings" "Folder"
n0On3 is offline   Reply With Quote
Old 18th June 2003, 16:30   #10
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
To set the installation directory for silent installation use:

installer.exe /S /D=C:\Program Files\Whatever instsallation\Directory\You\Want

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 28th April 2004, 20:04   #11
tuxp3
Junior Member
 
Join Date: Apr 2004
Posts: 1
Send a message via AIM to tuxp3
besides custom install folder..

Im making a slient(-able) installer and want to know how i can get custom input for example a password from the command-line. so i could do
code:

installer.exe /S /D="C:\Program Files\Directory" /Pass="encypted pass here" /other_var="more data"


and have it save (to the registry) the Pass and any other info i want..
or am i limited to reading that information from a file?

Andrew
tuxp3 is offline   Reply With Quote
Old 29th April 2004, 14:03   #12
zimsms
Senior Member
 
zimsms's Avatar
 
Join Date: Jan 2004
Location: London, Ontario, Canada
Posts: 272
See my page in the NSIS Archive.

http://nsis.sourceforge.net/archive/...59&instances=0
zimsms 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