执行HGUpgrade时不在传-src参数

This commit is contained in:
luoliangyi 2022-07-01 11:04:27 +08:00
parent 2ffa7d8c8f
commit bf0caa32a5
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ var
ErrorCode: Integer;
bRes: Boolean;
begin
if not ShellExec('', ExpandConstant('{app}\HuagoScanUpgrade.exe'), '-type=postuninstallinfo -src=package -desc=uninstall', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then
if not ShellExec('', ExpandConstant('{app}\HuagoScanUpgrade.exe'), '-type=postuninstallinfo -desc=uninstall', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode) then
begin
end;
Result := true;
@ -104,5 +104,5 @@ begin
end;
[Run]
Filename: "{app}\HuagoScanUpgrade.exe"; Parameters:"-type=postinstallinfo -src=package -desc=install"
Filename: "{app}\HuagoScanUpgrade.exe"; Parameters:"-type=postinstallinfo -desc=install"
Filename: "{app}\HuagoScan.exe"; Description: "{cm:LaunchProgram, {#MyAppName}}"; Flags: postinstall nowait