Compare commits

..

4 Commits

View File

@ -6,8 +6,8 @@
AppId={{C42BF9E1-4791-4098-A19E-74D6EAF0750F} AppId={{C42BF9E1-4791-4098-A19E-74D6EAF0750F}
AppName=Enderal SE AppName=Enderal SE
DefaultGroupName=Enderal SE DefaultGroupName=Enderal SE
AppVersion=2.1.0 AppVersion=2.1.1
AppVerName=Enderal SE 2.1 [mod.pub] AppVerName=Enderal SE 2.1.1 [mod.pub]
AppPublisher=ModPub AppPublisher=ModPub
AppPublisherURL=https://mod.pub/ AppPublisherURL=https://mod.pub/
AppReadmeFile=https://mod.pub/enderal-se/38-enderal-se AppReadmeFile=https://mod.pub/enderal-se/38-enderal-se
@ -30,6 +30,7 @@ DisableProgramGroupPage=no
AllowNoIcons=yes AllowNoIcons=yes
Password=mod.pub Password=mod.pub
Encryption=yes Encryption=yes
AlwaysRestart=no
[Files] [Files]
; Root ; Root
@ -160,18 +161,26 @@ Filename: "{app}\MO2\ModOrganizer.ini"; Section: "Plugins"; Key: "Skyrim%20Speci
Filename: "{app}\MO2\ModOrganizer.ini"; Section: "Plugins"; Key: "Skyrim%20VR%20Support%20Plugin\enderal_downloads"; String: "true" Filename: "{app}\MO2\ModOrganizer.ini"; Section: "Plugins"; Key: "Skyrim%20VR%20Support%20Plugin\enderal_downloads"; String: "true"
Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Display"; Key: "iShadowMaskQuarter"; String: "4" Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Display"; Key: "iShadowMaskQuarter"; String: "4"
Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Controls"; Key: "fMouseHeadingSensitivity"; String: "0.0420"; Flags: createkeyifdoesntexist Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Display"; Key: "bFull Screen"; String: "0"
Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Display"; Key: "bBorderless"; String: "1"
Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Display"; Key: "iSize W"; String: "{code:GetScreenWidth}"
Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Display"; Key: "iSize H"; String: "{code:GetScreenHeight}"
Filename: "{app}\Data\profiles\Default\skyrimprefs.ini"; Section: "Controls"; Key: "fMouseHeadingSensitivity"; String: "0.0320"; Flags: createkeyifdoesntexist
[Icons] [Icons]
Name: "{userdesktop}\Enderal SE"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:SKSE"""; IconFilename: "{app}\Game\Data\enderal.ico" Name: "{userdesktop}\Enderal SE"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:SKSE"""; IconFilename: "{app}\Game\Data\enderal.ico"
Name: "{userdesktop}\Enderal SE Display Settings"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:Skyrim Special Edition Launcher"""; IconFilename: "{app}\Game\Data\enderal.ico"
Name: "{app}\Run Enderal SE"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:SKSE"""; IconFilename: "{app}\Game\Data\enderal.ico" Name: "{app}\Run Enderal SE"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:SKSE"""; IconFilename: "{app}\Game\Data\enderal.ico"
Name: "{group}\Run Enderal SE"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:SKSE"""; IconFilename: "{app}\Game\Data\enderal.ico" Name: "{group}\Run Enderal SE"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:SKSE"""; IconFilename: "{app}\Game\Data\enderal.ico"
Name: "{group}\Display settings"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Parameters: """moshortcut://:Skyrim Special Edition Launcher"""; IconFilename: "{app}\Game\SkyrimSELauncher.exe"
Name: "{group}\Manage mods"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Flags: runmaximized Name: "{group}\Manage mods"; Filename: "{app}\MO2\ModOrganizer.exe"; WorkingDir: "{app}\MO2"; Flags: runmaximized
Name: "{group}\Uninstall"; Filename: "{uninstallexe}" Name: "{group}\Uninstall"; Filename: "{uninstallexe}"
[Registry] [Registry]
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\MO2\ModOrganizer.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; MinVersion: 0,6.1 Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\MO2\ModOrganizer.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; MinVersion: 0,6.1
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\MO2\ModOrganizer.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; MinVersion: 0,6.1 Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\MO2\ModOrganizer.exe"; ValueData: "RUNASADMIN"; Flags: uninsdeletekeyifempty uninsdeletevalue; MinVersion: 0,6.1
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\Game\SkyrimSE.exe"; ValueData: "HIGHDPIAWARE"; Flags: uninsdeletekeyifempty uninsdeletevalue; MinVersion: 0,6.1
Root: HKCU; Subkey: "SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers"; ValueType: String; ValueName: "{app}\Game\SkyrimSE.exe"; ValueData: "HIGHDPIAWARE"; Flags: uninsdeletekeyifempty uninsdeletevalue; MinVersion: 0,6.1
Root: HKCU; Subkey: "Software\SureAI\EnderalSE"; ValueType: string; ValueName: "Install_Path"; ValueData: "{app}\Game\" Root: HKCU; Subkey: "Software\SureAI\EnderalSE"; ValueType: string; ValueName: "Install_Path"; ValueData: "{app}\Game\"
[Code] [Code]
@ -324,3 +333,20 @@ begin
S := S + NewLine + Space + 'v' + sSkyrimVersion; S := S + NewLine + Space + 'v' + sSkyrimVersion;
Result := S; Result := S;
end; end;
function GetSystemMetrics(nIndex: Integer): Integer;
external 'GetSystemMetrics@User32.dll stdcall setuponly';
Const
SM_CXSCREEN = 0; // The enum-value for getting the width of the cient area for a full-screen window on the primary display monitor, in pixels.
SM_CYSCREEN = 1; // The enum-value for getting the height of the client area for a full-screen window on the primary display monitor, in pixels.
function GetScreenWidth(Param: String): String;
begin
Result := IntToStr(GetSystemMetrics(SM_CXSCREEN));
end;
function GetScreenHeight(Param: String): String;
begin
Result := IntToStr(GetSystemMetrics(SM_CYSCREEN));
end;