|
#1
|
|||
|
|||
|
Setup for Updates
Can someone help me?
How do I create setup for Updates, the installation location is found in the registry, Example: he check the record and show where you installed the game someone has the code to do this? Sorry my english |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Use this program Patch Maker
|
| The Following User Says Thank You to coveiro For This Useful Post: | ||
Epic Titan 69 (10-03-2021) | ||
|
#3
|
|||
|
|||
|
Code:
1
[Setup]
DefaultDirName={code:MyDirName}
[ Code]
function MyDirName(S:String): String;
var
InsPath: String;
er: boolean;
myFile:String;
begin
Result:=ExpandConstant('C:\Games\World_of_Tanks\'); //если ключа нет то будем ставить сюда
er := RegQueryStringValue(HKLM, 'SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{1EAC1D02-C6AC-4FA6-9A44-96258C37C812RU}_is1', 'InstallLocation', InsPath);
er := RegQueryStringValue(HKCU, 'Software\Microsoft\Windows\CurrentVersion\Uninstall\{1EAC1D02-C6AC-4FA6-9A44-96258C37C812ru}_is1', 'InstallLocation', InsPath);
if er and (InsPath<>'') then //если ключ существует и там что-то записано
begin
Result := InsPath;
end;
end;
Code:
[Setup]
AppName=My Program
AppVerName=My Program 1.5
DefaultDirName={code:GetInstallDir}
AppendDefaultDirName=no
[Languages]
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
[ Code]
function GetInstallDir(Path: String ): String;
begin
RegQueryStringValue(HKLM, 'SOFTWARE\Rockstar Games\EFLC', 'InstallPath', Path);//Какой ключ реестра ищет ...
Result := Path;
end;
function InitializeSetup(): Boolean;
begin
Result:= true;
if not RegKeyExists(HKLM, 'SOFTWARE\Rockstar Games\EFLC') then
MsgBox('Игра {#SetupSetting("AppName")} не найдена! Укажите путь к папке с игрой вручную!', mbinformation, mb_ok);
end;
Code:
[Setup]
AppName=S.T.A.L.K.E.R OGS Evolution 0.6.9.3 Patch
AppVersion=2.12
VersionInfoVersion=0.2.1.2
DefaultDirName={reg:HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\S.T.A.L.K.E.R OGSE Mod_is1,InstallLocation|{pf}}
AppendDefaultDirName=no
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| BlackBox v2 | y_thelastknight | Conversion Tutorials | 567 | 11-03-2025 07:16 |
| Useful Dll for Inno Setup users | peterf1999 | Conversion Tutorials | 88 | 01-12-2017 16:00 |
| Inno Setup issue: windows security shield does not appear on setup icon | Mohandas | Software | 1 | 08-09-2015 17:22 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |