From 87506e64c7cf2cf95e78dfa9ea735803be937db6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=AD=20Climent?= Date: Sun, 20 Jun 2021 16:35:44 +0200 Subject: [PATCH] update installer files --- .gitignore | 3 ++- installer.iss | 6 ++++-- remove-old.cmd | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 remove-old.cmd diff --git a/.gitignore b/.gitignore index 7880340b8..430db29c0 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ wingetui/dist/ "WingetUI Store.ex"e WingetUI Store Installer.exe WingetUI Store.exe -WingetUI Store.exe +installer.iss +Output/ \ No newline at end of file diff --git a/installer.iss b/installer.iss index c95456452..54a508b3e 100644 --- a/installer.iss +++ b/installer.iss @@ -10,7 +10,7 @@ [Setup] ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.) -AppId={{889610CC-4337-4BDB-AC3B-4F21806C0BDC} +AppId={{889610CC-4337-4BDB-AC3B-4F21806C0BDD} AppName={#MyAppName} AppVersion={#MyAppVersion} ;AppVerName={#MyAppName} {#MyAppVersion} @@ -35,7 +35,8 @@ Name: "english"; MessagesFile: "compiler:Default.isl" Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked [Files] -Source: "C:\Users\marti\SPTPrograms\WinGetUI\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\Users\marti\SPTPrograms\WinGetUI\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion +Source: "C:\Users\marti\SPTPrograms\WinGetUI\remove-old.cmd"; DestDir: "{app}"; Flags: deleteafterinstall ; NOTE: Don't use "Flags: ignoreversion" on any shared system files [Icons] @@ -43,5 +44,6 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Run] +Filename: "{app}\remove-old.cmd"; Flags: runhidden Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall diff --git a/remove-old.cmd b/remove-old.cmd new file mode 100644 index 000000000..c1881b853 --- /dev/null +++ b/remove-old.cmd @@ -0,0 +1 @@ +"%AppData%/../Local/Programs/wingetUI Store/unins000.exe" /verysilent \ No newline at end of file