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

Reply
 
Thread Tools Display Modes
  #1  
Old 31-10-2021, 15:18
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,169
Thanks: 284
Thanked 1,365 Times in 617 Posts
Masquerade is on a distinguished road
Thumbs up Simple Installer Script

Simple Installer Script

This script is designed with newbies in mind, although anyone can use it. It is as simple as can be.

Features:
  • VCL Style Support.
  • Can make a desktop icon.
  • Include custom setup icon and banner image.
  • Extract archives with a custom extension.
  • Play music while setup is running.

How to use this script:
  • Install Inno Setup. You must use Inno Setup v6.0 or greater to compile this script.
  • You can edit the configuration settings at the top of the Script.iss:
    Code:
    #define Name "Test"        ;; Insert Name of Program Here
    #define AppVersion "1.0.0" ;; Program Version
    #define Size "1000mb"      ;; This is just a string, type size in MB or GB, it's up to you!
    #define Binary "Test.exe"  ;; Type full path to EXE file!
    #define myextension ".bin" ;; You can edit this to be whatever you want
    
    //#define enablevclstyles 
    //Remove // to enable VCL styles support
    
    //#define enablemusic
    //Remove // to enable music support
  • You can change the banner image, setup icon and music in the "Script" folder:



  • The LOGOIMAGE.BMP should be a bitmap image that is 325x100 pixels.
  • To use a VCL Style, copy any of the VSF files from the "_Styles" folder and rename to STYLE.VSF. You can use the included Viewer (drag VSF onto the EXE) to test a style. These styles & viewer were included from ASIS Script thanks to KaktoR.
  • Icons should be named ICON.ICO.
  • Music should be named MUSIC.MP3.

  • All of your decompressors should go into the "Include" folder. FreeArc stuff is already included.
  • Compile the script by pressing CTRL + F9 in Inno Setup window.

Credits:

Screenshots:


Bugs:
  • None currently.
Attached Files
File Type: 7z Simple.Installer.Script.v1.4.1.7z (9.02 MB, 1384 views)

Last edited by Masquerade; 09-04-2023 at 03:28.
Reply With Quote
The Following 26 Users Say Thank You to Masquerade For This Useful Post:
Acheron (01-06-2023), ADMIRAL (15-11-2021), Altansar (26-12-2021), Cesar82 (31-10-2021), devil777 (21-01-2022), dra. (21-02-2024), ffmla (05-11-2021), FoRMaT-2007 (16-11-2021), Gehrman (01-11-2021), Grumpy (31-10-2021), Harsh ojha (15-11-2021), hdneo (27-02-2022), jojo670 (26-05-2024), KaktoR (31-10-2021), M4CKD0GE Repacks (12-11-2021), mausschieber (01-11-2021), mhum32 (28-12-2022), ogtgames (14-01-2022), oo7 (31-10-2021), Razor12911 (19-12-2021), sathex (06-02-2022), ScarAce1989 (28-10-2022), ScOOt3r (31-10-2021), Valtus (12-11-2021), wrathma (26-06-2024), yasserdivar (15-10-2023)
Sponsored Links
  #2  
Old 31-10-2021, 15:30
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,028
Thanks: 1,740
Thanked 2,201 Times in 752 Posts
Cesar82 is on a distinguished road
Very good!

Glad that people even with little knowledge of Inno Setup or other programming software share their ideas here on the forum.
It was from simple installers and projects or a little more elaborated here on the forum that I acquired the little knowledge I currently have.
Reply With Quote
The Following 3 Users Say Thank You to Cesar82 For This Useful Post:
Grumpy (31-10-2021), Masquerade (01-11-2021), oo7 (01-11-2021)
  #3  
Old 31-10-2021, 16:17
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,028
Thanks: 1,740
Thanked 2,201 Times in 752 Posts
Cesar82 is on a distinguished road
The image problem is only usata Stretch = True.
Must not use ScaleX or ScaleY on values already scaled as in line 145.
Attached Images
File Type: png snap2968.png (78.6 KB, 2239 views)
Attached Files
File Type: 7z Script.7z (2.6 KB, 90 views)
Reply With Quote
The Following 7 Users Say Thank You to Cesar82 For This Useful Post:
FoRMaT-2007 (17-11-2021), Gehrman (01-11-2021), Grumpy (31-10-2021), KaktoR (01-11-2021), oo7 (01-11-2021), sathex (06-02-2022), xNoah (25-02-2022)
  #4  
