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)

pakrat2k2 17-04-2012 21:20

alias-as just a few more for future reference.

{Userdocs}-User Documents
{Commondocs}-Shared Documents
{Localappdata} - Application Data
{Commonappdata} - All Users \ Application Data
{Pf} - Program Files
{Pf32} - Program Files (x86)

yener90 18-04-2012 03:22

UPDATE 8.2.5
- added two fonts support -> name: first font = font.ttf, second font = font2.ttf
- updated TrayIconCntrl to 1.5
- small fixes
- all buttons are customizable now (doesnt mean that you need to use these images)
Autorun:
-> Play Button = Button.png
-> Play 2 Button = Button2.png (if you dont add it, Button.png will be used instead)
-> Install/Uninstall Button = Button3.png (if you dont add it, Button.png will be used instead)
-> Exit Button = Button4.png (if you dont add it, Button.png will be used instead)
Installer:
-> Browse Button = SmallButton.png
-> Small Music Button in installation= SmallButton2.png (if you dont add it, SmallButton.png will be used instead)
-> Small Cancel Button in installation= SmallButton3.png (if you dont add it, SmallButton.png will be used instead)

alias-as 18-04-2012 06:04

good afternoon guys
i have another problem lol ...
how can i change the icon of the desktop shortcut of the executable.

