![]() |
1 Attachment(s)
Quote:
Ok, the case looks like this, If I run on basic script (modified only with the statements that verify the selected components to modify files) on my PC with 100% DPI scaling it works fine, the same is after changing to 125%, 150% and 175% but with already runned setup. I forgot to mention, on both Desktop and Laptop I have 1980x1080 resolution, and on Laptop 125% scaling, as for Desktop 100% If I run the setup after changing the scale to for example 125% it looks like that: Attachment 24415 so, the DPICalculator in fact does not work... :( Edit: Ok, @KaktoR, @Cesar82 Problem solved. The Case was that in the original script there were absolute coordinates and sizes for the size of Forms etc. Just change the absolute sizes to SizeX and SizeY values and Voila :D For Example if You Have "WilkommenLabel.Width := 600" change it to "WilkommenLabel.Width := SizeX(600)", for "*.Height :=300" change to "*.Height = SizeY(300)", "Top :=" to "Top := SizeY()", "Left :=" to "Left := SizeX()". Tested it on "WillkommenLabel" and it works. |
Thanks to @Schabik I was able to fix the DPI for 4K monitors/resolutions.
Here is the new stable version (added to post #1). Code:
v7.1.2 |
1 Attachment(s)
how can i apply custommessage for Main files component ?
Script.iss Code:
function TranslateComponentName(StrName: String): String;Code:
ComponentsSize := 0;Code:
English.CompMain=Main files |
Quote:
Code:
'CM', 'COMPMAIN' : Result := CustomMessage('CompMain');Code:
And of course like as You added to CustomMessages.iss Code:
English.CompMain=Main files |
1 Attachment(s)
Quote:
Quote:
Code:
//------------ GROUP 1 -------------------------------------Quote:
|
Quote:
In settings.ini I had replaced only Component1.Name=Main Files with Component1.Name=cm:GAMEFILES and it worked fine. Try it with the not modified script and add the lines from previous posts |
3 Attachment(s)
but i'm talking about "Main files" component, not "Game Components". Here is the screenshots from untouched script. "Main files" have static title which set in script.iss
|
Quote:
Code:
'Main Files'Code:
CustomMessage('MainFiles')Code:
English.MainFiles=Main FilesIn Setup.ini, you can remove component 1 The key: Component1.Name=Game Components and rearranging the ID of the next components. |
Quote:
|
how to automatically uncheck and disable the checkbox of optional/selective component if file doesn't exist. for eg:
i have only 1 language pack from 5, installer should check availability for all of components and automatically uncheck&disable which are missing another question, maybe not last. how to integrate INIFile function which changes player name in steam_emu.ini after install, to Language changing? For eg: During installation i will check English language and after install installer will change "Language=spanish" string to "Language=english" in steam_emu.ini. In this way, it will be more useful for users if we automate the script. I really loved this script. |
Quote:
Code:
procedure CurPageChanged(CurPageID: integer);Or you can add the code copying from the CIU v3 (Custom Installer Ultimate) script here in the forum (just over 100 lines of code). To adapt the code you only need change languages of the code and also the GetValStr for the Settings.ini. |
Quote:
|
I will add something for language in INI file.
|
I tried something but could not give the correct size to "Main files" component, on components page first time size is right, but after clicking components it's resets.
what i changed in script.iss Quote:
Quote:
https://streamable.com/wsa4j |
Quote:
Leave as before the part you changed: ComponentsSize:=0; 1. Then replace the original line (Line commented with //) with the line below in this part. Code:
procedure ComponentsOnCheck(Sender: TObject);Code:
//ComponentsDiskSpaceLabel.Caption := DiskSpaceMB(SetupMessage(msgComponentsDiskSpaceMBLabel), SizeBytesToMB(ComponentsSize, '', 0)); |
| All times are GMT -7. The time now is 12:19. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com