Skip to content

Commit 1855b12

Browse files
committed
feat: Better Windows Installer
1 parent 57efabf commit 1855b12

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

inno/setup.iss

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ ShowLanguageDialog=yes
3434
UsePreviousLanguage=no
3535
LanguageDetectionMethod=uilanguage
3636

37+
ArchitecturesAllowed=x64compatible
38+
ArchitecturesInstallIn64BitMode=x64compatible
39+
3740
WizardStyle=modern
3841
WizardResizable=yes
3942
WizardSizePercent=120,130
@@ -56,11 +59,15 @@ ChangesEnvironment=yes
5659
Name: "english"; MessagesFile: "compiler:Default.isl"
5760
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
5861

59-
[installDelete]
62+
[InstallDelete]
6063
Type: filesandordirs; Name: "{app}\*"
6164

65+
[UninstallDelete]
66+
Type: filesandordirs; Name: "{app}"
67+
6268
[Tasks]
6369
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
70+
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
6471

6572
[Files]
6673
Source: "vc_redist.exe"; DestDir: "{app}"; Flags: deleteafterinstall
@@ -69,10 +76,10 @@ Source: "..\build\org.nickvision.application.winui\Release\{#MyAppExeName}"; Des
6976
Source: "..\build\org.nickvision.application.winui\Release\*"; DestDir: "{app}\Release"; Flags: ignoreversion recursesubdirs createallsubdirs
7077

7178
[Icons]
72-
Name: "{autoprograms}\{#MyAppShortName}"; Filename: "{app}\Release\{#MyAppExeName}"
79+
Name: "{autoprograms}\{#MyAppShortName}"; Filename: "{app}\Release\{#MyAppExeName}"; Tasks: quicklaunchicon
7380
Name: "{commondesktop}\{#MyAppShortName}"; Filename: "{app}\Release\{#MyAppExeName}"; Tasks: desktopicon
7481

7582
[Run]
7683
Filename: "{app}\vc_redist.exe"; Parameters: "/install /quiet /norestart"
7784
Filename: "{app}\windowsappruntimeinstall.exe"; Parameters: "--quiet --force"
78-
Filename: "{app}\Release\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
85+
Filename: "{app}\Release\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent unchecked

0 commit comments

Comments
 (0)