Name: {userdesktop}\{code:GetAppName}; Filename: {app}\{code:GetMyAppExePath}\{code:GetMyAppExeName }; WorkingDir: {app}\{code:GetMyAppExePath}; IconFilename: {app}\{code:GetMyAppExePath}\{#CustomBinaryIcon};

yener90 18-04-2012 08:37

desktop + startmenu icon will be changed:
open installscript.iss
Code:

;#define CustomBinaryIcon "SonicGenerations.ico"
delete the underlined sign so it looks like this:
Code:

#define CustomBinaryIcon "SonicGenerations.ico"
change the icon file to your one (example: SonicGenerations.ico => Game.ico) and put it next to the installscript.iss and compile

kassane 18-04-2012 08:52

It is possible to place the browser DVD button in the autorun?
Having to go exploring traditional DVD is very annoying ...

Th3Raven 18-04-2012 10:07

1 Attachment(s)
i am having a question (how many redist can be putted in the Setup.ini ?)

I have putted a copy of my Setup.ini

yener90 18-04-2012 11:06

UPDATE 8.2.6
- License Page support added (To enable: define LicenseFile= or in langauges section in InstallScript.iss)
- small fixes

Th3Raven
8..it needs to be in numeric order, which is wrong in your Setup.ini

kassane
This is old school :p

vendecido33 18-04-2012 15:23

Quote:

Originally Posted by yener90 (Post 402048)
UPDATE 8.2.6
- License Page support added (To enable: define LicenseFile= or in langauges section in InstallScript.iss)

Sorry but I do not understand Yener90 much you put this sentence, I have to do.

pakrat2k2 18-04-2012 20:20

If when creating the installer for your game, you want a text file to be displayed then enable the line
;LicenseFile=EULA\eula.rtf in InstallerScript.iss ( remove the ; from beginning of the line )
then compile the script.

This will display the eula.rtf file before installation of the game.

vendecido33 19-04-2012 03:31

Quote:

Originally Posted by pakrat2k2 (Post 402056)
If when creating the installer for your game, you want a text file to be displayed then enable the line
;LicenseFile=EULA\eula.rtf in InstallerScript.iss ( remove the ; from beginning of the line )
then compile the script.

This will display the eula.rtf file before installation of the game.

If I can understand, what not to put parameters have to read it.

Ademarpato 19-04-2012 05:09

Yener90,

Thanks for the Update and the autorun customizations.

lupetto77 19-04-2012 12:34

2 things I would ask you if you can ever do ...

1. the second icon that created you can 'just leave the name of the icon in this case L4D2 Launcher
or not, as in the image below left 4 dead 2 L4D2 Launcher?

http://s7.imagestime.com/out.php/i696217_2icone.jpg

2. I go into the file setup.ini in these lines and edit so to install just an icon

/ / MyExecutableIconName2 L4D2 Launcher
/ / MyExecutableName2 = L4D2 Launcher.exe
/ / MyExecutablePath2 =

but nell'autorun but 'the first key is posted dall'altri as shown below how can I fix?

http://s7.imagestime.com/out.php/i69...iconamanca.jpg

Thanks for the update ...

artdekdok 19-04-2012 14:05

@lupetto77

1. example :
Code:

ApplicationName = Left 4 Dead
MyExecutableName = l4d.exe
MyExecutableIconName2 = Multiplayer
MyExecutableName2 = L4D2 Launcher.exe

you get
first desktop icon name : Left 4 Dead (ApplicationName)
second desktop icon name : Left 4 Dead Multiplayer (ApplicationName + MyExecutableIconName2)

2. fix by edit position of PlayLeft , PlayTop

gatosky1620 24-04-2012 15:50

Yener bro can you add a music file, fontsize OnMouseOut and fontsize OnMouseOver in the Autorun?

gatosky1620 25-04-2012 10:50

how i extract the "cursor" of the game please help

lupetto77 25-04-2012 15:47

Help!
 
Can you tell me why I get this error Setup couldnt find necessary files.
I got these files once completed:

__Installer
autorun.inf
Setup.exe
Setup-1a.bin
Setup-1b.bin
Setup-1c.bin
Setup-2a.bin
Setup-2b.bin


I state that I used CI 8.2.6

pakrat2k2 25-04-2012 19:32

needs ALL the setup.* files to be complete, along with the bin files too.

yener90 26-04-2012 00:14

Quote:

Originally Posted by lupetto77 (Post 402136)
Can you tell me why I get this error Setup couldnt find necessary files.
I got these files once completed:

__Installer
autorun.inf
Setup.exe
Setup-1a.bin
Setup-1b.bin
Setup-1c.bin
Setup-2a.bin
Setup-2b.bin


I state that I used CI 8.2.6

because you need Setup.ini and Setup.cab also.

lupetto77 26-04-2012 13:22

yener90 thanks I had to add the 2 files you said to me more Setup.dll if not wrong ...

Th3Raven 26-04-2012 19:01

Quote:

Originally Posted by lupetto77 (Post 402149)
yener90 thanks I had to add the 2 files you said to me more Setup.dll if not wrong ...

Yes you have to copy the Setup.dll; setup.cab; setup.ini where you have the setup.exe file and the other files.

mehrdad 27-04-2012 03:13

hi yener ihave problem with setup.ini.when i created setup not install directx,....
and dont want silent install.

darshana 27-04-2012 04:46

@yener90

Hey bro,Awesome work with the installer.

BTW I noticed that it is possible to add "precomp" & "srep" compression to freearc directly in freearc so that freearc does all the things including the compressions of precomp and srep.peterf1999 had used it to his "syndicate" installer.Is it possible to add it to your installer. And also background video(avi) instead of slideshow in his syndicate installer also seems so cool.

pakrat2k2 27-04-2012 06:02

darshana its already there ( precomp/srep) look here
http://fileforums.com/showthread.php?t=92805

alias-as 27-04-2012 06:42

hi :)
i wnna know how to write this reg information in inno

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters]

[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters\F1 2011]
"PATH_APPLICATION"="C:\\Program Files\\Codemasters\\F1 2011\\"
"LANGUAGE"="1036"
"locale"="1036"

and i want to change "PATH_APPLICATION"="C:\\Program Files\\Codemasters\\F1 2011\\" by the game path whitch i chose in installation.
please

AND
what shall i put here in LaunchArg to (silent) install OpenAL and Rapture3D (OpenALwEAX.exe + rapture3d_2.4.9game.exe)

LaunchCom3=redist\OpenAL\OpenALwEAX.exe + redist\Rapture3D\rapture3d_2.4.9game.exe
LaunchArg3=???

