Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #676  
Old Yesterday, 05:53
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 126
Thanks: 15
Thanked 29 Times in 26 Posts
Schabik is on a distinguished road
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')) then
      begin

Of course I know the code above is wrong and It won't work but with some adjustments I'm sure it would.
Reply With Quote
Sponsored Links
  #677  
Old Yesterday, 07:07
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,571
Thanks: 653
Thanked 3,718 Times in 1,343 Posts
KaktoR is on a distinguished road
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.
__________________
Haters gonna hate
RIP GOD
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Titeuf (Yesterday)
  #678  
Old Yesterday, 08:10
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 126
Thanks: 15
Thanked 29 Times in 26 Posts
Schabik is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
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.
The extract part is OK, although I'm having problems with understanding the new code.

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.

Last edited by Schabik; Yesterday at 08:13.
Reply With Quote
The Following User Says Thank You to Schabik For This Useful Post:
KaktoR (Yesterday)
  #679  
Old Yesterday, 15:57
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 2,571
Thanks: 653
Thanked 3,718 Times in 1,343 Posts
KaktoR is on a distinguished road
Ok now I understand.

I will look.
__________________
Haters gonna hate
RIP GOD
Reply With Quote
  #680  
Old Yesterday, 23:09
Schabik Schabik is offline
Registered User
 
Join Date: Dec 2008
Location: Somewhere in Poland
Posts: 126
Thanks: 15
Thanked 29 Times in 26 Posts
Schabik is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
Ok now I understand.

I will look.
Thanks 😊
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Arc Installer 78372 Conversion Tutorials 1 15-06-2017 16:37
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 7 01-10-2016 17:28
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 1 29-09-2016 05:10
MSC+Srep+lzma Simple Script Example gozarck Conversion Tutorials 10 07-09-2015 17:31
Portable Installer Inno Setup Script y_thelastknight Conversion Tutorials 57 05-06-2015 00:43



All times are GMT -7. The time now is 18:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Copyright 2000-2018, FileForums @ https://fileforums.com