FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   ASIS: Advanced Simple Installer Script (https://fileforums.com/showthread.php?t=99481)

mausschieber 13-11-2019 17:01

Quote:

Originally Posted by artexjay (Post 483432)
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


artexjay 14-11-2019 12:27

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?

KaktoR 14-11-2019 13:08

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.

artexjay 16-11-2019 14:21

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.

Entai44 02-12-2019 09:48

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)

Masquerade 04-02-2020 09:57

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.

Entai44 11-02-2020 08:24

Quote:

Originally Posted by Masquerade (Post 484573)
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'

FreshMen 21-02-2020 03:38

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.

KaktoR 21-02-2020 07:02

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


darkyamidesu 21-02-2020 13:50

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)

KaktoR 26-02-2020 08:03

Code:

v7.1.4a
_____________________________________________________
- Fixed installation size in CompactMode if components were used and all components were unchecked (Checked=0)


KaktoR 26-02-2020 08:09

Quote:

Originally Posted by darkyamidesu (Post 484687)
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).

darkyamidesu 28-02-2020 20:01

Quote:

Originally Posted by KaktoR (Post 484725)
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)
:)

bubobih 01-03-2020 08:34

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

https://i.imgur.com/qBChxZ9.png


Maybe someone know where i get wrong?

Masquerade 12-03-2020 13:11

Quote:

Originally Posted by darkyamidesu (Post 484687)
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.


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