Old 31-10-2021, 19:21
Grumpy's Avatar
Grumpy Grumpy is offline
Moderator
 
Join Date: Jun 2004
Location: Australia
Posts: 5,695
Thanks: 1,256
Thanked 1,839 Times in 809 Posts
Grumpy is on a distinguished road
@ Masquerade

Very good, well written and well laid out, good job.
__________________
Can't find a Game Conversion? Check the 'Conversion INDEX'
Reply With Quote
The Following User Says Thank You to Grumpy For This Useful Post:
Masquerade (01-11-2021)
  #5  
Old 31-10-2021, 22:05
Behnam2018 Behnam2018 is offline
Registered User
 
Join Date: Jun 2018
Location: IRAN
Posts: 57
Thanks: 933
Thanked 24 Times in 20 Posts
Behnam2018 is on a distinguished road
Unhappy Please FIX ERROR

Please FIX ERROR

Bitmap.AlphaFormat := afDefined;

Please ADD MUSIC
Attached Images
File Type: jpg Capture.JPG (176.3 KB, 2252 views)
Reply With Quote
  #6  
Old 31-10-2021, 22:25
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,028
Thanks: 1,740
Thanked 2,201 Times in 752 Posts
Cesar82 is on a distinguished road
@Behnam2018, Inno Setup 5.57 or newer is required to compile this script
Reply With Quote
  #7  
Old 08-11-2021, 10:39
hausdev hausdev is offline
Registered User
 
Join Date: Nov 2021
Location: Sweden
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
hausdev is on a distinguished road
I'm getting this error when running the installer.
Code:
Unarc.dll returned an error code: -2, unsupported compression method xtool+srep+lolz:dt1:dtp1:dto1:dtm1:dtw1:dtd1:mtt0:mt6:d100m:tt4
I put the compressors in the include folder and updated the ARC.INI and CLS.INI files. Manually running
Code:
arc x -dp"..\Unpacked" ..\Packed\Data0.bin
extracts the files just fine.

ARC.INI
Code:
[External compressor:xtool]
header    = 0
packcmd   = xtool precomp -mzlib -c128mb -t100p --dbase --dedup - $$arcpackedfile$$.tmp <stdin>
unpackcmd = xtool decode -t75p - - <stdin> <stdout>

[External compressor:srep]
header     = 0
packcmd    = srep {options} -m5f -a2 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd  = srep {options} -d - - <stdin> <stdout>

[External compressor:lolz]
header     = 0
packcmd    = lolz {options} $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd  = lolz $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
CLS.INI
Code:
[lolz]
Bufsize=512k
transfer_ReadBufSize=512k
transfer_WriteBufSize=512k
MaxThreadsUsage=75%
MaxMemoryUsage=75%
ldmfTempPath=.\temp
ldmfDeleteTmp=1

[Srep]
Memory = 256
TempPath =

[Precomp]
Memory = 40
TempPath =
Include Dir
Code:
ARC.INI
cls-lolz.dll
cls-lolz.exe
CLS-srep.dll
CLS.INI
FACOMPRESS.DLL
FACOMPRESS_MT.DLL
lolz.exe
srep.exe
UNARC.DLL
xtool.exe
zlibwapi.dll
Reply With Quote
  #8  
Old 08-11-2021, 12:41
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,028
Thanks: 1,740
Thanked 2,201 Times in 752 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by hausdev View Post
I'm getting this error when running the installer.
Code:
Unarc.dll returned an error code: -2, unsupported compression method xtool+srep+lolz:dt1:dtp1:dto1:dtm1:dtw1:dtd1:mtt0:mt6:d100m:tt4
TRY attached script.
I tested it using XTool 2020 (creating file with DSG) and it worked.
Code:
xtool:mzlib+srep_new+lolz:dt1:dtp1:dto1:dtm1:dtw1:dtd1:mtt0:mt6:d100m:tt4
Attached Files
File Type: 7z Script_fix.7z (2.8 KB, 147 views)
Reply With Quote
The Following 2 Users Say Thank You to Cesar82 For This Useful Post:
FoRMaT-2007 (17-11-2021), hausdev (08-11-2021)
  #9  
Old 08-11-2021, 12:47
hausdev hausdev is offline
Registered User
 
