|
#3
|
|||
|
|||
|
Work: Red = you add Green = delete Code:
var
x, bit, i: Integer;
tp: Cardinal;
sd: string;
Begin
sd := ExpandConstant('{sd}');
Result := ExpandConstant('{pf}\');
x := GetLogicalDrives;
If x <> 0 Then
For i:= 1 To 64 Do
Begin
bit := x and 1;
If bit = 1 Then
Begin
tp := GetDriveType(PAnsiChar(Chr(64 + i) + ':'));
If tp = DRIVE_FIXED Then
If Chr(64 + i) <> Copy(sd, 1, 1) Then
Begin
Result := Chr(64 + i) + ':\Games\';
Break;
End;
End;
x := x shr 1;
End;
End;
End;
Last edited by Emorian; 25-05-2020 at 17:19. |
| The Following User Says Thank You to Emorian For This Useful Post: | ||
sakila(playboy) (04-06-2020) | ||
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [CIUv3] Custom Installer Ultimate v3 | KaktoR | Conversion Tutorials | 921 | 26-04-2026 12:35 |
| BlackBox v2 | y_thelastknight | Conversion Tutorials | 567 | 11-03-2025 07:16 |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| Useful Dll for Inno Setup users | peterf1999 | Conversion Tutorials | 88 | 01-12-2017 16:00 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |