diff --git a/Projects/Src/IDE.Wizard.WizardForm.pas b/Projects/Src/IDE.Wizard.WizardForm.pas index 5bcde9ac..76039d53 100644 --- a/Projects/Src/IDE.Wizard.WizardForm.pas +++ b/Projects/Src/IDE.Wizard.WizardForm.pas @@ -946,12 +946,15 @@ procedure TWizardForm.GenerateScript; { AppFiles } if not NotCreateAppDirCheck.Checked and not NoAppExeCheck.Checked then begin Files := Files + 'Source: "' + PathExtractPath(AppExeEdit.Text) + AppExeName + '"; DestDir: "{app}"; Flags: ignoreversion' + SNewLine; + var AppExeIsReallyExe := SameText(PathExtractExt(AppExeEdit.Text), '.exe'); if AppExeRunCheck.Checked then begin - if SameText(PathExtractExt(AppExeEdit.Text), '.exe') then + if AppExeIsReallyExe then Run := Run + 'Filename: "{app}\' + AppExeName + '"; Description: "{cm:LaunchProgram,' + AppAmpEscapedName + '}"; Flags: nowait postinstall skipifsilent' + SNewLine else Run := Run + 'Filename: "{app}\' + AppExeName + '"; Description: "{cm:LaunchProgram,' + AppAmpEscapedName + '}"; Flags: shellexec postinstall skipifsilent' + SNewLine; end; + if AppExeIsReallyExe then + Setup := Setup + 'UninstallDisplayIcon={app}\' + AppExeName + SNewLine; if Is64BitPEImage(AppExeEdit.Text) then begin Setup := Setup + '; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run' + SNewLine; Setup := Setup + '; on anything but x64 and Windows 11 on Arm.' + SNewLine; diff --git a/whatsnew.htm b/whatsnew.htm index 55c906e3..20d2231f 100644 --- a/whatsnew.htm +++ b/whatsnew.htm @@ -92,6 +92,7 @@