So in the above script, the LaunchAppAndWait function is used to execute powershell.exe and the path to your.ps1 file, along with any command line arguments are used as well. So in your powershell script file, you can use something like this to get the NOTE: Inside your powershell script, you can use. InstallShield Setup.exe Command-Line Parameters InstallShield setup.exe files can accept a number of command-line parameters. Using these parameters, administrators can specify details like where to install, if it should reboot the system, or what (if anything) should be displayed during installation. InstallShield Setup.exe Command-Line Parameters InstallShield setup.exe files can accept a number of command-line parameters. Using these parameters, administrators can specify details like where to install, if it should reboot the system, or what (if anything) should be displayed during installation.
Active3 years, 6 months ago
I am using and InstallShield installer setup.exe file to silently install my app. Now I want to invoke setup.exe with some command line arguments. And that arguments should be available in a EXE custom action that I have created to be executed at success. How can I pass the data all over from command line while invoking the setup file and use it inside my exe. The exe is a console app written in C#.
ShahzadShahzad
1,48911 gold badge88 silver badges1919 bronze badges
1 Answer
I understand this is an MSI-based project, and I assume the .exe custom action is deferred execution.
![]()
What you should do is this:
What happens is that, on a deferred custom action you can't use exernal properties (such as those supplied from the command line), you can only access internal ones such as CustomActionData. The trick here is that, if a property with the action's name exists (RunMyExe in the example above), the internal CustomActionData property get its value from it.
Tally erp 9 with crack. Jun 11, 2019 Tally ERP 9 Release 6.6 Crack Plus Torrent! Tally ERP 9 split is exceptionally well known and canny programming. It is a picked for big business the executive’s goals for in excess of a million people in 140 nations.
yossiz74yossiz74
72511 gold badge77 silver badges1414 bronze badges
Not the answer you're looking for? Browse other questions tagged windows-installercommand-line-argumentsinstallshieldcustom-actioninstallshield-le or ask your own question.Installshield Cmd
Active6 years, 5 months ago
I am creating a setup using
InstallShield(Limited Edition) in VS2012 . Firstly I created a setup file. I have some more things to do so I created a project and added its exe as a new custom action After Initialization(Before First Dialog) .
Now I want to run this setup from command line and pass parameter(s) to it. I tried using %1 to take first parameter entered by command line but it is not working. Please tell how to pass parameters using command line and use it in exe file.
Christopher Painter
49.2k66 gold badges5353 silver badges9090 bronze badges
quitprogquitprog
23211 gold badge77 silver badges2222 bronze badges
1 Answer
Unless I'm missing something, InstallShield Limited Edition doesn't support this.
From a Windows Installer perspective, what you are referring to is called a Secure Custom Public Property. (See: SecureCustomProperties property )
Consider the commandline:
msiexec /i foo.msi SERVERNAME=MyServer
The fact that SERVERNAME is capitalized makes it public. The fact that it's listed in the SecureCustomProperties property would make it Secure. Only secure public properties work when UAC is taken into consideration. If the process is already elevated then it doesn't have to be secure but it really should be.
From the custom action side you'd used [SERVERNAME] to reference the value of the SERVERNAME property.
![]()
Then of course you'd likely want to customize the UI experience for when someone just runs the MSI but InstallShield limited edition doesn't support this.
I can think of ways of making it to work using WiX merge modules and/or applying transforms to the built MSI but all of this requires advanced MSI knowledge and it's generally easier to just upgrade to Professional.
Christopher PainterChristopher Painter
49.2k66 gold badges5353 silver badges9090 bronze badges
Not the answer you're looking for? Browse other questions tagged visual-studio-2012installationinstallshield-le or ask your own question.Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |