|
|
|
|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
the defaultdirname must be set first. then after the [setup] section you use the {app}
try using the help in inno as everything youve asked is in there. |
| Sponsored Links |
|
#2
|
|||
|
|||
|
need help to get this install dir thing works
Last edited by seventhorama; 14-01-2012 at 22:47. |
|
#3
|
||||
|
||||
|
[Files]
Source: D:\TS2_ISOS\The Sims 2 Exp1 University\Patchfiles\*; DestDir: {code:GetAppPath}; Flags: ignoreversion recursesubdirs Code:
var installDir : string;
function InitializeSetup(): Boolean;
Begin
// Checking running application
if FindWindowByWindowName('The Sims 2 University') <> 0 then
begin
MsgBox('The Sims 2 University is running.'#10'Please close the application first.', mbInformation, MB_OK);
exit;
end;
if not RegQueryStringValue(HKEY_LOCAL_MACHINE, 'Software\EA GAMES\The Sims 2 University', 'Install Dir', installDir)
then MsgBox('The Sims 2 University is not installed on this computer..'#10'Cancelling Update.', mbInformation, MB_OK)
else Result := True
End;
function GetAppPath(Param: string): string;
begin
Result := installDir;
end;
|
|
#4
|
|||
|
|||
|
Quote:
![]() thx mate
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| yener90's Inno Project Source Codes | yener90 | Conversion Tutorials | 1475 | 21-10-2014 09:50 |