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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 14-11-2019, 13:08
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
In script.iss search for
Code:
procedure SystemReq();
I used functions from ISSysInfo.dll from peterf1999.

I can't explain all of this to you.

Some example from the code
Code:
if (GetCpuMaxClockSpeed) < Processor then begin
    CPUNameLabel.Font.Color := ColorConverter(GetValInt('SystemRequirement', 'HWNotOkLabelColor', 0));
    CPUNameLabel.Caption := 'CPU: '+IntToStr(GetCpuMaxClockSpeed)+' MHz,' + (ExpandConstant('  {cm:DirectXNeeded} ')) + '{#Processor}'+' MHz';
  end;
Code:
GetCpuMaxClockSpeed
Get max clock speed of your CPU. You find it by default in ISSysInfo.iss
Processor variable takes info from {#Processor} ISPP (which you can find in Settings.iss, which reads input directly from Settings.ini).
So if detected CPU max clock speed is lower (<) then Settings.ini input, label (HWNotOkLabelColor) is in red color (default). In fact you can change the color of HWNotOkLabelColor label in Settings.ini (this is also a ISPP). The ColorConverter only change color codes from BGR (Blue, Green, Red) to RGB (Red, Green, Blue). Inno's standard is BGR, which I find not really good.

CPUNameLabel.Caption is just the label for CPU.

Code:
'CPU: '+IntToStr(GetCpuMaxClockSpeed)+' MHz,'
However you have to convert the CPU MHZ number from integer to string (IntToStr) to display MHZ correctly.

Code:
(ExpandConstant('  {cm:DirectXNeeded} '))
Don't get confused here. This is just a custom message for the word "Required", but I was too lazy to change it to something more accurate lol.

Code:
'{#Processor}'+' MHz'
Display your input in Settings.ini for Processor= and add MHz after this.


Most of the other parts from the 'procedure SystemReq' are just variables or text/labels/fancy stuff which is not really needed but it looks better
---

I always tried to made the scripts as clear as possible to give a fast overview, eventough everybody works a bit different and has a bit different characteristics.
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
artexjay (16-11-2019), Behnam2018 (26-02-2020)
Sponsored Links
  #2  
Old 16-11-2019, 14:21
artexjay artexjay is offline
Registered User
 
Join Date: Nov 2019
Location: Canada
Posts: 4
Thanks: 1
Thanked 2 Times in 2 Posts
artexjay is on a distinguished road
Alright thanks for the insightful reply!

I've downloaded the .dll and will be trying to see if i can get it to work for me. Hope you don't mind if I pm you or reply later for help if I'm having some issues with it

Thanks again.
Reply With Quote
The Following User Says Thank You to artexjay For This Useful Post:
Behnam2018 (17-02-2020)
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
[Help] need Advanced Installer script with Razor1911's UltraArc module rez3vil Conversion Tutorials 3 15-04-2024 02:24
Portable Installer Inno Setup Script y_thelastknight Conversion Tutorials 59 23-10-2020 00:02
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Simple Arc Installer 78372 Conversion Tutorials 1 15-06-2017 15:37
MSC+Srep+lzma Simple Script Example gozarck Conversion Tutorials 10 07-09-2015 16:31



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


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