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
- :
- Re: Passing INSTALLDIR twice in Launchappliation in installscript
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
‎Nov 26, 2018
05:26 AM
Passing INSTALLDIR twice in Launchappliation in installscript
if(SYSINFO.nOSMajor>= 6) then
MsiGetProperty (hMSI, "SUPPORTDIR", svSupportDir, nvSize);
LAAW_PARAMETERS.bInheritHandles = TRUE;
LAAW_STARTUPINFO.dwFlags = LAAW_STARTUPINFO.dwFlags | STARTF_USESTDHANDLES;
LAAW_SHELLEXECUTEVERB = "runas";
//LAAW_SHELLEXECUTEINFO.
if LaunchApplication(INSTALLDIR^"\\Car\\CheckPlusRL6\\setup\\setup.exe ","-s -f1 ","INSTALLDIR^""\\CheckPlusRL6\\setup\\Setup.iss","",SW_HIDE,INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE) !=ISERR_SUCCESS
then
MessageBox("Installing CheckPlusRL6 drivers failed", INFORMATION);
endif;
endif;
this script i pasted for reference in this i want installdir to place in single commad, show error am unable to compile the code.
is this possible to write predefined INSTALLDIR command in sigle command
MsiGetProperty (hMSI, "SUPPORTDIR", svSupportDir, nvSize);
LAAW_PARAMETERS.bInheritHandles = TRUE;
LAAW_STARTUPINFO.dwFlags = LAAW_STARTUPINFO.dwFlags | STARTF_USESTDHANDLES;
LAAW_SHELLEXECUTEVERB = "runas";
//LAAW_SHELLEXECUTEINFO.
if LaunchApplication(INSTALLDIR^"\\Car\\CheckPlusRL6\\setup\\setup.exe ","-s -f1 ","INSTALLDIR^""\\CheckPlusRL6\\setup\\Setup.iss","",SW_HIDE,INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE) !=ISERR_SUCCESS
then
MessageBox("Installing CheckPlusRL6 drivers failed", INFORMATION);
endif;
endif;
this script i pasted for reference in this i want installdir to place in single commad, show error am unable to compile the code.
is this possible to write predefined INSTALLDIR command in sigle command
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 27, 2018
12:36 AM
Can some fwd this thread to support we dont have support currently, Where the exact requirement is we are third pary executables with main installer, INSTALLDIR of the main installer to be the input for third pary executables.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 29, 2018
10:33 AM
"Forwarding this to Support" is not something that can be done for you. If you want to have Flexera support, you need to purchase it.
That being said, looking at your code, I see some syntax that is correct and some that can be cleaned up. You might try this instead of what you've got (I broke each parameter on to separate lines--it makes things clearer and errors easier to spot):
if LaunchApplication(INSTALLDIR ^ "Car\\CheckPlusRL6\\setup\\setup.exe",
"-s -f1 " + (INSTALLDIR ^ "CheckPlusRL6\\setup\\Setup.iss"),
"",
SW_HIDE,
INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE) != ISERR_SUCCESS
That being said, looking at your code, I see some syntax that is correct and some that can be cleaned up. You might try this instead of what you've got (I broke each parameter on to separate lines--it makes things clearer and errors easier to spot):
if LaunchApplication(INSTALLDIR ^ "Car\\CheckPlusRL6\\setup\\setup.exe",
"-s -f1 " + (INSTALLDIR ^ "CheckPlusRL6\\setup\\Setup.iss"),
"",
SW_HIDE,
INFINITE,
LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE) != ISERR_SUCCESS
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)