FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   yener90's Inno Project Source Codes (https://fileforums.com/showthread.php?t=91563)

yener90 12-11-2011 22:25

Quote:

Originally Posted by janek2012 (Post 397992)
BUG:

thx for your help.
edited script.

shanrq 16-11-2011 04:39

yener90 can i ask you source from Sonic Generations.. ci 6.6 is different visual from sonic..
and 1 more :p .. how to enable sound for ci 6.6, i already look the code for sound its still inside but how to enable the code?..

thx yener

yener90 16-11-2011 23:44

dudes time cames...and ive got no more time for this.
i will kill my projects completely. no more updates, no more projects.

will also post no more conversions. it was a hard decision...

regards yener90

BAMsE 17-11-2011 00:39

I'm rly sorry, hope you've got an indescribable job offer as coder in big studio. CU in credits of another bestseller game :rolleyes:

MartinezPL 17-11-2011 07:02

@yener90 thx for evrything:)
anyone gots a older version of script? that newest doesn't work on xp ;)(look my previous post)

Michellin 17-11-2011 09:40

Hello I would like to ask if you could convert JavaScript into the NSIS script Inno Setup? Thank you for the answer

pakrat2k2 17-11-2011 18:48

Quote:

Originally Posted by MartinezPL (Post 398683)
@yener90 thx for evrything:)
anyone gots a older version of script? that newest doesn't work on xp ;)(look my previous post)

which version of INNO are you using ANSI or Unicode.. If its one version, try with the other.. I had issues using unicode version & almost all errors went away once I installed ansi version.

and Yener90 bud sorry its come time for you to leave completely.. been a pleasure working together on a few of your conversions.

MartinezPL 18-11-2011 06:45

Quote:

Originally Posted by pakrat2k2 (Post 398725)
which version of INNO are you using ANSI or Unicode.. If its one version, try with the other.. I had issues using unicode version & almost all errors went away once I installed ansi version.

and Yener90 bud sorry its come time for you to leave completely.. been a pleasure working together on a few of your conversions.

I using a unicode,so you telling me i have to try ANSI right?
i give a shoot and report back;)

janek2012 18-11-2011 11:58

Quote:

Originally Posted by MartinezPL (Post 398295)
Hello i got a problem
I start setup select language click next...
and i got this error
http://fotosik.org/images/66112139722927496825.jpg
OS:Windows XP SP3 any ideas guys?:)
My script file

mciSendString() function causes crash on Windows XP - Replace all (2) "PlayMusic()" instances with "//PlayMusic()" and delete background music from source and rebuild.
Note that it will disable music on startup.
You should also delete music in setup.cab so user will not play it by himself.

This is a temporary solution because I am not sure how to play music on Windows XP.

pakrat2k2 19-11-2011 09:17

1 Attachment(s)
Quote:

Originally Posted by MartinezPL (Post 398683)
@yener90 thx for evrything:)
anyone gots a older version of script? that newest doesn't work on xp ;)(look my previous post)

here is version 651 if you want even older then reply back.

artdekdok 21-11-2011 03:15

1 Attachment(s)
version 6.6 simple skin

shanrq 24-11-2011 13:23

someone can help me pls..!!!
i try the script 6.8.. i try for multi disk for freearc.. i separed with data1.cab, data2.cab to disk1 and data3.cab for disk2.. but the installer not asking for disk2 its just freezing.. and i try to cancel the installation but cant quit.. someone know how to fix it? i really want multi disk functional.

this is my extractsetting:
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;Disk:1
FreeArcFile2={src}\Data2.cab;Disk:1
FreeArcFile3={src}\Data3.cab;Disk:2

janek2012 27-11-2011 16:45

Quote:

Originally Posted by shanrq (Post 399168)
[...]
this is my extractsetting:
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;Disk:1
FreeArcFile2={src}\Data2.cab;Disk:1
FreeArcFile3={src}\Data3.cab;Disk:2

Try this:
Code:

FreeArcFile1={src}\Data1.arc;DestDir:{app};Disk:1;PrecSrep:0
FreeArcFile2={src}\Data2.arc;DestDir:{app};Disk:2;PrecSrep:0


pakrat2k2 29-11-2011 21:19

Quote:

Originally Posted by shanrq (Post 399168)
someone can help me pls..!!!
i try the script 6.8.. i try for multi disk for freearc.. i separed with data1.cab, data2.cab to disk1 and data3.cab for disk2.. but the installer not asking for disk2 its just freezing.. and i try to cancel the installation but cant quit.. someone know how to fix it? i really want multi disk functional.

this is my extractsetting:
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;Disk:1
FreeArcFile2={src}\Data2.cab;Disk:1
FreeArcFile3={src}\Data3.cab;Disk:2

janek2012 correction ... should really be, according to shanrq question :

Code:

