Loading
Passing a string value when I run a silent installation

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;


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

    see the online help for details.

    regards

    Markus

    Selected as Best
  • Setup.exe /v""

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

     

    • 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.

       

      Expand Post
      • go to:

        new\new project\windows installer\InstallScript MSI

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

        see the online help for details.

        regards

        Markus

        Selected as Best

Loading
Passing a string value when I run a silent installation