Skip to content

Commit 13fdee8

Browse files
committed
fix(installer): add semicolons and end; + enable SilentInstall
1 parent 33b10dd commit 13fdee8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

packaging/innosetup/installer.iss

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ DisableProgramGroupPage=yes
3434
Compression=lzma
3535
SolidCompression=yes
3636
WizardStyle=modern
37+
SilentInstall=Yes
3738
DisableStartupPrompt=yes
3839

3940
[Files]
@@ -55,12 +56,17 @@ function NeedsAddPath(AppDir: string): Boolean;
5556
var
5657
OrigPath: string;
5758
begin
58-
if not RegQueryStringValue(HKLM, 'SYSTEM\CurrentControlSet\Control\Session Manager\Environment', 'Path', OrigPath) then
59+
if not RegQueryStringValue(HKLM,
60+
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
61+
'Path', OrigPath) then
5962
begin
60-
Result := True; exit;
63+
Result := True;
64+
exit;
6165
end;
66+
6267
if Pos(';' + UpperCase(AppDir) + ';', ';' + UpperCase(OrigPath) + ';') > 0 then
6368
Result := False
6469
else
65-
Result := True
66-
end
70+
Result := True;
71+
72+
end;

0 commit comments

Comments
 (0)