- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Passing a string value when I run a silent installation
- 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
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;
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
For InstallScript projects use the variable CMDLINE to get the command line.
see the online help for details.
regards
Markus
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Setup.exe /v""
does work only with type of MSI and MSI-InstallScript setups.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
go to:
new\new project\windows installer\InstallScript MSI
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
For InstallScript projects use the variable CMDLINE to get the command line.
see the online help for details.
regards
Markus