![]() |
Ok, sory @bubobih for the "out of the blue" question for @KaktoR but.
@KaktoR can You tell me what I must add to Your script if I want to check if the component was selected or not and components are checked ("=1") in the settings.ini For example I want to check if Components are enabled in settings.ini and Polish language was selected (As Components name I'll use cm:PL) can I check if it is selected by adding something like this: Code:
if ({#UseComponents} = 1) and (IsComponentSelected(GetIniString('ComponentsSettings', 'Component' + IntToStr(CompIndexList[I])+ '.Name' = 'cm:PL')) thenOf course I know the code above is wrong and It won't work but with some adjustments I'm sure it would. |
I think I don't understand your question right.
If you select a cmomponent in installer, it will be extracted. If it is not selected, installer will not extract it. |
Quote:
I have to run a program conditionally that targets in AC1 .forge.patch files. The condition is that it only should run when Polish or Czech language is selected. How to check if Polish (for example component3.Name=cm:PL) is selected to run the program and run it if the condition is fulfilled? In Beta6 or 7 it was easy, check if "IsComponentSelected('lang\PolishLang')" and then run program to patch the forge files but now it's not clear for me. |
Ok now I understand.
I will look. |
Quote:
|
ASIS - Valid Component
1 Attachment(s)
Quote:
Code:
if IsComponentSelectedByID(3) then- If you have "Character Backslash" in the name you will check with dependence on "Level". - If you do not have "Character Backslash" in the name you will only check on the components with "Component#.File" other than empty. Code:
if IsComponentSelectedByName('Game Components\') then Code:
if IsComponentSelectedByName('Game Components\Custom Name') thenCode:
if IsComponentSelectedByName('Game Components\cm:FR') then |
Quote:
|
You can use the folowing for CurStep = ssPostInstall or CurStep = ssDone (like you wish)
Code:
if IsComponentSelectedByName('Game Components\cm:PL') then |
2 Attachment(s)
Quote:
Ok, after adding the conditions and trying to compile I've got an error says that a comma is expected. after looking at the end of the line the comma is added but in the 94-th column there should't be a comma. Attachment 24411 I'm attaching my script. |
1 Attachment(s)
Quote:
Goto line 4225 and replace in this line end; by #endif Now goto line 3945 and delete this for lines ( 3945, 3946, 3947, 3948 ) and insert: Code:
#if UseComponents == "1"Attached is a way for you to simplify the code of applying the path with xdelta. Only the file names change, so it's more practical to create a loop |
Quote:
Nope, still the same :( Ok, I've got it now. in: Code:
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#Name}_is1', 'EstimatedSize', Round(InstallationSize / 1024));my {#Name} constant is "Assassin's Creed", the apostrophe causes the error... Is there a way to replace the apostrophe for the name of the Game to be complete? Unfortunately I think the game's name must be with the apostrophe for registry entries to work :( |
Quote:
Code:
RegWriteDWordValue(HKLM, 'SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{#StringChange(Name, "'", "''")}_is1', 'EstimatedSize', Round(InstallationSize / 1024)); |
2 Attachment(s)
Quote:
Thanks :) Ok, About DPICalculator, I think it Does work for 125% Scale but on 100% it does This: Attachment 24413 and on 150% does this: Attachment 24414 |
Unfortunatelly I only have a FullHD monitor (1920x1080) and therefore I can't test the DPI right. Maybe Cesar is in the mood to fix this someday :(
|
Quote:
Here in Full HD resolution change to 125%, 150% 175% works normal. https://i.imgur.com/bu87yFH.png |
| All times are GMT -7. The time now is 12:59. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com