cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Active participant

Passing a string value when I run a silent installation

Jump to solution

I have an InstallShield Install script project.

I created my .iss file for a silent installation. When I run it from the command line it works as expected. Now I am wondering, is there a way to pass a string value to my setup.exe file when I run it in silent install mode? I have tried the following but it is not working. I tried using the "/v" switch but that does not work"

C:>TestDir>Setup.exe /s /f1"C:\TestDir\setup.iss" /v"MyTestParameter=HelloWorld"

 

Where MyTestParameter is defined as a global string in my setup.rul file.

ex: string MyTestParameter;

Labels (1)
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Frequent contributor

Re: Passing a string value when I run a silent installation

Jump to solution

For InstallScript projects use the variable CMDLINE to get the command line.

see the online help for details.

regards

Markus

View solution in original post

4 Replies
Highlighted
Intrepid explorer

Re: Passing a string value when I run a silent installation

Jump to solution

Setup.exe /v""

does work only with type of MSI and MSI-InstallScript setups.

 

Highlighted
Active participant

Re: Passing a string value when I run a silent installation

Jump to solution

Hi Roman, per your comments,

In IS 2019 when I go to create a project I see "Basic MSI", and "InstallScript" project types. But not an "MSI-InstallScript" project type? When you said "MSI-InstallScript" did you mean "InstallScript" project type? I am using the InstallScript project type so I am wondering if the /V switch works for InstallScript types.

 

does work only with type of MSI and MSI-InstallScript setups.

 

0 Kudos
Highlighted
Intrepid explorer

Re: Passing a string value when I run a silent installation

Jump to solution

go to:

new\new project\windows installer\InstallScript MSI

0 Kudos
Highlighted
Frequent contributor

Re: Passing a string value when I run a silent installation

Jump to solution

For InstallScript projects use the variable CMDLINE to get the command line.

see the online help for details.

regards

Markus

View solution in original post