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
- :
- Calling an .EXE
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
Aug 23, 2011
04:12 PM
Calling an .EXE
I have added an .EXE file under Support Files\Language Independent I then try to run this .EXE with the following line.
LaunchApplication(SUPPORTDIR^"dotNetFx40_Full_x86_x64.exe", "/norestart /passive", SW_NORMAL, INFINITE, LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE);
I need to pass this .exe a "/norestart /passive" switch. I get an error saying "string value required"
If I REM out this one line of code my script compiles. So I know the error lives in this line. What did I mess up?
Thank you.
LaunchApplication(SUPPORTDIR^"dotNetFx40_Full_x86_x64.exe", "/norestart /passive", SW_NORMAL, INFINITE, LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE);
I need to pass this .exe a "/norestart /passive" switch. I get an error saying "string value required"
If I REM out this one line of code my script compiles. So I know the error lives in this line. What did I mess up?
Thank you.
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 24, 2011
12:40 AM
Introduce a new string variabe and assign it the CLI parameters. Pass this string variable to LaunchApplication.