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: launchappandwait faiing on windows 10
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
‎Jun 20, 2017
07:13 PM
launchappandwait faiing on windows 10
It appears that LaunchAppAndWait is failing for me when I try to execute a batch file on windows 10. Basically, doing this:
if (SYSINFO.WINNT.bWinXP != TRUE) then
LAAW_SHELLEXECUTEVERB = "runas";
endif;
nOptions = nOptions|LAAW_OPTION_HIDDEN|LAAW_OPTION_SHOW_HOURGLASS|LAAW_OPTION_WAIT|LAAW_OPTION_USE_SHELLEXECUTE;
SetStatusWindow (-1, szProgram+"("+szCmdLine+")");
nResult = LaunchAppAndWait (szProgram, szCmdLine, nOptions);
if (SYSINFO.WINNT.bWinXP != TRUE) then
LAAW_SHELLEXECUTEVERB = "runas";
endif;
nOptions = nOptions|LAAW_OPTION_HIDDEN|LAAW_OPTION_SHOW_HOURGLASS|LAAW_OPTION_WAIT|LAAW_OPTION_USE_SHELLEXECUTE;
SetStatusWindow (-1, szProgram+"("+szCmdLine+")");
nResult = LaunchAppAndWait (szProgram, szCmdLine, nOptions);
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 21, 2017
09:15 AM
Sounds like they have a bug on Windows 10 - But, just for a test I would sure try InstallShield 2016 SP2 in this case and see if it makes any difference. I'm not sure if anyone would have formally tested InstallShield 2015 on Windows 10 prior to InstallShield 2015 shipping - certainly something like that could have been missed.
Chad
Chad
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 27, 2017
12:12 PM
even with installshield 2016, I had to change my args from:
somebatch.cmd
to
cmd /c somebatch.cmd
because of this I lose my errorlevel, which makes it difficult to know if I need to reboot or not.
my batch file is used to install a device driver that call dpinst. I have tried using the device driver settings in the component before, but it wasn't working because we have a single driver that does both x32 & x64. the installshield seemed to be using the last setting entered.
I haven't tried sp2, maybe that fixes the problem.
somebatch.cmd
to
cmd /c somebatch.cmd
because of this I lose my errorlevel, which makes it difficult to know if I need to reboot or not.
my batch file is used to install a device driver that call dpinst. I have tried using the device driver settings in the component before, but it wasn't working because we have a single driver that does both x32 & x64. the installshield seemed to be using the last setting entered.
I haven't tried sp2, maybe that fixes the problem.
