安装和卸载上报日志时增加appName

This commit is contained in:
luoliangyi 2022-07-14 17:24:26 +08:00
parent e08015fee5
commit f2d1797703
1 changed files with 2 additions and 2 deletions

View File

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