Skip to content

Commit

Permalink
Update Call-of-Duty.iss
Browse files Browse the repository at this point in the history
Add AutoPath COD:UO
  • Loading branch information
55TeMeR55 committed Mar 27, 2024
1 parent 369234d commit 22f1c3d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Call-of-Duty.iss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define GameNameEXE "CoDSP" ; Название exe файла игры
#define GameVer "1.3" ; Версия игры
#define GameAppIdSteam "2620" ; Ид игры в стиме
#define GameAppIdSteam1 "2640" ; Ид игры в стиме
; От ситуации зависит
#define AppDescription "Русификатор текста и звука" ; Описание программы
#define Typ "Russificier" ; Тип приложения
Expand Down Expand Up @@ -177,7 +178,14 @@ begin
//begin
// Log('Detected GOG installation: ' + InstallationPath);
//end
else
else
if RegQueryStringValue(
HKLM64, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Steam App {#GameAppIdSteam1}',
'InstallLocation', InstallationPath) then
begin
Log('Detected Steam1 installation: ' + InstallationPath);
end
else
begin
if IsWin64 then InstallationPath := ExpandConstant('{commonpf64}')
else InstallationPath := ExpandConstant('{commonpf32}');
Expand Down

0 comments on commit 22f1c3d

Please sign in to comment.