pakrat2k2 27-04-2012 16:23

look up 1 post all the information needed is written in tutorial post

for each additional program to install look at end of setup.ini Launch settings

directx = launch1
openal = launch2
rapture3d = launch3
etc up to 8 programs if needed, again all this is listed in link i posted above your post.

alias-as 28-04-2012 00:58

thnx so much pakarat2k2 you are always here helping people :) but:

1- I Tried using yener's tutorial (regestry part) but i faild i dont know where exactly so if you can give the right reg in inno to compare with mine, here is it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters]
[HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters\F1 2011]
"PATH_APPLICATION"="C:\\Program Files\\Codemasters\\F1 2011\\"
"LANGUAGE"="1036"
"locale"="1036"

2- i know bro how to put additionat programs but what i don't know is their silent installation code LaunchArg3=???
thnx again

Ademarpato 28-04-2012 05:18

Hello, alias-as
To register make this section as follows;

[Registry]
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName} "; ValueName: PATH_APPLICATION; ValueData: {app}; ValueType: string; Flags: UninsDeleteKey;

Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName} "; ValueName: LANGUAGE; ValueData: 1036; ValueType: string; Flags: UninsDeleteKey;

Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName} "; ValueName: locale; ValueData: 1036; ValueType: string; Flags: UninsDeleteKey;


Your setup.ini should look like;
[InstallOptions]
ApplicationName=F1 2011
Publisher=Codemasters


To better understand;
HKLM is the default key HKEY_LOCAL_MACHINE
ApplicationName=F1 2011 is the {code:GetAppName}
Publisher=Codemasters is the {code:GetAppPublisher}


Then you have the record;
"HKEY_LOCAL_MACHINE\SOFTWARE\Codemasters\F1 2011"

{app} is the installation location of the User selects, from what I understand PATH_APPLICATION the key is to define where the game is installed, so it can change depending on where the User to install the game.

If Win is 64 bit it will automatically add the correct key for the 64.

Language and Locale as I understand it is to set the language, 1036 = France? :D
If you do only one language is ready ... just save the script and compile it to create Setup.exe with the new settings.

alias-as 28-04-2012 05:54

Ademarpato
i don't know how to thank you brother ... really you helped me a lot thanks to now i can write regestry info in inno by my self :D
and yes 1036=France lol i'm french so i need only french language :p

Ademarpato 28-04-2012 07:27

Then you're ready to part of the record...
To make the silent OpenAL try ​​to put in;
LaunchArg3=/s

To try putting 3D Rapture so;
LaunchArg4=/silent

You need to separate the Rapture OpenAL, will be 2 launch...

pakrat2k2 28-04-2012 09:22

thanks for stepping in Ademarpato i was writing out just what you replied with, so i dont need to ;)

alias-as 28-04-2012 10:40

Hi again
i made a conversation DVD9 To 2xDVD5 to the game F1 2011
all worked fine but at the end i got this message
http://fileforums.com/attachment.php...1&d=1335634340
that's in french , the translation is:
an error occurred while reading the source file:
the reader does not contain the correct disk
insert% 2 (Volume Serial Number:% 3) into drive% 1
press retry to try again, ignore to skip this file

so if any one can help

NB: i only modified the icon (#define CustomBinaryIcon "Setup.ico") and in the regestry section
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName} "; ValueName: PATH_APPLICATION; ValueData: {app}; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName} "; ValueName: LANGUAGE; ValueData: 1036; ValueType: string; Flags: UninsDeleteKey;
Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName} "; ValueName: locale; ValueData: 1036; ValueType: string; Flags: UninsDeleteKey;

pakrat2k2 28-04-2012 13:29

looks like its asking for dvd1 again ?

alias-as 28-04-2012 14:05

i realised that the probleme was in the commande:
#define CustomBinaryIcon "Setup.ico" ( the Setup.ico is the icon whitch i want to see in the desktop , i put it with the same folder with the script CI 8.2.6)
when i change the desktop icon by deleting the ( ; ) i met this error.
but if i re-put the ( ; ) it works fine
;#define CustomBinaryIcon "Setup.ico"
so yener please can you help me

