|
#11
|
||||
|
||||
|
In script.iss search for
Code:
procedure SystemReq(); 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 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,' Code:
(ExpandConstant(' {cm:DirectXNeeded} '))
Code:
'{#Processor}'+' MHz'
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
|
| The Following 2 Users Say Thank You to KaktoR For This Useful Post: | ||
artexjay (16-11-2019), Behnam2018 (26-02-2020) | ||
|
|
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 |