[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1;PrecSrep:0
FreeArcFile2={src}\Data2.cab;DestDir:{app};Disk:1;PrecSrep:0
FreeArcFile3={src}\Data3.cab;DestDir:{app};Disk:2;PrecSrep:0


shanrq 30-12-2011 09:07

how to change [launchersetting] to make it running directly from dvd source.. "i already tried to put on game folder too but still none".. its like just ignored.. when i choose custom installation directx checkbox its checked.. some one know how to fix it?
i'm using CI 6.9b script..
default setting not working..
and when compiled done show one of many warning but maybe this warning is connected with directx installation problem
Warning: Line 152, Column 5: [Hint] Variable 'BEFOREINSTALL' never used
Code:

[LauncherSettings]
InstallRedist=1
InstallBeforeInstall=1

Launch1=DirectX
Launch164=0
LaunchCom1=__Installer\directx\redist\DXSetup.exe
LaunchArg1=/silent

Launch2=PunkBuster Service Setup
Launch264=0
LaunchCom2=__Installer\punkbuster\redist\pbsvc.exe
LaunchArg2=

Launch3=Microsoft Visual C++ 2008 (x86)
Launch364=0
LaunchCom3=__Installer\vc\vc2008sp1\redist\vcredist_x86.exe
LaunchArg3=/q:a


pakrat2k2 30-12-2011 10:23

6.9b is BUGGY, yener didnt have time to finish it, try using 6.8.. if using x64 windows then change launch*64=1

shanrq 30-12-2011 12:50

Quote:

Originally Posted by pakrat2k2 (Post 400068)
6.9b is BUGGY, yener didnt have time to finish it, try using 6.8.. if using x64 windows then change launch*64=1

indeed buggy.. another version before 6.9b no problem at all with redist..
can't find where is the wrong code.. i just make manual redist inside the script with [run] section..

@pakrat2k2 do you know how to make directx running before install with [run] section code?
already try to look flags but no clue at all with beforeinstall like in setup.ini :D:D

pakrat2k2 30-12-2011 15:33

the redist folder will need to be in your iso ( apart from your archives you made with freearc ) then during setup the exe looks at the ini section & notes which exes must be installed before unarchiving the freearc files.

as for a [RUN] section in inno script... like below, the lines with ; in front are ignored in any section of the iss script:
Code:

[Run]

;Filename: {app}\Binaries\Win32\ShippingPC-StormGame.exe; Description: {cm:LaunchProgram,{cm:AppName}}; flags: unchecked postinstall
Filename: {app}\Redist\DirectX\DXSETUP.exe; Parameters: "/silent"; StatusMsg: {cm:run} Microsoft DirectX...; Tasks: DirectX
;Filename: {src}\PhysX\PhysX_9.10.0224_SystemSoftware.exe; Parameters: /quiet; StatusMsg: {cm:run} NVIDIA PhysX...; Tasks: PhysX
Filename: {app}\Redist\vcredist_x86.exe; Parameters: "/q"; StatusMsg: {cm:run} Visual C++ Runtime...
;Filename: {src}\Live\gfwlivesetup.exe; Parameters: /q /nu; StatusMsg: {cm:run} Games for Windows - LIVE...; Tasks: GFWL
;Filename: {src}video.arc; Parameters: "-x -d ""{app}""\main -y -s2"; WorkingDir: {app}\main; StatusMsg: Extracting Freearc Archive...


pakrat2k2 03-01-2012 20:37

re-read your post shanrq and the folder /__Installer/ needs to be in dvd1 ( along with setup.ini etc )

amin fear 09-02-2012 01:45

Asking For Guide ....
 
Hello to all of my friends here ...

this is my first post here ...

i googled about making installations with freearc + Inno and this marvelous Topic and source code ...

hey guys i know about inno setup scripting ...

but Im weak in code section of inno ..

just want to ask you guys that should i just edit the "" InstallOptions, InstallSettings, ExtractSettings and LauncherSettings part in setup.ini "

or i must edit the ISFreeArcExtract v.6.8 to have a custom setup with Inno Setup Unicode ?

--- another question : can i add the FARSI Lang to this source and if its possible ... how ? i have the complete FA Lang File ...

sorry for my english ...

please help me ... i really need to know about this source ...

whats the steps to take it on my game ?

BAMsE 09-02-2012 06:37

amin fear you don't need to edit script unless you want to reach some "magical stuff" ;) All you must to do is to prepare gfx/sfx, pack it with 7zip, zip or winrar to setup.cab (find some of my/yener90's conversions to view the file names), customize installer via setup.ini (tittle, developer, exe, installer archives, button positions, redist installation...), add your language by putting isl file into Languages folder and adding entry to both scripts under [Languages] section, compile them and voila! :o

PS: Custom Installer uses some custom messages not included in official isl files. You can translate'em under [CustomMessages] section