darshana 28-04-2012 22:04

Quote:

Originally Posted by pakrat2k2 (Post 402157)
darshana its already there ( precomp/srep) look here
http://fileforums.com/showthread.php?t=92805

That not what iam saying.I know the method of

freearc->precomp->srep->freearc

But We can do the same with using a command like this in freearc.

EX: (from peterf1999's Syndicate)

arc a -ep1 -ed -r -w.\ .\Disk\Data1.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Content\Textures\*"

arc a -ep1 -ed -r -w.\ .\Disk\Data2.bin -mprecomp:zl98:d1+srep+lzma:a1:mfbt4:d256m:fb128:mc 1000:lc8 "%choice1%\Content\XDF\*"

arc a -ep1 -ed -r -w.\ .\Disk\Data3.bin -x"%choice1%\Content\XDF\*" -x"%choice1%\Content\Textures\*" -x"%choice1%\Content\Videos\*" -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Content\*"

arc a -ep1 -ed -r -w.\ .\Disk\Data4.bin -x"%choice1%\Content_Rus\*" -x"%choice1%\Content\*" -x"%choice1%\__Installer\*" -x"%choice1%\*RU.dll" -mprecomp:t-nfj+srep+exe+delta+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8 "%choice1%\*"


My problem is When we compile like this the final freearc file cannot be extracted using yenner90 scrip. You might probably say use the other normal method. But the advantage of this method is that the extraction is very fast and when we open the freearc file, inside we can see the original files as they are, eventhough they are precomped and sreped. What this command actually do is it precoms and srep file by file unlike what we normally do(Processing a group of files packed with freearc using store mode )

pakrat2k2 28-04-2012 22:16

using freearc in filter mode from command line( peter's Syndicate ) which is different then how yener's CI works ( as of right now, but sure that it will be updated to allow filtermode ) so it will not extract even using PrecSrep:1 in setup.ini. must use old method arc precomp srep arc ( until new update comes out )

yener90 29-04-2012 06:41

thx you dudes for helping the others :D
currently my internet + system is broken.
im writing from phone.
cant help anyone.

alias-as 29-04-2012 11:47

yener please i'm getting a probleme here:
whene i change the desktop icon in installer.iss by deleting the ( ; ) ( #define CustomBinaryIcon "Setup.ico" ) ( the Setup.ico is the icon whitch i want to see in the desktop , i put it with the same folder with the script CI 8.2.6)
i get this error
http://img846.imageshack.us/img846/7876/sanstitremv.jpg

but when let it in default ( ;#define CustomBinaryIcon "Setup.ico" )
i dont get this error
help please

pakrat2k2 29-04-2012 21:59

why you dont get error is because of the ; at front of the line ( it means skip this line)

Once you've compiled the script WITH the Setup.ico enabled ( NO ; at front of line )
and you end up with the exe etc.. you have the setup*.* files & the bin files all included
within your iso, or in a subfolder, the error still shows up when installing?

alias-as 30-04-2012 01:47

the error still shows :(
when i made 1 DVD9 the installation was perfect
but when i made 2 x DVD5 i got this error
extraction setting parts is Ok
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1
FreeArcFile2={src}\Data2.cab;DestDir:{app};Disk:2
i dont know where is the probleme

pakrat2k2 30-04-2012 20:49

Quote:

Originally Posted by alias-as (Post 402252)
the error still shows :(
when i made 1 DVD9 the installation was perfect
but when i made 2 x DVD5 i got this error
extraction setting parts is Ok
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1
FreeArcFile2={src}\Data2.cab;DestDir:{app};Disk:2
i dont know where is the probleme

upload your installerscript.iss & setup.ini, i'll take a look.. i tested on binary domain, #define CustomBinaryIcon "Setup.ico"

worked fine no issues ??


All times are GMT -7. The time now is 07:01.

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