View Full Version : Simple Installer Script
Masquerade
31-10-2021, 14:18
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 (https://jrsoftware.org/isdl.php). 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:
#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:
https://i.ibb.co/qdv19T4/ex-Untitled.png
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 (https://www.fileforums.com/showthread.php?t=99481).
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:
Thanks to KaktoR, Cesar82 and DiCaPrIo
This script uses ISDONE library v0.6 final thanks to ProFrager (https://krinkels.org/resources/isdone.67/)
Screenshots:
https://i.ibb.co/wdQYkZ3/EXAMPLE.png
Bugs:
None currently.
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.
The image problem is only usata Stretch = True.
Must not use ScaleX or ScaleY on values already scaled as in line 145.
@ Masquerade
Very good, well written and well laid out, good job. :)
Behnam2018
31-10-2021, 21:05
Please FIX ERROR
Bitmap.AlphaFormat := afDefined;
Please ADD MUSIC
@Behnam2018, Inno Setup 5.57 or newer is required to compile this script
I'm getting this error when running the installer. 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 arc x -dp"..\Unpacked" ..\Packed\Data0.bin extracts the files just fine.
ARC.INI
[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
[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
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
I'm getting this error when running the installer. 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.
xtool:mzlib+srep_new+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.
xtool:mzlib+srep_new+lolz:dt1:dtp1:dto1:dtm1:dtw1: dtd1:mtt0:mt6:d100m:tt4
That seems to have fixed it. Much appreciated!
Masquerade
08-11-2021, 14:01
That seems to have fixed it. Much appreciated!
You do not need lolz.exe and srep.exe unpackcmds inside arc.ini...
M4CKD0GE Repacks
12-11-2021, 20:49
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
Masquerade
12-12-2021, 14:31
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").
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
Masquerade
25-12-2021, 11:48
Update for 25/12/21 - Merry Xmas update
Various improvements added thanks to Ceasr82. XTool is now working correctly.
Works Great thanks for the Xmas Update..
ScOOt3r
Is there anyway to add Install Time, how long it took to install, to this.
thanks
ScOOt3r
how to add password in this installer (support text and number password)
i try change this pass: ka321
*{#MyExtension}'), ExpandConstant('{app}'), '', False, 'ka321'
but still error
Behnam2018
23-02-2022, 19:57
Please FIX ERROR
:( Sad8669
23-02-2022, 21:05
Try removing one "l" letter from the word "fille"
Wikinoob
10-07-2022, 01:19
Hey all, brilliant script but I cannot seem to get music playing during the install process, maybe its just me but could someone have a look at my script image or post a working script please.
Many Thanks
Wiki
https://imgur.com/a/KTop1Mi
https://imgur.com/a/KTop1Mi
[Files]
Source: Script\ISDONE.DLL; DestDir: {tmp}; Flags: dontcopy
Source: Script\ENGLISH.INI; DestDir: {tmp}; Flags: dontcopy
Source: Script\LOGOIMAGE.BMP; DestDir: {tmp}; Flags: dontcopy
#ifdef enablevclstyles
Source: Script\VCLSTYLESINNO.DLL; DestDir: {tmp}; Flags: dontcopy
Source: Script\STYLE.VSF; DestDir: {tmp}; Flags: dontcopy
#endif
#ifdef enablemusic
Source: Script\BASS.DLL; DestDir: {tmp}; Flags: dontcopy
Source: Script\MUSIC.MP3; DestDir: {tmp}; Flags: dontcopy
#endif
Source: {#Resources}; DestDir: {tmp}; Flags: dontcop
Masquerade
10-07-2022, 12:06
Hey all, brilliant script but I cannot seem to get music playing during the install process
Did you enable music in the config at the top of the script?
//#define enablemusic
//Remove // to enable music support
Wikinoob
11-07-2022, 08:49
Did you enable music in the config at the top of the script?
//#define enablemusic
//Remove // to enable music support
This is what I have so far...
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////// Simple Script - Thanks KaktoR, Cesar82, DiCaPrIo
////////// Uses ISDONE library v0.6 final thanks to ProFrager (https://krinkels.org/resources/isdone.67/)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define Name "The Sims 4" ;; Insert Name of Program Here
#define AppVersion "1.89.214.1030" ;; Program Version
#define Size "51GB" ;; This is just a string, type size in MB or GB, it's up to you!
#define Binary "TS4_x64.exe" ;; Type full path to EXE file
#define myextension "data.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 do not need to change anything below this line! ////
#define Resources "Include\*"
[Setup]
AllowCancelDuringInstall=yes
AllowNetworkDrive=no
AllowRootDirectory=no
AppName={#Name}
AppVersion={#AppVersion}
DefaultDirName={sd}\Games\{#Name}
DisableDirPage=yes
DisableFinishedPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableWelcomePage=yes
OutputDir=.
OutputBaseFilename=Setup
SetupIconFile=Script\icon.ico
UninstallFilesDir={app}
UnInstallable=yes
it works for me too as this is my goto installer
ScOOt3r
Wikinoob
11-07-2022, 09:02
Does my script look ok then?
yes it does if you want to add music to your installer
also this line
#define myextension "data.bin" ;; You can edit this to be whatever you want (your script) is fine but if there is more then one .bin file which is common then you need or can change it to
#define myextension ".bin" /* You can edit this to be whatever you want */ (and it will automatically read anything with a.bin extension great when you have selective stuff or optional stuff like language files etc.
ScOOt3r
Wikinoob
11-07-2022, 09:09
yes it does if you want to add music to your installer
also this line
#define myextension "data.bin" ;; You can edit this to be whatever you want (your script) is fine but if there is more then one .bin file which is common then you need or can change it to
#define myextension ".bin" /* You can edit this to be whatever you want */ (and it will automatically read anything with a.bin extension great when you have selective stuff or optional stuff like language files etc.
ScOOt3r
Its weird then, I must be doing something wrong as the MUSIC.MP3 is in the "Script" folder but not playing once compiled and running installer?
make a backup of your current script.iss and then re copy a clean script with no changes from the one from the site again and just edit the music only to see if it works.. dont change anything else.
from this:
//#define enablemusic /* Remove ; to enable music support */
to this
#define enablemusic /* Remove ; to enable music support */
Wikinoob
11-07-2022, 09:16
make a backup of your current script.iss and then re copy a clean script with no changes from the one from the site again and just edit the music only to see if it works.. dont change anything else.
from this:
//#define enablemusic /* Remove ; to enable music support */
to this
#define enablemusic /* Remove ; to enable music support */
Still no music playing??? Very strange
Wikinoob
11-07-2022, 09:17
Below is the FULL Script
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////// Simple Script - Thanks KaktoR, Cesar82, DiCaPrIo
////////// Uses ISDONE library v0.6 final thanks to ProFrager (https://krinkels.org/resources/isdone.67/)
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#define Name "The Sims 4" ;; Insert Name of Program Here
#define AppVersion "1.89.214.1030" ;; Program Version
#define Size "51GB" ;; This is just a string, type size in MB or GB, it's up to you!
#define Binary "Game\Bin\TS4_x64.exe" ;; Type full path to EXE file
#define myextension "data.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 do not need to change anything below this line! ////
#define Resources "Include\*"
[Setup]
AllowCancelDuringInstall=yes
AllowNetworkDrive=no
AllowRootDirectory=no
AppName={#Name}
AppVersion={#AppVersion}
DefaultDirName={sd}\Games\{#Name}
DisableDirPage=yes
DisableFinishedPage=yes
DisableProgramGroupPage=yes
DisableReadyMemo=yes
DisableReadyPage=yes
DisableWelcomePage=yes
OutputDir=.
OutputBaseFilename=Setup
SetupIconFile=Script\icon.ico
UninstallFilesDir={app}
UnInstallable=yes
[Files]
Source: Script\ISDONE.DLL; DestDir: {tmp}; Flags: dontcopy
Source: Script\ENGLISH.INI; DestDir: {tmp}; Flags: dontcopy
Source: Script\LOGOIMAGE.BMP; DestDir: {tmp}; Flags: dontcopy
#ifdef enablevclstyles
Source: Script\VCLSTYLESINNO.DLL; DestDir: {tmp}; Flags: dontcopy
Source: Script\STYLE.VSF; DestDir: {tmp}; Flags: dontcopy
#endif
#ifdef enablemusic
Source: Script\BASS.DLL; DestDir: {tmp}; Flags: dontcopy
Source: Script\MUSIC.MP3; DestDir: {tmp}; Flags: dontcopy
#endif
Source: {#Resources}; DestDir: {tmp}; Flags: dontcopy
[Icons]
Name: "{commondesktop}\{#Name}"; Filename: "{app}\{#Binary}"; Check: CreateADesktopIcon
[Code]
type
TCallback = function (OveralPct, CurrentPct: Integer; CurrentFile, TimeStr1, TimeStr2, TimeStr3: PAnsiChar): LongWord;
var
DesktopIconCheckBox: TNewCheckBox;
Progress: TNewProgressBar;
RequiredLabel: TLabel;
ISDoneCancel: Integer;
ISDoneError: Boolean;
LogoImage: TBitmapImage;
#ifdef EnableVclStyles
procedure LoadVCLStyle(VClStyleFile: String);
external 'LoadVCLStyleW@{tmp}\VclStylesInno.dll stdcall delayload';
procedure UnLoadVCLStyles;
external 'UnLoadVCLStyles@{tmp}\VclStylesInno.dll stdcall delayload';
#endif
function FileSearchInit(RecursiveSubDir: Boolean): Boolean; external 'FileSearchInit@files:ISDone.dll stdcall delayload';
function ISArcExtract(CurComponent: Cardinal; PctOfTotal: Double; InName, OutPath, ExtractedPath: AnsiString; DeleteInFile: Boolean; Password, CfgFile, WorkPath: AnsiString; ExtractPCF: Boolean): Boolean; external 'ISArcExtract@files:ISDone.dll stdcall delayload';
function Exec2 (FileName, Param: PAnsiChar;Show: Boolean): Boolean; external 'Exec2@files:ISDone.dll stdcall delayload';
function ISDoneInit(RecordFileName: AnsiString; TimeType, Comp1, Comp2, Comp3: Cardinal; WinHandle, NeededMem: Longint; Callback: TCallback): Boolean; external 'ISDoneInit@files:ISDone.dll stdcall';
function ISDoneStop: Boolean; external 'ISDoneStop@files:ISDone.dll stdcall';
function ChangeLanguage(Language:AnsiString): Boolean; external 'ChangeLanguage@files:ISDone.dll stdcall delayload';
function ProgressCallback(OveralPct,CurrentPct: Integer;CurrentFile,TimeStr1,TimeStr2,TimeStr3:PAn siChar): LongWord;
begin
if OveralPct <= 1000 then
Progress.Position := OveralPct;
Result := ISDoneCancel;
end;
function CreateADesktopIcon: Boolean;
begin
Result := DesktopIconCheckBox.Checked and (not ISDoneError);
end;
///// Code by DiCaPrIo /////
function InitializeSetup:boolean;
begin
#define FHandle
#define FRst
#define Mask Resources
#sub ProcessFiles
#define FileName FindGetFileName(FHandle)
ExtractTemporaryFile('{#FileName}');
#endsub
#for {FHandle = FRst = FindFirst(Mask, 0); FRst; FRst = FindNext(FHandle)} ProcessFiles
Result:=True;
end;
/////////////////////////////
procedure CancelButtonClick(CurPageID: Integer; var Cancel, Confirm: Boolean);
begin
ISDoneCancel := 1;
Cancel := True;
Confirm := False;
end;
procedure InitializeWizard();
begin
with WizardForm do
begin
#ifdef EnableVclStyles
ExtractTemporaryFile('VCLSTYLESINNO.DLL');
ExtractTemporaryFile('STYLE.VSF');
LoadVCLStyle(ExpandConstant('{tmp}\STYLE.VSF'));
#endif
Bevel.Hide;
Caption := '{#Name} | Setup';
InnerNotebook.Hide;
OuterNotebook.Hide;
Position := poScreenCenter;
WizardBitmapImage.Show;
WizardForm.ClientWidth := ScaleX(345);
WizardForm.ClientHeight := ScaleY(200);
end;
with WizardForm.DirBrowseButton do
begin
Parent := WizardForm;
SetBounds(ScaleX(305), ScaleY(120), ScaleX(30), ScaleY(25));
Caption := '...'
end;
with WizardForm.DirEdit do
begin
Parent := WizardForm;
SetBounds(ScaleX(10), ScaleY(122), ScaleX(285), ScaleY(25));
end;
Requiredlabel := TLabel.Create(WizardForm);
with Requiredlabel do
begin
Parent := WizardForm;
SetBounds(ScaleX(10), ScaleY(152), ScaleX(390), ScaleY(25));
RequiredLabel.Caption := ExpandConstant('Required Space: {#Size}');
Font.Style := [fsBold];
end;
DesktopIconCheckBox := TNewCheckBox.Create(WizardForm);
with DesktopIconCheckBox do
begin
Parent := WizardForm;
SetBounds(ScaleX(10), ScaleY(170), ScaleX(150), ScaleY(20));
Caption := ExpandConstant('Create a Desktop Icon');
Checked := False;
Font.Style := [fsBold];
end;
Progress:= TNewProgressBar.Create(WizardForm);
with Progress do
begin
Parent := WizardForm;
SetBounds(ScaleX(10), ScaleY(122), ScaleX(325), ScaleY(25));
Max := 1000;
end;
ExtractTemporaryFile('logoimage.bmp');
LogoImage := TBitmapImage.Create(WizardForm);
with LogoImage do
begin
Name := 'LogoImage';
Parent := WizardForm;
Stretch := True;
Bitmap.AlphaFormat := afDefined;
SetBounds(ScaleX(10), ScaleY(10), ScaleX(325), ScaleY(100));
Bitmap.LoadFromFile(ExpandConstant('{tmp}\logoimag e.bmp'));
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpWelcome then
begin
LogoImage.Show;
Progress.Hide;
RequiredLabel.Show;
WizardForm.CancelButton.Show;
end;
if CurPageID = wpInstalling then
begin
Progress.Show;
DesktopIconCheckBox.Enabled := False;
WizardForm.DirEdit.Hide;
WizardForm.DirBrowseButton.Hide;
end;
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssInstall then
begin
ISDoneCancel := 0;
ISDoneError := True;
if ISDoneInit(ExpandConstant('{tmp}\records.inf'), $F777, 0, 0, 0, MainForm.Handle, 512, @ProgressCallback) and FileSearchInit(True) then
begin
ExtractTemporaryFile('ENGLISH.INI');
ChangeLanguage('English');
if FileExists(ExpandConstant('{tmp}\CLS-SREP.dll')) and (not IsIniSectionEmpty('SREP', ExpandConstant('{tmp}\CLS.ini'))) then
SetIniString('SREP', 'TempPath', ExpandConstant('{app}'), ExpandConstant('{tmp}\CLS.ini'));
if FileExists(ExpandConstant('{tmp}\CLS-SREP_NEW.dll')) and (not IsIniSectionEmpty('SREP_NEW', ExpandConstant('{tmp}\CLS.ini'))) then
SetIniString('SREP_NEW', 'TempPath', ExpandConstant('{app}'), ExpandConstant('{tmp}\CLS.ini'));
if FileExists(ExpandConstant('{tmp}\CLS-SREP_OLD.dll')) and (not IsIniSectionEmpty('SREP_OLD', ExpandConstant('{tmp}\CLS.ini'))) then
SetIniString('SREP_OLD', 'TempPath', ExpandConstant('{app}'), ExpandConstant('{tmp}\CLS.ini'));
if FileExists(ExpandConstant('{tmp}\CLS-PRECOMP.dll')) and (not IsIniSectionEmpty('PRECOMP', ExpandConstant('{tmp}\CLS.ini'))) then
SetIniString('PRECOMP', 'TempPath', ExpandConstant('{app}'), ExpandConstant('{tmp}\CLS.ini'));
repeat
if not ISArcExtract(0, 0, ExpandConstant('{src}\*{#MyExtension}'), ExpandConstant('{app}'), '', False, '', ExpandConstant('{tmp}\Arc.ini'), ExpandConstant('{app}'), False) then Break;
ISDoneError := False;
until True;
ISDoneStop;
end;
end;
if (CurStep = ssPostInstall) and ISDoneError then
begin
Exec2(ExpandConstant('{uninstallexe}'), '/VERYSILENT', False);
end;
if CurStep = ssDone then
begin
if not ISDoneError then
MsgBox('Installation Success.', mbInformation, MB_OK)
else
MsgBox('Installation Fail.', mbInformation, MB_OK);
end;
end;
procedure DeinitializeSetup();
begin
#ifdef EnableVclStyles
UnLoadVCLStyles(); //Unload the VCL Style if it was enabled.
#endif
end;
[UninstallDelete]
Type: filesandordirs; Name: {app}
Send .iss file
Do you use the script from first post? Do you edited the script?
my bad you need to Remove ; and not // but either way you have removed it and it should work.. also you have modified the script too i see which could be causing the issues
also is your .mp3 named music.mp3 double check
Wikinoob
11-07-2022, 09:33
Send .iss file
Do you use the script from first post? Do you edited the script?
How do i send you the file bud?
Wikinoob
11-07-2022, 09:33
also is your .mp3 named music.mp3 double check
Yep .mp3 for defo
How do i send you the file bud?
Upload it here as post attachment
Wikinoob
11-07-2022, 09:50
Upload it here as post attachment
Here you go bud
but now i got this error, see photo
Masquerade
11-07-2022, 10:03
Here you go bud
but now i got this error, see photo
Remove the second L in Fille (it's a typo)
Wikinoob
11-07-2022, 10:11
Remove the second L in Fille (it's a typo)
Thanks bud, didn't spot that but now got this....
Sorry about all this :(
What Inno Setup version are you using?
Wikinoob
11-07-2022, 10:23
What Inno Setup version are you using?
Inno Compiler 6.2.1
It works for me with latest version.
Last check I thought of is if maybe your mp3 file is broken in some way.
Wikinoob
11-07-2022, 10:27
It works for me with latest version.
Last check I thought of is if maybe your mp3 file is broken in some way.
I'll try a different MP3
Wikinoob
11-07-2022, 10:30
It works for me with latest version.
Last check I thought of is if maybe your mp3 file is broken in some way.
Nope changed MP3 but still getting above error
Wikinoob
11-07-2022, 10:54
Everyone who has spent time helping me out tonight, Thankyou very much....
I have managed to sort it out...the bloody BASS.DLL file had been corrupted, redownloaded and viola sorted.
Many Thanks again people :)
ok i got your script working
cut and paste this into your script file
#define EnableVclStyles /* Remove ; to enable VCL styles support */
#define enablemusic /* Remove ; to enable music support */
you had a space between them
#define EnableVclStyles /* Remove ; to enable VCL styles support */
#define enablemusic /* Remove ; to enable music support */
like this.. which didnt work as soon as i removed the space in between it solved the mp3 issue.
Wikinoob
11-07-2022, 11:04
ok i got your script working
cut and paste this into your script file
#define EnableVclStyles /* Remove ; to enable VCL styles support */
#define enablemusic /* Remove ; to enable music support */
you had a space between them
#define EnableVclStyles /* Remove ; to enable VCL styles support */
#define enablemusic /* Remove ; to enable music support */
like this.. which didnt work as soon as i removed the space in between it solved the mp3 issue.
Thanks i've added this to my script, many thanks for your help, it also seemed to be the BASS.DLL had corrupted itself, re downloaded and working
ok great. .glad we could all help you
cheers and enjoy the great installer
ScOOt3r
Wikinoob
11-07-2022, 11:16
Just a thought, Wonder if there's any way for a checkbox to mute sound as my son don't like music on installers lol
Masquerade
11-07-2022, 11:54
v1.4.1
Typo fixed.
BASS library updated.
Wikinoob
11-07-2022, 12:35
Thanks once again for all your help
Just a thought, Wonder if there's any way for a checkbox to mute sound as my son don't like music on installers lol
It is possible yes.
Wikinoob
13-07-2022, 09:41
It is possible yes.
do you happen to know the code?
Hello, sorry for disturbing, I am new to this and after compiling the script I get the error 'It is not found any file specified for ISArcExtract'. What am I missing or what am I doing wrong ?
Masquerade
25-09-2022, 23:56
Hello, sorry for disturbing, I am new to this and after compiling the script I get the error 'It is not found any file specified for ISArcExtract'. What am I missing or what am I doing wrong ?
It means the script cannot find any archives with the specified extension. Please read the front page of this topic and the very top of the script file.
Hello everyone and thank you for your welcome.
I'm a beginner, I'm using the Masquerade script (Thanks!) but I need some help... so I have a file folder with a program I'd like to install with this installer. I've tried several times, I can't. I managed to put the banner, the icon and the music, put the folder in 'include', I create an installer with two setup.bin I click on setup.exe try to install I have an ISdone error. dll... also I added a line in the setup of the script, because I had an error during the compilation: DiskSpanning=yes.
#define Binary "Test.exe" ;; Type full path to EXE file!
and this, i don't understand what should i put?
in my folder I have an exe file of which I would like the installer to create a shortcut but with a particular line example : "C:\abc\def\ijk.exe" "C:/abc/def/lmn.xex" --fullscreen
If someone can shed some light for me? Thank you and sorry for the spelling mistakes, I use a translator
Masquerade
24-10-2022, 00:05
Hi
put the folder in 'include'
Please don't put any of your program files into the Include folder - Include folder is only for decompressors and their configurations.
I click on setup.exe try to install I have an ISdone error. dll
Please tell us what ISDone error you experience, a screenshot of the error message would be helpful.
#define Binary "Test.exe" ;; Type full path to EXE file!
and this, i don't understand what should i put?
According to your explanation, if your app name is "abc" then you should write the line like this:
#define Binary "def\ijk.exe"
To add extra parameters to the shortcut, modify line 52 like this:
Name: "{commondesktop}\{#Name}"; Filename: "{app}\{#Binary}"; Parameters: "lmn.xex" --fullscreen"; Check: CreateADesktopIcon
Hope this helps!
ScarAce1989
28-10-2022, 04:52
Hi,
First time I ever try to repack and create an installer, so please be nice to me.
When I try to install the game I get an error: https://imgur.com/a/JClI67t
I used DiskSpan GUI for compressing. Light Installer Script worked fine, but I like the simplicity of Simple Installer Script more.
Any help?
I guess you have to extract contents of Setup.dll into Include folder and then recompile the script.
Setup.dll file is a freearc file. Rename .dll to .arc and extract to script Include folder
ScarAce1989
28-10-2022, 06:16
Still not working. Got the same error.
I think it has something to do with XTool_2020 folder which include preflate_dll.ddl and XTool.exe
It seems Simple Installer Script doesn't include them because they are in a seperate folder when I compile.
If I move them from the XTool_2020 folder to the Include folder it doesn't work either.
If I use other compressors like srep+LOLZ_NORMAL it works, but I want to use XTool 2020 too...
Rename Arc_* and CLS_* to Arc.ini and Cls.ini
ScarAce1989
28-10-2022, 07:15
These are the extracted Setup DLL files: https://mega.nz/file/MpYxSICQ#Kr4pUmran3CrbNa5ui7_dHAuqTfBdy1lytAouf0yz zg
There are multiple ARC_ and CLS_ files.
Choose which one you want. They have different settings in cpu/ram usage during extraction.
ScarAce1989
29-10-2022, 00:01
Next problem:
https://i.postimg.cc/9M7CnYRq/Error.png (https://postimages.org/)
Again it works fine with Light Installer Script.
Masquerade
29-10-2022, 00:20
Next problem:
https://i.postimg.cc/9M7CnYRq/Error.png (https://postimages.org/)
Again it works fine with Light Installer Script.
Missing decompressor.
ScarAce1989
29-10-2022, 00:23
Sorry but how to fix it? It's the first time I'm repacking.
Nevermind got it working! Adding preflate_dll.dll to the include folder did the trick. :)
Thanks for this great installer script!
hi there. :)
im new to this forum and i wanted to say 2 things.
first of all thank you so much for supplying this script. :cool: i have been looking on the internet for AGES to try and find a good looking inno setup script for repacking and other stuff.
second of all, how would you be able to use 7zip for this? :confused:im new to inno setup as well and freearc sucks in my opinion.
thank you :D
sorry for the load of emojis
Masquerade
28-12-2022, 05:49
second of all, how would you be able to use 7zip for this? :confused:im new to inno setup as well and freearc sucks in my opinion.
FreeArc archives only.
TheGh0stie13
13-01-2023, 11:44
[help]SIS error code 2 (unknown compression method)
arc.ini \/
[External compressor:thor]
packcmd = THOR.exe e5 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = THOR.exe d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
Masquerade
13-01-2023, 12:35
What is thor.exe? I have never heard of a thor compressor before. Make sure you put thor.exe into the Include folder before compiling your installer.
TheGh0stie13
13-01-2023, 12:37
What is thor.exe? I have never heard of a thor compressor before. Make sure you put thor.exe into the Include folder before compiling your installer.
already have, still gives the same error via ISDONE.dll(as in isdone shows the msg)
Carldric Clement
13-01-2023, 22:23
[help]SIS error code 2 (unknown compression method)
arc.ini \/
[External compressor:thor]
packcmd = THOR.exe e5 $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = THOR.exe d $$arcpackedfile$$.tmp $$arcdatafile$$.tmp
What is the THOR?
TheGh0stie13
14-01-2023, 03:58
What is the THOR?
a file compression tool
it works with freearc but need to test decompression
it is made by oscar garcia (NOT THE FOOTBALLER)
Lord.Freddy
14-01-2023, 10:22
I think that's what he said :o
https://encode.su/threads/807-The-return-of-THOR!
Carldric Clement
16-01-2023, 08:55
I think that's what he said :o
https://encode.su/threads/807-The-return-of-THOR!
unfortunately, the download link is dead. :(
Thor 0.96 .... easy findable.. ;)
More compressors: http://www.geocities.ws/lovepimple_mail/
I think that's what he said :o
https://encode.su/threads/807-The-return-of-THOR!
sorry to ressurect this, its in the freearc powerpack
(also where you will find alot of other methods
link\/
http://web.archive.org/web/20140325143438/http://freearc.org/download/0.666/FreeArc-PowerPack-0.666.exe
:mad::confused:"C:\Users\caleb\Pictures\Screenshots\Screenshot (29).png"
It would be a good Idea if you upload that image somewhere on a image upload site so we can actually see it.
sure is a errors when i click install button: it is not found any file specified for ISArcExtract
Masquerade
26-01-2024, 01:25
^^
Because you need archives to extract with the specified extension.
sasli4ok
04-04-2024, 06:23
Hello sorry if I'm dumb but how do I say to the program where is the game file like I it should from start be an archive and after i put it in script folder and
#define Binary "Test.exe" /* Type full path to EXE file */ - is the path to main .exe
or how to do it
CrownRepack
14-05-2024, 00:43
Hey guys, does anyone know to add a button to Mute On Off Music?
im not good in coding and its my first time. I learn myself and research of other installer codes and apply them in this installer but i get errors or nothing changed at all.
CrownRepack
14-05-2024, 00:52
Hello sorry if I'm dumb but how do I say to the program where is the game file like I it should from start be an archive and after i put it in script folder and
#define Binary "Test.exe" /* Type full path to EXE file */ - is the path to main .exe
or how to do it
I have not understand it at first, but to answer your problem,
the Define Binary is the exe of your game.exe or program.exe,
for example my game im trying to repack is INSIDE, so in the main folder of INSIDE game there is INSIDE.exe (the game exe)
so you only have to put INSIDE.exe, and that's it:
#define Binary "INSIDE.exe" /* Type full path to EXE file */
so when it install/unpack, it will target that exe and create a shortcut for it on desktop if you check the create shortcut checkbox.
Most games have their exe in the main directory of the folder, if your exe is in a subfolder then type
#define Binary "Subfolder/INSIDE.exe" /* Type full path to EXE file */
"Subfolder" is your subfolder name.
Hello im new and have a problem. I have an .arc file of a steam game that i want to decompress and install via the script.
So my questions are where do i put the .arc file and what do i have to put in #define myextension ".bin" ?
I am a complete beginner that only started to read into this yesterday so i apologize! But thanks in advance :)
Masquerade
11-10-2024, 03:35
The script will decompress FreeArc archives, not random archives from games. Please ask about the archive format in the "Best Compression Methods for Specific Games" thread and we'll take a look and let you know what compression method is used and if there's a way to extract the archive.
Hi thanks for your answer!
I somehow managed to make it work. It was a FreeArc archive so i was messing around and just tried putting the .arc file into the include folder and it worked !
00genesis
09-11-2024, 17:14
Hi and thank you for all the information shared. I'm new to this field so please be patient with me.
When trying to create installers for larger games (at least a couple of GBs) using the template provided, I need to enable disk spanning. However, the size of each bin file is at most ~2GB. I've been searching the forum for a workaround but have not found any. Is there any (easy) way to circumvent this? In a 10GB game it's no big deal, but for larger games it creates so many bins.
demon964
11-11-2024, 00:49
Hi and thank you for all the information shared. I'm new to this field so please be patient with me.
When trying to create installers for larger games (at least a couple of GBs) using the template provided, I need to enable disk spanning. However, the size of each bin file is at most ~2GB. I've been searching the forum for a workaround but have not found any. Is there any (easy) way to circumvent this? In a 10GB game it's no big deal, but for larger games it creates so many bins.
Use disk span gui
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.