Skip to content

Commit 5038b45

Browse files
committed
fix(*)
1 parent 3ad96ad commit 5038b45

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

windows/packaging/exe/inno_setup.iss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,15 +63,15 @@ Filename: "{app}\\{{EXECUTABLE_NAME}}"; Description: "{cm:LaunchProgram,{{DISPLA
6363
[Code]
6464
function GetDefaultDir(Param: String): String;
6565
var
66-
DriveLetter: Char;
66+
DriveLetter: String; { Changed from Char to String }
6767
DrivePath: String;
6868
FoundDrive: Boolean;
6969
begin
7070
FoundDrive := False;
7171
Result := '';
7272
for DriveLetter := 'D' to 'Z' do
7373
begin
74-
DrivePath := DriveLetter + ':\';
74+
DrivePath := DriveLetter + ':\'; { Both sides are now Strings }
7575
if DirExists(DrivePath) then
7676
begin
7777
Result := DrivePath + '{{INSTALL_DIR_NAME}}';
@@ -83,4 +83,4 @@ begin
8383
begin
8484
Result := ExpandConstant('{localappdata}\') + '{{INSTALL_DIR_NAME}}';
8585
end;
86-
end;
86+
end;

0 commit comments

Comments
 (0)