![]() |
Quote:
Code:
if not ISArcExtract ( 0, 0, ExpandConstant('{src}\setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;Code:
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break;Quote:
Code:
procedure InitializeWizard1();Code:
WizardForm.WizardBitmapImage2.Cursor:=crHand;Code:
procedure LogoLabelOnClick(Sender: TObject);Code:
procedure LogoLabelOnClick(Sender: TObject); |
problem solved!
|
Hi. How to edit where the main game exe is located, because it's in Bin32 folder, not in main game folder, so desktop shortcut is not working?
|
You can edit in Main.iss . Change Kurutucu.exe to your game exe and directory.
|
Plz Help Me Guys
How to add Compact View Option to my setup :cool:
|
Can i use The Inno comprison ? With Freearc it show me errors every time, or can anyone explain for noobs like me ;(
|
@Shanilka
I don't know. Sorry :( @PinHeaDi With inno compression giving errors. This Freearc, 7zip, Rar etc. only. |
Ok. I finally figured it, my other qeustion is there a way to maker only .exe file. I mean all the file to be in one exe file and not in a .bin
|
Instructions on blackbox script
Ok, First things first. This blackbox script/installer doesn't support internal compression therefore, I will show you how to use the freearc, 7zip, srep, precomp, winrar, diskchange unpacking. Now here is an example and a few explainations. if not ISArcExtract (Component, Progress, ArchiveSource, Destination, '', false, Password, ExpandConstant('{tmp}\arc.ini'), True/False) then break; if not IS7ZipExtract (Component, Progress, ArchiveSource, Destination, True/False, Password) then break; if not ISRarExtract (Component, Progress, ArchiveSource, Destination, True/False, Password) then break; if not ISSRepExtract (Component, Progress, ArchiveSource, Destination, True/False) then break; if not ISPrecompExtract(Component, Progress, ArchiveSource, Destination, True/False) then break; e.g. if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; Component > Allows unpacking when the component is selected. Ask for more info about this. e.g if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; Progress > The progressbar taken up by the unpacking progress of archive. Take NOTE, 100 is the total, therefore is it's one archive, set 100, if two, set 50 and the other 50 if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Data2.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; ArchiveSource > Now as you can see, the example, ExpandConstant('{src}\Data1.bin'). The expandconstant is for the constant expansion for never mind it but you should take it for granted. {src} which means source of the setup, {pf} means the folder program files, for other constants, click here. e.g. if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; Destination > it acts the same way as the source of files but now you are directing the files in the archive to be unpacked in a folder, take note, this can only work if you are unpacking freearc, 7z or rar archive because they can contain a lot of files in one and as for precomp and srep, specify the destination file. e.g. if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break; if not ISPrecompExtract( 0, 0, ExpandConstant('{src}\data.pcf'), ExpandConstant('{app}\data.arc'), true) then break; Password > The archive password set by you. e.g. if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; True/False > aka. notPCFonFLY {PCFonFLY} It's an option to delete file after unpacking process, True means, file must be deleted and False means file mustn't be deleted. e.g. if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; Now, here are a few examples. The Password feature is only available for 7z, rar and arc. Freearc if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data1.bin'), ExpandConstant('{app}\'), '', false, '1234', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), False) then break; 7zip if not IS7ZipExtract ( 0, 75, ExpandConstant('{src}\data1.7z'), ExpandConstant('{app}'), false, '1234') then break; rar if not ISRarExtract ( 0, 25, ExpandConstant('{src}\data.rar'), ExpandConstant('{app}'), false, '4321') then break; srep if not ISSRepExtract ( 0, 10, ExpandConstant('{app}\data.srep'),ExpandConstant(' {app}\data.pcf'), true) then break; precomp if not ISPrecompExtract( 0, 90, ExpandConstant('{app}\data.pcf'), ExpandConstant('{app}\data.arc'), true) then break; Now comes to the diskchange if not ShowChangeDiskWindow (Text, ExpandConstant('{src}'),Archive) then break; Text > The text which should be written to notify the user of the setup on what to do. Archive > The archive the setup can use for verification. e.g. if not ShowChangeDiskWindow ('Insert the next disk...', ExpandConstant('{src}'),'Data7.cab') then break; |
Thanks for blackbox inno setup script
Default installation folder PHP Code:
PHP Code:
PHP Code:
|
@skakmatch
Open Main.iss. 1. Add this under #defines: Code:
#define Publisher "Ubisoft"Code:
DefaultDirName={{#Dir}}\{#Publisher}\{#AppName} |
@skakmatch
{pf}\UbiSoft\FarCry 3 Quote:
Name: full; Description: Full installation; Flags: iscustom |
Hi, iam compressing my game with -mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
using Freearc 0.67 alpha, i have included the arc.ini in the script and theres only one file called Data-1.bin The decompressionj line is Code:
if not ISArcExtract ( 0, 100, ExpandConstant('{src}\Data-1.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;http://imageshack.us/a/img819/3221/error1i.png when i press ok i get http://img199.imageshack.us/img199/7880/error2g.png i am kinda stuck, any help will be much appreciated. |
1 Attachment(s)
@D4rksp4wn
Use this unarc.dll download and extract attachment, copy and replace the unarc.dll in include folder |
Quote:
Thank you in advance. |
by the way. What method did you use?
|
i think its precomp error..try without precomp..
|
Quote:
The compression method i used is Code:
-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8they way i am doing it is: i browse the main game folder, select all files and folders by pressing Alt+A then right clicking it and cascade menu Freearc===> Add to Archive during the compression process i have noticed that the precomp version used by Freearc is the 0.42 so i have defined it in the decompression script header as 0.42. Weird thing is that if i extract the file using the right click options==>Freearc==>Extract Here all works fine and the file get extracted with no error. Also noticed that selecting all files and folders and using the -m0 then srep (default settings) then Freearc -mx works if i define the decompression lines in the script but the compression ratio is not good as if i use the Code:
-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8Also if i use the precomp(default settings) before srep compressing manually it seems srep cant do anything with the precomp file so looks like doing it manually is not an option for me. i am used to scripting but this one is really cracking my head with this error, i have been compressing games since 2001 and i have experience with a lot of compression algorithms (like darkcomp paq*,uha etc) i still use the setup.bat thingy but since it can get some users in trouble because of windows user permissions and UAC and bla bla bla i am moving to Inno and the best stuff i got till now is this script (Faster,Easier etc.). Anyway, the game i am doing final size is 15gb and compressed i got it to 2.12gb using audio conversion and file injection so i am happy with the size itself hehe, i just need to get rid of this damn error lol. Best Regards |
Problem Decompress :confused:
Code:
if not ISArcExtract ( 0, 50, ExpandConstant('{src}\Setup-1.bin'), ExpandConstant('{app}'), '', false, '', '', ExpandConstant('{app}'), notPCFonFLY {PCFonFLY}) then break; |
@D4rkSp4wn
i see, this script has a lot of bugs which i can fix and make them disappear but my hands are tied. Try that method using the converter, program i created. If it fails, then there's nothing i can do. |
@Zocky,
first error is the progress, read up the tutorials i did on the previous page. |
Quote:
|
fileforums.com/showthread.php?t=94435 there. And almost forgot, the problem might be arc.ini too.
|
thank you very much, downloading and testing your code right now, once tested will let you know my thoughts.
all the best from Brazil. |
ops sry i found the answer
|
Quote:
|
Updated 1.4
-Added Publisher. -Fixed all extraction problems and bugs. |
Is not work :/ Problem in ISDone
|
|
i still have the same problem extracting precomp+srep+freearc
|
ok wait... uploading v1.4 update for unicode :D
D4rkSpa4wn will fix the bug just wait a few minutes |
Quote:
|
Using freearc 0.67
i select the all content of the main game folder, right click it, freearc add to archive in the compression method in the gui i use Code:
-mprecomp+srep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8[External compressor:srep] ;options = l%d (minimal match length, default=512) header = 0 packcmd = srep {options} -m3f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp [External compressor:precomp] header = 0 packcmd = precomp -intense0 -c- {options} -o$$arcpackedfile$$.tmp $$arcdatafile$$.tmp unpackcmd = precomp -o$$arcdatafile$$.tmp -r $$arcpackedfile$$.tmp decompression line in the script is Code:
if not ISArcExtract ( 0, 100, ExpandConstant('{src}\*.bin'), ExpandConstant('{app}\'), '', false, '', ExpandConstant('{tmp}\arc.ini'), ExpandConstant('{app}\'), notPCFonFLY{PCFonFLY}) then break;http://imageshack.us/a/img819/3221/error1i.png when i press ok i get http://img199.imageshack.us/img199/7880/error2g.png i have included the arc.ini into the script with the line Code:
Source: Include\arc.ini; DestDir: {tmp}; Flags: dontcopy |
Quote:
|
1 Attachment(s)
BlackBox Inno Setup Script Unicode
Update v1.4 Changes -Fixed Splash Screen -Fixed Bug in data unpacking -Added Srepx64 and Lzmax64 Support -Now Set up archives in archive.ini -Freearc 0.67 Alpha Support added |
Quote:
srep 3.2 both copied to include folder i had no luck with precomp 042 and the older srep versions |
use precomp 038-042
use any srep version I used this method in v1.4 Unicode Script and it worked -mprecomp:t-jnf:zl31,34,39,44,55,64,67,68,73,74,75,84,85,94,97 ,99:d0+srep64+delta+lzma64:a1:mfbt4:d158m:fb273:mc 1000:lc8 |
looks like the ansi version is messed up, unicode version working fine here, even with precomp043 (If you change it on arc.ini and include it on the precompinside folder)
|
hmm, I didn't even know that precomp043 is supported in isdone, will add support to my source.
|
Found the solution for my problem with the ansi version.
Open the arc.ini and find the line: Code:
unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmpCode:
unpackcmd = srep {options} -d -s - - <stdin> <stdout> |
| All times are GMT -7. The time now is 12:30. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com