Hello,
I am trying to launch a security key setup exe using a command window.
Using the following code generates an error: “The system cannot find the path specified”
CommandStr := ExpandConstant('"{cmd}"');
ParamStr := ExpandConstant(' /k ""{app}\System Driver\Sentinel System Driver Installer 7.6.1.exe"" /v ""/passive CONFIRMUPGRADE=TRUE REBOOT=ReallySuppress ADDLOCAL=ALL"");
ShellExec( 'open', CommandStr, ParamStr, '""""', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
If I just open a command window manually (as admin) and enter the following, it works as desired:
"C:\Program Files (x86)\Company\Application\System Driver\System Driver\Sentinel System Driver Installer 7.6.1.exe" /v "/passive CONFIRMUPGRADE=TRUE REBOOT=ReallySuppress ADDLOCAL=ALL"
I’m sure the problem is with the double quotes but I can’t seem to get the correct syntax.
Thanks for any help.
Best regards,
Terry
Terry RIZZO
R Cubed Software
820 Bunker Hill Ave.
Lawrenceville, NJ 08648 USA
mailto: t...@rcubedsw.com
Phone: 609-577-2811
ParamStr := ExpandConstant(' /k ""{app}\System Driver\Sentinel System Driver Installer 7.6.1.exe"" /v ""/passive CONFIRMUPGRADE=TRUE REBOOT=ReallySuppress ADDLOCAL=ALL"");
ShellExec( 'open', CommandStr, ParamStr, '""""', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode);
If I just open a command window manually (as admin) and enter the following, it works as desired:
"C:\Program Files (x86)\Company\Application\System Driver\System Driver\Sentinel System Driver Installer 7.6.1.exe" /v "/passive CONFIRMUPGRADE=TRUE REBOOT=ReallySuppress ADDLOCAL=ALL"
I’m sure the problem is with the double quotes but I can’t seem to get the correct syntax.
--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/002f01dcb7f0%24b5ba6d00%24212f4700%24%40rcubedsw.com.
// Die Parameter (beachten Sie die doppelten "" für Anführungszeichen innerhalb des Strings)Params := '/v ""/passive CONFIRMUPGRADE=TRUE REBOOT=ReallySuppress ADDLOCAL=ALL""';