From b2c6882120420b8b8584e8619e266ca882f0e6f1 Mon Sep 17 00:00:00 2001 From: Furtif Date: Mon, 12 Jun 2023 02:00:12 +0200 Subject: [PATCH] fix AfterInstall messages for inno Setup Windows --- wininstaller.iss | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) diff --git a/wininstaller.iss b/wininstaller.iss index e0b9a7e4..fad36f61 100644 --- a/wininstaller.iss +++ b/wininstaller.iss @@ -28,11 +28,10 @@ VersionInfoProductName={#MyAppName} AppCopyright={#MyAppCompany} {#C_StartingYear}-{#C_EndingYear} ;--------------------- Info Windows program list -UninstallDisplayIcon={app}\icons\obd.ico +UninstallDisplayIcon={uninstallexe},4 UninstallDisplayName={#MyAppName} AppPublisher={#MyAppCompany} -WizardStyle=modern UsepreviousLanguage=No DefaultDirName={pf}\{#MyAppDir} @@ -40,15 +39,19 @@ DefaultGroupName={#MyAppDir} SetupIconFile=icons\obd.ico OutputBaseFilename={#MyAppDir}-win-installer-{#MyAppVersion} UsePreviousPrivileges=True +VersionInfoCompany={#MyAppCompany} +VersionInfoTextVersion={#MyAppVersion} +VersionInfoCopyright={#MyAppCompany} {#C_StartingYear}-{#C_EndingYear} +VersionInfoProductVersion={#MyAppVersion} +VersionInfoProductTextVersion={#MyAppVersion} +VersionInfoOriginalFileName={#MyAppName} +LicenseFile=license.txt +WizardStyle=modern [Files] -//Source: "DDT4ALL.BAT"; DestDir: "{app}"; AfterInstall: AfterMyProgInstall -//Source: "README.md"; DestDir: "{app}" -//Source: "requirements.txt"; DestDir: "{app}" -//Source: "license.txt"; DestDir: "{app}" //Source: "ecu.zip"; DestDir: "{app}"; Flags: onlyifdoesntexist skipifsourcedoesntexist -Source: "*.py"; DestDir: "{app}" -Source: "*.qss"; DestDir: "{app}" +Source: "*.py"; DestDir: "{app}"; Excludes: "*.pyc" +Source: "*.qss"; DestDir: "{app}"; AfterInstall: AfterMyProgInstall Source: "\Python311\*"; DestDir: "{app}\Python311"; Flags: ignoreversion recursesubdirs; Excludes: "*.pyc" Source: "ddtplugins\*"; DestDir: "{app}\ddtplugins"; Flags: ignoreversion recursesubdirs; Excludes: "*.pyc" Source: "icons\*"; DestDir: "{app}\icons"; Flags: ignoreversion recursesubdirs @@ -57,12 +60,16 @@ Source: "locale\*"; DestDir: "{app}\locale"; Flags: ignoreversion recursesubdirs Source: "json\*"; DestDir: "{app}\json"; Flags: ignoreversion recursesubdirs onlyifdoesntexist skipifsourcedoesntexist [InstallDelete] +Type: filesandordirs; Name: "{app}\__pycache__" Type: filesandordirs; Name: "{app}\importlib" Type: filesandordirs; Name: "{app}\python27" Type: filesandordirs; Name: "{app}\Python38" Type: filesandordirs; Name: "{app}\Python39" Type: filesandordirs; Name: "{app}\Python310" +[UninstallDelete] +Type: filesandordirs; Name: "{app}" + [Code] procedure AfterMyProgInstall; begin @@ -76,7 +83,7 @@ Name: "{app}\json"; Permissions: users-full Name: "{app}\vehicles"; Permissions: users-full [Tasks] -Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}";GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked +Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Icons] Name: "{group}\ddt4all"; Filename: "{app}\Python311\python.exe"; Parameters: """{app}\main.py"""; WorkingDir: "{app}"; IconFilename: "{app}\icons\obd.ico"