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)

K4miKaZe 24-10-2018 22:18

Quote:

Originally Posted by Midnights (Post 476554)
And for OS, how specify x86 or x64? Thank

On the same settings.ini on the top there is an option to set it up for x64 only.

64BitOnly=0 (for x86/x64)
64BitOnly=1 (for x64 only)

I dont think its possible to indicate the bit version on the OS section but im not 100% sure.

KaktoR 25-10-2018 02:42

It is possible, but you have to add the check for yourself on HW Page

Look in ISSysInfo.iss, there are all possible things
Code:

function GetOSArchitecture: Byte; external 'GetOSArchitecture@files:ISSysInfo.dll stdcall delayload';

Midnights 25-10-2018 16:51

Ok forget that ^^

Thank

mausschieber 27-10-2018 09:51

it is not compatible with Inno setup 5.6 U
must have Inno Setup Enhanced Unicode otherwise welcome page is not shown

KaktoR 27-10-2018 14:05

Yep, or use included compiler.exe

kocchi96x 14-12-2018 22:53

I like this script and am enjoying how it works but their is one thing that bugs me, and thats the records ini is their some way i can get it to work with the setup exe itself without having to keep it in the source directory with it to work. Ive played around with it trying to get it work to no avail.

KaktoR 15-12-2018 15:19

Not without rewriting bunch of code.

I think the fastest "workaround" would be to include records.ini to setup.exe and let it unpack to temp folder (or let setup.exe create a new one instead). Before archive unpacking starts, use SaveStringToFile function and change "Source=" to source dir (from where you install) and "Output=" to target dir (destination of the game or whatever).

I have not looked up the code, but all needed info should be in "procedure UltraArc".

This way records.ini will be stored and read from %temp% folder instead of source folder (so it's not directly visible to the users).

The complicated way is to use ISArcExtract
Code:

if not ArcExtract(100,'Archive.arc') then break;
But for this much more code changing is needed.

kocchi96x 15-12-2018 21:07

Quote:

Originally Posted by KaktoR (Post 477756)
Not without rewriting bunch of code.

I think the fastest "workaround" would be to include records.ini to setup.exe and let it unpack to temp folder (or let setup.exe create a new one instead). Before archive unpacking starts, use SaveStringToFile function and change "Source=" to source dir (from where you install) and "Output=" to target dir (destination of the game or whatever).

I have not looked up the code, but all needed info should be in "procedure UltraArc".

This way records.ini will be stored and read from %temp% folder instead of source folder (so it's not directly visible to the users).

The complicated way is to use ISArcExtract
Code:

if not ArcExtract(100,'Archive.arc') then break;
But for this much more code changing is needed.

After some trial and error i got it working thanks for the lead their and thanks for the script.

K4miKaZe 15-12-2018 21:47

Yep, its not so complicated, i had this already done for my setups on asis. Just include the records.ini on the asis script to be copy over to the tmp folder just the same way you include an compressor. Then change on the script the src values to tmp for the records.ini. Works perfect this way

K4miKaZe 15-12-2018 21:57

Here is a detailed way how to add it to asis (in my case i place the records.ini where the settings.ini file is). I add some more code so if someone wants to add it it can be located in easy way

First part on very top of the script:
Code:

#define ScriptVersion "7.1.0"

#include "Settings.ini"
#include "Compressor.ini"
#include "Records.ini"

On the same script a bit after:

Code:

Source: Include\ASIS.png; DestDir: {tmp}; Flags: dontcopy;
Source: Include\ASIS.bmp; DestDir: {tmp}; Flags: dontcopy;
Source: Settings.ini; DestDir: {tmp}; Flags: dontcopy;
Source: Records.ini; DestDir: {tmp}; Flags: dontcopy;

And finally this:

Code:

  ExtractTemporaryFile('Settings.ini');
  ExtractTemporaryFile('Records.ini');

After all this 3 entries just on the same script look for all

{src}\records.ini

and change them to:

{tmp}\records.ini

Remember, records.ini should be placed on the root folder of asis this way.

pakrat2k2 15-12-2018 22:40

Quote:

Originally Posted by K4miKaZe (Post 477764)
Here is a detailed way how to add it to asis (in my case i place the records.ini where the settings.ini file is). I add some more code so if someone wants to add it it can be located in easy way

First part on very top of the script:
Code:

#define ScriptVersion "7.1.0"

#include "Settings.ini"
#include "Compressor.ini"
#include "Records.ini"

On the same script a bit after:

Code:

Source: Include\ASIS.png; DestDir: {tmp}; Flags: dontcopy;
Source: Include\ASIS.bmp; DestDir: {tmp}; Flags: dontcopy;
Source: Settings.ini; DestDir: {tmp}; Flags: dontcopy;
Source: Records.ini; DestDir: {tmp}; Flags: dontcopy;

And finally this:

Code:

  ExtractTemporaryFile('Settings.ini');
  ExtractTemporaryFile('Records.ini');

After all this 3 entries just on the same script look for all

{src}\records.ini

and change them to:

{tmp}\records.ini

Remember, records.ini should be placed on the root folder of asis this way.

thanks for posting such detailed information, i'm sure there will be more then just a few who may want to do this.

K4miKaZe 16-12-2018 17:27

Quote:

Originally Posted by pakrat2k2 (Post 477766)
thanks for posting such detailed information, i'm sure there will be more then just a few who may want to do this.

Glad to help :)

KaktoR 17-12-2018 12:56

I need some testers for next version (I made some big changes).

PM me if you're interested.

Chrushev 19-12-2018 17:10

Sorry Im new to this. Is there a tutorial on how to use this with other games?

pakrat2k2 19-12-2018 22:01

no tutorial needed everything is handled by settings.ini. Download the archive & look in the setup folder, there you will see the images/names for them. Look in settings.ini for the corresponding line for the image name. Thats all there is to it basically. Edit the ini with the game information it asks for, find images you want to use, make them the same size as those in setup folder.

only change i've made is names...

In settings.ini KaktoR has the name of the game before extension, ive just removed the name of the game & left it with just the name.

IE:

Code:

[Installer]
//----------------------------------------------- Setup\Filename.bmp
WelcomeBackground=Welcome.bmp
FinishBackground=Finish.bmp
BannerBackground=Banner.bmp

before it was gamename.Welcome.bmp which personally was way too much work to change everytime, easiest to just leave it short, as above.


All times are GMT -7. The time now is 13:31.

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