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
- :
- LaunchApp Windows 7
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
‎May 26, 2010
03:34 AM
LaunchApp Windows 7
Hi All!
I try to launch dpinst.exe on Windows 7 32-bit and dpinst64.exe on Windows 7 64-bit via LaunchAppAndWait but it doesn't works?
When I execute both programs by double clicking they are working fine after
confirming dialogue for administrator rights.
LaunchAppAndWait returns 0 this means the application was launched.
Bye, Mike Maico.
I try to launch dpinst.exe on Windows 7 32-bit and dpinst64.exe on Windows 7 64-bit via LaunchAppAndWait but it doesn't works?
When I execute both programs by double clicking they are working fine after
confirming dialogue for administrator rights.
LaunchAppAndWait returns 0 this means the application was launched.
Bye, Mike Maico.
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 26, 2010
04:19 AM
Hi Mike,
don't really have an answer but two ideas:
1. Check dpinst.exe's return value via LAAW_PARAMETERS after LaunchAppAndWait for any problems.
2. I remeber a problem with dpinst when setting the wrong working dir. Afaik, when you double click it, the working dir is set to the file location, but this is not done when you LaunchApp the file (dpinst /path sets the working dir).
Hope that helps.
Johannes
don't really have an answer but two ideas:
1. Check dpinst.exe's return value via LAAW_PARAMETERS after LaunchAppAndWait for any problems.
2. I remeber a problem with dpinst when setting the wrong working dir. Afaik, when you double click it, the working dir is set to the file location, but this is not done when you LaunchApp the file (dpinst /path sets the working dir).
Hope that helps.
Johannes
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 26, 2010
08:46 AM
You might want to switch from LaunchAppAndWait to LaunchApplication, and see if that helps. For more information, see the following help topic (especially the first bullet point in the Additional Information section):
LaunchApplication
LaunchApplication
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 27, 2010
07:20 AM
Thank you Debbie and Johannes!
Solution:
exePath=SRCDIR;
if(SYSINFO.bIsWow64 == 0)then//... 32 bit
programWithPath=exePath^"DPInst.exe";
else
programWithPath=exePath^"DPInst64.exe";
endif;
LongPathToQuote(exePath, TRUE);
LongPathToQuote(programWithPath, TRUE);
result=LaunchApplication
(
programWithPath,//szProgram
"",//szCmdLine
exePath,//szDirectory
SW_NORMAL,//nShowWindow
INFINITE,//nTimeOut
LAAW_OPTION_WAIT |
LAAW_OPTION_CHANGEDIRECTORY |
LAAW_OPTION_USE_SHELLEXECUTE
);
Solution:
exePath=SRCDIR;
if(SYSINFO.bIsWow64 == 0)then//... 32 bit
programWithPath=exePath^"DPInst.exe";
else
programWithPath=exePath^"DPInst64.exe";
endif;
LongPathToQuote(exePath, TRUE);
LongPathToQuote(programWithPath, TRUE);
result=LaunchApplication
(
programWithPath,//szProgram
"",//szCmdLine
exePath,//szDirectory
SW_NORMAL,//nShowWindow
INFINITE,//nTimeOut
LAAW_OPTION_WAIT |
LAAW_OPTION_CHANGEDIRECTORY |
LAAW_OPTION_USE_SHELLEXECUTE
);