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

Reply
 
Thread Tools Search this Thread Display Modes
  #736  
Old 13-11-2019, 17:01
mausschieber's Avatar
mausschieber mausschieber is offline
Conversion Designer
 
Join Date: Jan 2011
Location: germany
Posts: 4,322
Thanks: 6,767
Thanked 11,725 Times in 3,235 Posts
mausschieber is on a distinguished road
Quote:
Originally Posted by artexjay View Post
How did you manage to get the the setup to check for system requirements? I can't seem to figure that out.

An excerpt of your code with a small explanation on what some of the code does would be great

Thanks
take a look in setup.ini and you find it example here

Code:
[SystemRequirement]
// Win7 = 611, Win8 = 621, Win8.1 = 631, Win10 = 1000
Enable=1
Processor=3200
VideoRAM=4000
RAM=8000
OS=611
DirectX=11
HWSectionLabelColor=$808080
HWOkLabelColor=$357EC7
HWNotOkLabelColor=$ff0000
HWGoodLabelColor=$36ff00
HWPartiallyGoodLabelColor=$ff8400
HWNotGoodLabelColor=$ff0000
__________________
It would be nice if you appreciate my work with the thanks Button
Reply With Quote
The Following 3 Users Say Thank You to mausschieber For This Useful Post:
Behnam2018 (17-02-2020), devil777 (26-01-2020), Gehrman (10-07-2022)
Sponsored Links
  #737  
Old 14-11-2019, 12:27
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
Do i need a type of setup.ini to have it work or do you mean that the code in the setup.ini is enough to add into the inno script to get it to check for the requirements?
Reply With Quote
The Following User Says Thank You to artexjay For This Useful Post:
Behnam2018 (17-02-2020)
  #738  
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)
  #739  
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)
  #740  
Old 02-12-2019, 09:48
Entai44 Entai44 is offline
Registered User
 
Join Date: Nov 2018
Location: Indonesia
Posts: 48
Thanks: 73
Thanked 27 Times in 17 Posts
Entai44 is on a distinguished road
Could you add the second progress bar for file percentage? Like fitgirl 2016 do?

I edit the asis installer decompressor and add many compressors to UltraARC 2900 R6 FULL and some app

link: https://drive.google.com/open?id=1N8...3_u1SXMxuPZWJp (232 MB rar file)

Last edited by Entai44; 31-12-2019 at 06:50.
Reply With Quote
The Following User Says Thank You to Entai44 For This Useful Post:
Behnam2018 (17-02-2020)
  #741  
Old 04-02-2020, 09:57
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
OGGRE crashes installer.

I'm experiencing a crash of the installer when trying to decompress an archive packed with only oggre.

OGGRE is enabled inside Compressor.ini.

Whenever the installer runs, it instantly crashes (and closes) after pressing "Install" with no error message.

Extra Info:
  • ASIS 7.1.3 in compact mode
  • OGGRE_enc.exe v.0.1.1 used for compression
  • Pack Command used in arc.ini:
    Code:
    [External compressor:oggre]
    header = 0
    packcmd = OGGRE\OGGRE_enc.exe $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

I don't get it, I tried throwing 12 random ogg files into my compressor, and the installer decompressed them fine, I don't see why a 750-800mb archive should be any different...

Any help is appreciated.

I will update this mesage if I fix the issue.
Reply With Quote
  #742  
Old 11-02-2020, 08:24
Entai44 Entai44 is offline
Registered User
 
Join Date: Nov 2018
Location: Indonesia
Posts: 48
Thanks: 73
Thanked 27 Times in 17 Posts
Entai44 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
I'm experiencing a crash of the installer when trying to decompress an archive packed with only oggre.

OGGRE is enabled inside Compressor.ini.

Whenever the installer runs, it instantly crashes (and closes) after pressing "Install" with no error message.

Extra Info:
  • ASIS 7.1.3 in compact mode
  • OGGRE_enc.exe v.0.1.1 used for compression
  • Pack Command used in arc.ini:
    Code:
    [External compressor:oggre]
    header = 0
    packcmd = OGGRE\OGGRE_enc.exe $$arcdatafile$$.tmp $$arcpackedfile$$.tmp

I don't get it, I tried throwing 12 random ogg files into my compressor, and the installer decompressed them fine, I don't see why a 750-800mb archive should be any different...

Any help is appreciated.

I will update this mesage if I fix the issue.
Try UltraArc to compress, edit FA.ini for the 'Pack Command'
Reply With Quote
The Following User Says Thank You to Entai44 For This Useful Post:
Behnam2018 (17-02-2020)
  #743  
Old 21-02-2020, 03:38
FreshMen FreshMen is offline
Registered User
 
Join Date: Feb 2020
Location: Serbia
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
FreshMen is on a distinguished road
How to install?

Hello guys i am new in Inno Setup and i saw this i loved this, but i don't know how to install.
Reply With Quote
  #744  
Old 21-02-2020, 07:02
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
v7.1.4 added

