This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Passing arguments for silent installation
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 23, 2012
07:44 AM
Passing arguments for silent installation
Hi
I do have an InstallScript MSI project. Besides installing optionaly (user's decision) SQL Server as prerequisite, the installation dialog does also require a few fields to be filled out by the user.
Now, I do have to change the project to allow silent installation, so here are my questions:
I do have an InstallScript MSI project. Besides installing optionaly (user's decision) SQL Server as prerequisite, the installation dialog does also require a few fields to be filled out by the user.
Now, I do have to change the project to allow silent installation, so here are my questions:
- How do I pass an argument on the command line to control whether a given prerequisite should be installed or not?
- How do I pass the arguments to the installer (and handle them within the project)?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Mar 27, 2012
03:50 AM
Well, I played a bit around trying to get it installable from the command line and I am pretty stuck everywhere now.
It is an InstallScript MSI project with an optional SQL Express installed as prerequisites.
a) Prerequisites
How can I trigger from the command line if the optional prerequisite is to be installed or not?
b) Install from command line using public properties
Initially, I thought it would be enough to define public properties for all the parameters needed to install the application.
Before adding my own public properties, I tried to test the silent installation from command line using the INSTALLDIR public property, to no success.
When invoking setup.exe /v"INSTALLDIR=C:\test", the value of INSTALLDIR is displayed as expected in the installer's gui and the installation passes through as expected.
Then, I tried to make it silent: setup.exe /s /v"INSTALLDIR=C:\test". The installer aborts nearly immediately.
What am I missing here?
What is required to do with an InstallScript MSI project to allow it to be installed silently without answerfile?
c) Silent install with answerfile
Through the forum and various searches, it looks like the way to do it is using an answerfile. I was able to generate this file using setup.exe /r and to make a silent installation with it.
Is there a syntax on this setup.iss file to add comments?
It is an InstallScript MSI project with an optional SQL Express installed as prerequisites.
a) Prerequisites
How can I trigger from the command line if the optional prerequisite is to be installed or not?
b) Install from command line using public properties
Initially, I thought it would be enough to define public properties for all the parameters needed to install the application.
Before adding my own public properties, I tried to test the silent installation from command line using the INSTALLDIR public property, to no success.
When invoking setup.exe /v"INSTALLDIR=C:\test", the value of INSTALLDIR is displayed as expected in the installer's gui and the installation passes through as expected.
Then, I tried to make it silent: setup.exe /s /v"INSTALLDIR=C:\test". The installer aborts nearly immediately.
What am I missing here?
What is required to do with an InstallScript MSI project to allow it to be installed silently without answerfile?
c) Silent install with answerfile
Through the forum and various searches, it looks like the way to do it is using an answerfile. I was able to generate this file using setup.exe /r and to make a silent installation with it.
Is there a syntax on this setup.iss file to add comments?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 03, 2012
03:02 AM
Well, the main problem left is the installation of the optional prerequisites on a silent install.
Is there any possibility to trigger the installation or not of an optional prerequisite when invoking setup.exe from the command line?
Any help would be more than welcome.
Is there any possibility to trigger the installation or not of an optional prerequisite when invoking setup.exe from the command line?
Any help would be more than welcome.