amin fear 09-02-2012 07:14

Quote:

Originally Posted by BAMsE (Post 400516)
amin fear you don't need to edit script unless you want to reach some "magical stuff" ;) All you must to do is to prepare gfx/sfx, pack it with 7zip, zip or winrar to setup.cab (find some of my/yener90's conversions to view the file names), customize installer via setup.ini (tittle, developer, exe, installer archives, button positions, redist installation...), add your language by putting isl file into Languages folder and adding entry to both scripts under [Languages] section, compile them and voila! :o

PS: Custom Installer uses some custom messages not included in official isl files. You can translate'em under [CustomMessages] section

Thank you ... dear BAMsE ! ( you have nice name and avatar )

i completely got the procedure ...

just another question !?

i must use the unicode version to have the PERSIAN Lang to work properly ... but as others mentioned here before about ANSI version ...

is there any possible bug or problem with using UNICODE version of inno with this source ?

thank you anyway ... you seems great user here to me...

BAMsE 09-02-2012 09:18

amin fear you have infinite amount of luck :) CI is prepared to be used with unicode ver

amin fear 09-02-2012 09:22

1 Attachment(s)
Hi all ... sorry to ask another question ...

i spent a lot of time to add FARSI Lang to this source but there is no point by just adding the "" Name: far; MessagesFile: Languages\Farsi.isl " to [Languages] Section of both scripts ...

I think the CODE section must be updated ... and as i said before i am very poor in inno scripting ....

I attached the Farsi ISL File ...

so guys... can you update this files for me for inserting the PERSIAN
lang into this source ?

1.ISFreeArcExtract v.6.8.iss
2.LanguageSelector.iss
3.Setup.ini

please ?

any help would be appreciated ...

amin fear 09-02-2012 09:47

Hey guys ... you just arrange the code sections for farsi language with an english pattern ... ( Copy and paste English strings instead of Farsi )

put it here and then i will translate everything to my native language and reupload them to have a more MULTI LANG source ...

is it a good idea ?

BAMsE 09-02-2012 13:38

1 Attachment(s)
amin fear here you go. Just translate [CustomMassages] with far prefix in both scripts. Also remember to modify setup.ini in order to handle Persian (code for it is FA)

amin fear 10-02-2012 10:57

1 Attachment(s)
Quote:

Originally Posted by BAMsE (Post 400525)
amin fear here you go. Just translate [CustomMassages] with far prefix in both scripts. Also remember to modify setup.ini in order to handle Persian (code for it is FA)

Thank you ... dear BAMsE ...

I translated all of [CustomMessages] with FAR prefix and attached them here to have a more complete source of yener90 great treasure !

I also tested yener90 source with FARSI language and it worked perfectly ...

but i will be very grateful if you help me one more time and let me tell the problem ...

as we saw in previous pages ... this source has a serious problem with running on Windows XP platform ... and there was a temporary solution there ... but i really need to use this installation package on every platform without any problem ( from Windows XP to Seven ) ...

do you have a reliable and working method to solve this problem ?

I also want to have the background music too ...

please help me one more time ...

any help would be appreciated ...

amin fear 13-02-2012 10:13

Bass
 
3 Attachment(s)
Ok ... it seems no guy here have a solution for background music function ...

i have searched all the web for something cool and found this script ...

[CODE][Setup]
AppName=Music During Installation
AppVerName=Music During Installation
CreateAppDir=no
DisableProgramGroupPage=yes
DefaultGroupName=Music During Installation

[Files]
Source: "BASS.dll"; DestDir: "{tmp}"; Flags: dontcopy
Source: "sound.mp3"; DestDir: "{tmp}"; Flags: dontcopy

Code:

function BASS_Init(device: Integer; freq, flags: DWORD; win: hwnd; CLSID: Integer): Boolean;
external 'BASS_Init@files:BASS.dll stdcall';
 
function BASS_StreamCreateFile(mem: BOOL; f: PAnsiChar; offset1: DWORD; offset2: DWORD; length1: DWORD; length2: DWORD; flags: DWORD): DWORD;
external 'BASS_StreamCreateFile@files:BASS.dll stdcall';
 
function BASS_Start(): Boolean;
external 'BASS_Start@files:BASS.dll stdcall';
 
function BASS_ChannelPlay(handle: DWORD; restart: BOOL): Boolean;
external 'BASS_ChannelPlay@files:BASS.dll stdcall';

function BASS_Stop(): Boolean;
external 'BASS_Stop@files:BASS.dll stdcall';
 
function BASS_Free(): Boolean;
external 'BASS_Free@files:BASS.dll stdcall';

const
  BASS_SAMPLE_LOOP = 4;

procedure InitializeWizard();
var
  mp3Handle: HWND;
  mp3Name: string;