Code:
v7.1.4
_____________________________________________________
- Updated some compressors
- Fixed Redist CB if Compactmode and Components is used
- Added translations for 'Click to select components...' message in compact mode
__________________
Haters gonna hate
Reply With Quote
The Following 5 Users Say Thank You to KaktoR For This Useful Post:
darkyamidesu (21-02-2020), Entai44 (21-02-2020), Masquerade (28-02-2020), mausschieber (21-02-2020), Titeuf (22-02-2020)
  #745  
Old 21-02-2020, 13:50
darkyamidesu darkyamidesu is offline
Registered User
 
Join Date: Jul 2013
Location: Indonesia
Posts: 4
Thanks: 4
Thanked 1 Time in 1 Post
darkyamidesu is on a distinguished road
hello, love this program.. (already make A'Lot of compression games)
if anyone can help me, can someone tell me or show me how to make
1. 2 shortcut (lets say PES game. i want to make "Game.exe" and "Settings.exe" shortcut) possible
2. can i assign .cmd or .bat file with some icon (so after i install the game/program. CMD/Bat file will have their own independent icon. rather than stock windows icon)

any reply is really appriciated..

Thanks for reading and maybe helping my request..
(sorry for my bad english. english isnt my mother/first language)

Love from indonesia..

^_^

*edit
Small more demand..
how can i change OS section to support/Showing "windows XP" - or - "XP"..
(change the number to XP, resulting any OS to showing red/unsupported)

Last edited by darkyamidesu; 21-02-2020 at 13:53.
Reply With Quote
  #746  
Old 26-02-2020, 08:03
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
Code:
v7.1.4a
_____________________________________________________
- Fixed installation size in CompactMode if components were used and all components were unchecked (Checked=0)
__________________
Haters gonna hate
Reply With Quote
  #747  
Old 26-02-2020, 08:09
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
Quote:
Originally Posted by darkyamidesu View Post
hello, love this program.. (already make A'Lot of compression games)
if anyone can help me, can someone tell me or show me how to make
1. 2 shortcut (lets say PES game. i want to make "Game.exe" and "Settings.exe" shortcut) possible
2. can i assign .cmd or .bat file with some icon (so after i install the game/program. CMD/Bat file will have their own independent icon. rather than stock windows icon)

any reply is really appriciated..

Thanks for reading and maybe helping my request..
(sorry for my bad english. english isnt my mother/first language)

Love from indonesia..

^_^

*edit
Small more demand..
how can i change OS section to support/Showing "windows XP" - or - "XP"..
(change the number to XP, resulting any OS to showing red/unsupported)
1.
Not by default. You have to do this manually.

Go to
Code:
Resources\Modules\External\Icons.iss
and add a second shortcut there.

Maybe I will add something in future.


2.
In same file as above.

You have to use
Code:
IconFilename: "{app}\Icon.ico"
Not sure if it works tough.


-----

Windows XP is 513 (with ServicePack #3).
__________________
Haters gonna hate
Reply With Quote
The Following 2 Users Say Thank You to KaktoR For This Useful Post:
Behnam2018 (26-02-2020), darkyamidesu (28-02-2020)
  #748  
Old 28-02-2020, 20:01
darkyamidesu darkyamidesu is offline
Registered User
 
Join Date: Jul 2013
Location: Indonesia
Posts: 4
Thanks: 4
Thanked 1 Time in 1 Post
darkyamidesu is on a distinguished road
Smile

Quote:
Originally Posted by KaktoR View Post
1.
Not by default. You have to do this manually.

Go to
Code:
Resources\Modules\External\Icons.iss
and add a second shortcut there.

Maybe I will add something in future.


2.
In same file as above.

You have to use
Code:
IconFilename: "{app}\Icon.ico"
Not sure if it works tough.


-----

Windows XP is 513 (with ServicePack #3).

thankyou for your generous and reply sir!
ill try at home..
(Busy in campus ATM)
Reply With Quote
The Following User Says Thank You to darkyamidesu For This Useful Post:
Behnam2018 (29-02-2020)
  #749  
Old 01-03-2020, 08:34
bubobih's Avatar
bubobih bubobih is offline
Registered User
 
Join Date: Jul 2017
Location: Space
Posts: 16
Thanks: 1
Thanked 2 Times in 2 Posts
bubobih is on a distinguished road
Hello im trying to compile a game with lolz and i do it like 6 times x 6 hours compression :P but when im installing i always get this error




Maybe someone know where i get wrong?
Reply With Quote
  #750  
Old 12-03-2020, 13:11
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,404 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by darkyamidesu View Post
2. can i assign .cmd or .bat file with some icon (so after i install the game/program. CMD/Bat file will have their own independent icon. rather than stock windows icon)
Maybe I'm a little late, but you can use this program to covert your batch files to an EXE format, where then you can add an icon using the program or Resource Hacker.

Please note that in an EXE format, your batch files cannot be read/edited, so make sure everything works before you choose to share it with others.
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
darkyamidesu (25-05-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 16:51.


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