Join Date: Nov 2021
Location: Sweden
Posts: 3
Thanks: 2
Thanked 0 Times in 0 Posts
hausdev is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
TRY attached script.
I tested it using XTool 2020 (creating file with DSG) and it worked.
Code:
xtool:mzlib+srep_new+lolz:dt1:dtp1:dto1:dtm1:dtw1:dtd1:mtt0:mt6:d100m:tt4
That seems to have fixed it. Much appreciated!
Reply With Quote
  #10  
Old 08-11-2021, 15:01
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,169
Thanks: 284
Thanked 1,365 Times in 617 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by hausdev View Post
That seems to have fixed it. Much appreciated!
You do not need lolz.exe and srep.exe unpackcmds inside arc.ini...
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
hausdev (08-11-2021)
  #11  
Old 12-11-2021, 21:49
M4CKD0GE Repacks's Avatar
M4CKD0GE Repacks M4CKD0GE Repacks is offline
Registered User
 
Join Date: Mar 2021
Location: UK Baby!
Posts: 1
Thanks: 6
Thanked 3 Times in 1 Post
M4CKD0GE Repacks is on a distinguished road
Masquerade, you are a GOD! You were kind enough to let me use your installer script early before it's release onto here in my repacks and let me just say, it is amazing! It's so easy to use, easy to add your own compression methods and the styles you can choose from are the cherry on top! Simplistic, but stunning!
This will be my installer script for a very, very long time. Thank you so much Masq, you're an angel! <3
Reply With Quote
The Following 3 Users Say Thank You to M4CKD0GE Repacks For This Useful Post:
FIFA_LOVER (13-11-2021), Masquerade (13-11-2021), ogtgames (14-01-2022)
  #12  
Old 12-12-2021, 15:31
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,169
Thanks: 284
Thanked 1,365 Times in 617 Posts
Masquerade is on a distinguished road
Update for 12/12/21
  • Included scaling fixes thanks to Cesar82. Setup now appears correctly on desktop scaling greater than 100%.
  • Added BASS library so you can now play music during installation. Please read the updated main post in order to find out how to use music in your setup.
  • Fixed typo in VCL Style definition ("enablevcltyles" corrected to "enablevclstyles").

Last edited by Masquerade; 12-12-2021 at 15:34.
Reply With Quote
The Following 6 Users Say Thank You to Masquerade For This Useful Post:
Cesar82 (12-12-2021), Gehrman (13-12-2021), Grumpy (12-12-2021), mausschieber (12-12-2021), ScOOt3r (23-12-2021), Titeuf (12-12-2021)
  #13  
Old 25-12-2021, 07:21
ScOOt3r ScOOt3r is offline
Registered User
 
Join Date: Jun 2019
Location: Canada
Posts: 75
Thanks: 611
Thanked 38 Times in 33 Posts
ScOOt3r is on a distinguished road
Hi Masquerade,

Well i have figured out my errors, and i was getting the xtool error you were having problems with, i also got it with Razor, uelr but the 2nd script worked for me and i didnt have any errors with it.. although it was missing the Music\MP3 option which i got working..
get in touch with me and i will send you my script to test. not sure why the original script and the fix didnt work..

ScOOt3r
Reply With Quote
The Following User Says Thank You to ScOOt3r For This Useful Post:
FIFA_LOVER (20-02-2022)
  #14  
Old 25-12-2021, 12:48
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,169
Thanks: 284
Thanked 1,365 Times in 617 Posts
Masquerade is on a distinguished road
Update for 25/12/21 - Merry Xmas update
  • Various improvements added thanks to Ceasr82. XTool is now working correctly.
Reply With Quote
The Following 5 Users Say Thank You to Masquerade For This Useful Post:
Altansar (26-12-2021), Gehrman (25-12-2021), Grumpy (28-12-2021), oo7 (28-12-2021), ScOOt3r (25-12-2021)
  #15  
Old 25-12-2021, 16:42
ScOOt3r ScOOt3r is offline
Registered User
 
Join Date: Jun 2019
Location: Canada
Posts: 75
Thanks: 611
Thanked 38 Times in 33 Posts
ScOOt3r is on a distinguished road
Works Great thanks for the Xmas Update..

ScOOt3r
Reply With Quote
Reply

Thread Tools
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
Light Installer Script (LIS) - DiskSpan_GUI Cesar82 Conversion Tutorials 203 04-10-2024 11:48
Ultimate Conversion Compressor (UCC) vollachr Conversion Tutorials 55 26-04-2021 10:27
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 03:05



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


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