cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
pradeep1987
Level 2

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
Labels (1)
0 Kudos
(2) Replies
pradeep1987
Level 2

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.
0 Kudos
Dan_Galender
Level 10

"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
0 Kudos