begin
  ExtractTemporaryFile('sound.mp3');
  mp3Name := ExpandConstant('{tmp}\sound.mp3');
  BASS_Init(-1, 44100, 0, 0, 0);
  mp3Handle := BASS_StreamCreateFile(FALSE, PAnsiChar(mp3Name), 0, 0, 0, 0, BASS_SAMPLE_LOOP);
  BASS_Start();
  BASS_ChannelPlay(mp3Handle, False);
end;

procedure DeinitializeSetup();
begin
  BASS_Stop();
  BASS_Free();
end;

it uses bass.dll from un4seen corp but has no Play/Pause Button ...


anyway its not so important and i will be satisfied without it ...

i tested the script and it works perfectly on every platform ( WinXp Win7 X64 )

***********************************
I also found four scripts from Russian guys ( Credit goes to RU-Board )

they use both BASSMOD.dll ( Play Tracker Modules ) and bass.dll ( Play MP3 & etc ) . i attached them to my post ... feel free to take a look at them

they are more complicated and have BG Sound control button/checkbox ...

anyway after all of this explanation any guy here can implement the first script or even Russian guys scripts into Yener 90 great source ?

I tried ... but every time i got something like DUPLICATE IDENTIFIER error ...

any help would be appreciated ...

thanks guys for your great forum !

P.S : nothing introduced is Warez ... those DLLs are free for non-commercial purpose ...

amin fear 13-02-2012 10:24

sorry to double post ...

if you need some cool tracker modules ( XM IT MOD and etc ) , take a look at this great compilation by Russian fans ...

Code:

http://keygenmusic.net/
P.S : nothing introduced is Warez ... please READ the RULES at first page by website admin ...

yener90 14-02-2012 04:50

thx amin fear :D...now i changed the source.
UPDATE 6.9 IS AVAILABLE

gatosky1620 17-02-2012 16:25

any tutorial please i dont understand how make this:

http://img829.imageshack.us/img829/3111/scr1p.jpg

gatosky1620 18-02-2012 10:26

hey Yener and understanding how to do this

http://img829.imageshack.us/img829/3111/scr1p.jpg

I do not understand yet is how to make buttons and how to identify which is the "INSTALL" MUSIC ", so please help me in this

andrei222 19-02-2012 09:02

thanks for your work, but please tell me how to make a install with two shortcuts on desk plsss

pakrat2k2 19-02-2012 21:20

Quote:

Originally Posted by andrei222 (Post 400691)
thanks for your work, but please tell me how to make a install with two shortcuts on desk plsss

in ISFreeArcExtract v.6.9.iss look under [icons] section, there you will see where it add icons to desktop.

yener90 20-02-2012 08:47

UPDATE 7.0
- added back internal installation support
- rename.bat is no more required
- fixed small button problem
- added DarkISSkin
-> Enable it editing Setup.ini -> DarkISSkin=1(0 disables it)
-> With that you dont need to create any buttons for your setups
-> only required files are Uninstall.bmp -> background image in setup
and optional:
Installer.bmp -> small installer image in installation window
background1 - background(unlimited) -> background images in installation window

andrei222 20-02-2012 09:36

thanks very much .all languages but romanian missing

BAMsE 20-02-2012 23:54

Nice to see some life here :) Any plans to supporting PNG (splash, buttons)?

edwinkyr 21-02-2012 00:08

found bug from CI 7.0 when not use DarkISSkin
after press install button

Runtime Error (at 344:5780):
Could not call proc.

yener90 21-02-2012 01:46

edwinkyr
fixed :D -> Update 7.0.1

BAMsE
sorry bro...cant find a solution :/
if you find a script, i could add it.

BAMsE 21-02-2012 03:11

1 Attachment(s)
Not mine. Just founded on net. Works fine :)

Code:

[Files]
 Source: "Splash.png"; DestDir: {tmp}; Flags: dontcopy
 Source: "isgsg.dll"; DestDir: {tmp}; Flags: dontcopy

 [*Code]
 // p2:String -- Inno Setup (Kein UNICODE)
 // p2:AnsiString -- Inno Setup (UNICODE)

 procedure ShowSplashScreen(p1:HWND;p2:AnsiString;p3,p4,p5,p6,p7:integer;p8:boolean;p9:Cardinal;p10 :integer); external 'ShowSplashScreen@files:isgsg.dll stdcall delayload';
 procedure Splash();
 begin
 ExtractTemporaryFile('isgsg.dll');
 ExtractTemporaryFile('Splash.png');
 ShowSplashScreen(WizardForm.Handle,ExpandConstant( '{tmp}')+'\Splash.png',1000,3000,1000,0,255,False, $FFFFFF,10);
 end;

 procedure InitializeWizard();
 begin
 Splash();
 end;



All times are GMT -7. The time now is 23:29.

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