PDA

View Full Version : INNO TROUBLESHOOT - Questions Here


Pages : [1] 2 3 4 5 6 7

REV0
08-08-2012, 03:46
To keep forum clean, ask your questions, explain your problems about INNO Setup and it's contents in here, instead of opening threads about them.
Before asking your question, check HERE (http://fileforums.com/showthread.php?t=93191) to see if the answer is already there.

Grumpy
08-08-2012, 04:08
Originally Posted by JacksMafia

ok first thanks so much REV0 for this tutorials i really understood much from it
but i'm still beginner in this so you'll have to bear me for a while
1.i already got video and insert it in to setup.cab no problem in this but when installation start there is no audio but the video works ok and the menu music works fine too .i found video in setup.cab and i replaced it-deleted my video-and it worked fine so what i do wrong?

2.i need you to tell me what's the best compression ratio for internal installation i now use this

Compression=lzma2/ultra64
;ExtraDiskSpaceRequired={#ExtraNeedSize}
LZMADictionarySize=65536
CompressionThreads=3
LZMANumFastBytes=273
SolidCompression=yes
LZMAUseSeparateProcess=yes

is this the best of it?

3. after game installed if i run the dvd again it doesn't detect that the game is installed meaning that the play button is not active why is that? the game i try to install doesn't have key in registry by default so i create a simple key for it have a look on it

[Registry]
Root: HKLM; SubKey: "SOFTWARE\THQ\DoW2 CR"; ValueName: UninstallString; ValueData: {uninstallexe}; ValueType: string; Flags: UninsDeleteKey;

is that right? or i have to do something else?

that's all for now

thanks for advise

REV0
08-08-2012, 04:09
ok first thanks so much REV0 for this tutorials i really understood much from it
but i'm still beginner in this so you'll have to bear me for a while
1.i already got video and insert it in to setup.cab no problem in this but when installation start there is no audio but the video works ok and the menu music works fine too .i found video in setup.cab and i replaced it-deleted my video-and it worked fine so what i do wrong?

2.i need you to tell me what's the best compression ratio for internal installation i now use this

Compression=lzma2/ultra64
;ExtraDiskSpaceRequired={#ExtraNeedSize}
LZMADictionarySize=65536
CompressionThreads=3
LZMANumFastBytes=273
SolidCompression=yes
LZMAUseSeparateProcess=yes

is this the best of it?

3. after game installed if i run the dvd again it doesn't detect that the game is installed meaning that the play button is not active why is that? the game i try to install doesn't have key in registry by default so i create a simple key for it have a look on it

[Registry]
Root: HKLM; SubKey: "SOFTWARE\THQ\DoW2 CR"; ValueName: UninstallString; ValueData: {uninstallexe}; ValueType: string; Flags: UninsDeleteKey;

is that right? or i have to do something else?

that's all for now

thanks for advise

1. It could be encode error

2. yes, lzma2/ultra 64 is the strongest compression for internal setups

3. Because INNO has it's own regkeys so it will detect that game is not installed, that's normal.

And like i stated in tutorial, DO NOT play with Subkey.

In every case, subkey will look like this:

Root: HKLM; SubKey: "SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}"...

JacksMafia
08-08-2012, 21:21
ok new question i will use external compressor but i still need the command line for compress a folder that contains a lot of sub-folders
so what to write ? cause if i wrote the path for it followed by \. it compress the contents but not the folders -files only- i need to know what code to write so it compress not just the files in the main game folder but also the folders in it which surly contains data
here is what i did

arc a -ep -w.\ .\Disk1\Data1.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\*" -x"%choice1%\GameAssets"
if ERRORLEVEL 1 goto arcfail

this will exclude GameAssets folder and should compress every thing else but it only compress the other files in the main folder but not the other folders

thanks for advise

REV0
09-08-2012, 03:53
ok new question i will use external compressor but i still need the command line for compress a folder that contains a lot of sub-folders
so what to write ? cause if i wrote the path for it followed by \. it compress the contents but not the folders -files only- i need to know what code to write so it compress not just the files in the main game folder but also the folders in it which surly contains data
here is what i did

arc a -ep -w.\ .\Disk1\Data1.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\*" -x"%choice1%\GameAssets"
if ERRORLEVEL 1 goto arcfail

this will exclude GameAssets folder and should compress every thing else but it only compress the other files in the main folder but not the other folders

thanks for advise

You have to separate bin files for each folder. You cant compress 2 folder and it's contents i believe.

Onizuka87k
09-08-2012, 07:19
You have to separate bin files for each folder. You cant compress 2 folder and it's contents i believe.
Have you ever tried -r parameter?! ;)

REV0
09-08-2012, 07:51
Well, i'm not God, i cant know everything, i said 'i believe' not 'i know'. Also i didnt use precomp srep until now. So thanks for saying -r parameter, maybe you can also tell us where to put it so i can update tutorial thread ;)

Cheers

Nevermind, found it

Onizuka87k
09-08-2012, 09:07
Well, i'm not God, i cant know everything, i said 'i believe' not 'i know'. Also i didnt use precomp srep until now. So thanks for saying -r parameter, maybe you can also tell us where to put it so i can update tutorial thread ;)

Cheers

Nevermind, found it
Sorry REV0, it didn't want to be a critical! :(
I expressed it badly, i was in a hurry! :)

JacksMafia
09-08-2012, 10:44
ok guys let get in the middle here i have tried using -r command but it didn't done the job for me :( and here is what i mean
http://img696.imageshack.us/img696/1434/17104825.jpg

as you see in the image there is files and folder compressed in the .bin file the problem is the folder
Assets contains sub-folders ArchiveDesign and Maps which are compressed out of the Assets folder......!!!! :confused:
also the files inside these sub-folders are compressed out of them .......!!! :confused:
these files should be inside these sub-folders and these sub-folders should be inside the Assets folder
here the command i used

arc a -ep -r -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets"
if ERRORLEVEL 1 goto arcfail

you will notice that i used -r command which gives me the same result if i didn't use it and write at the end of the command \. to be like this

arc a -ep -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets\."
if ERRORLEVEL 1 goto arcfail


so help please :)

REV0
09-08-2012, 10:52
ok guys let get in the middle here i have tried using -r command but it didn't done the job for me :( and here is what i mean
http://img696.imageshack.us/img696/1434/17104825.jpg

as you see in the image there is files and folder compressed in the .bin file the problem is the folder
Assets contains sub-folders ArchiveDesign and Maps which are compressed out of the Assets folder......!!!! :confused:
also the files inside these sub-folders are compressed out of them .......!!! :confused:
these files should be inside these sub-folders and these sub-folders should be inside the Assets folder
here the command i used

arc a -ep -r -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets"
if ERRORLEVEL 1 goto arcfail

you will notice that i used -r command which gives me the same result if i didn't use it and write at the end of the command \. to be like this

arc a -ep -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets\."
if ERRORLEVEL 1 goto arcfail


so help please :)

you'll use -r, -x, -n values between lc8 and ''choice1 in my TDU2 conversion.

If you used BAMSE's, the one i gave in tutorial thread, you'll use them instead -w.

So, both of bat files are different. I suggest to start from BAMSE's, so make thing easier as beginning.

Onizuka87k
09-08-2012, 12:20
here the command i used

arc a -ep -r -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets"
if ERRORLEVEL 1 goto arcfail

you will notice that i used -r command which gives me the same result if i didn't use it and write at the end of the command \. to be like this

arc a -ep -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets\."
if ERRORLEVEL 1 goto arcfail


so help please :)
arc a -r -w.\ .\Disk2\Data2.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\Assets\*"
For test, with fake files:
http://img339.imageshack.us/img339/4063/senzatitolo1yk.png

:)

BAMsE
09-08-2012, 13:12
JacksMafia your problem is -ep instead of -ep1
Have a nice day :p

Onizuka87k
09-08-2012, 13:23
JacksMafia your problem is -ep instead of -ep1
Have a nice day :p
Hum.. -ep1 compress the content of the root folder and NOT the root folder itself.
I mean
http://img39.imageshack.us/img39/8676/senzatitolo1er.png

JacksMafia
09-08-2012, 19:10
the working code is

arc a -r -ep1 -w.\ .\Disk1\Data1.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "%choice1%\*" -x"%choice1%\GameAssets\*"
if ERRORLEVEL 1 goto arcfail


thanks guys for helping me :):D

JacksMafia
09-08-2012, 19:57
ok guys here is another problem i got when moving on to 2 step
GameAssets folder contains 4 sub-folders i need to compress 2 of them to be .bin file and the other 2 to another .bin file
i used the code above but i ended with strange result which is compressing the GameAssets folder in the first bin file which i excluded it in the code like you see above and the compress the contents of the GameAssets folder
to another bin file
you see here that GameAssets folder exist and-it's not visible here-it's sub-folders too and it's empty
http://img607.imageshack.us/img607/1885/58250068.jpg

and here is the contents of one of the sub-folders in the other bin file
http://img854.imageshack.us/img854/9198/46860793.jpg


so help pleaseeeeeeeeeee:)

jksengko
10-08-2012, 01:35
HI.....

how to add in this script to install directx , visual c++ can choose on installation screen

REV0
10-08-2012, 01:57
bin them separately, then. It total there will be 4 bin file for each of them. Then you can edit setup.ini like described in tutorial thread

REV0
10-08-2012, 01:58
They're already there. If you're asking for another conversion refer this thread:

http://www.fileforums.com/showthread.php?t=93191

jksengko
10-08-2012, 03:43
Hi....me again
this can run program.msi or not??

REV0
10-08-2012, 04:28
Launcher will run .msi, exe files, however in compiling, it will not create msi extension setups.

pakrat2k2
10-08-2012, 05:17
Hi....me again
this can run program.msi or not??

yes you can run MSI from script.

Onizuka87k
10-08-2012, 08:59
ok guys here is another problem i got when moving on to 2 step
GameAssets folder contains 4 sub-folders i need to compress 2 of them to be .bin file and the other 2 to another .bin file
i used the code above but i ended with strange result which is compressing the GameAssets folder in the first bin file which i excluded it in the code like you see above and the compress the contents of the GameAssets folder
to another bin file

I don't understand your problem! :confused:
If you want to exclude GameAssets folder you need something like this
arc a -r -ep1 -w.\ .\Disk1\Data1.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 -n"%choice1%\*" -x"%choice1%\GameAssets\*"

:confused:

pakrat2k2
10-08-2012, 12:06
Launcher will run .msi, exe files, however in compiling, it will not create msi extension setups.

the launch he's refering to is the one to run directx, vcredist, etc ( it will run a MSI file just fine ) it doesnt create a msi setup, but includes the command to run the msi file within the setup.exe. ( it's in the setup.ini, remember ?! :) )

REV0
10-08-2012, 12:18
the launch he's refering to is the one to run directx, vcredist, etc ( it will run a MSI file just fine ) it doesnt create a msi setup, but includes the command to run the msi file within the setup.exe. ( it's in the setup.ini, remember ?! :) )

Yep, i know first time i read his post i thought he was asking how to create setup.msi..

Too much work, too little time; brain cell overheat

JacksMafia
10-08-2012, 16:34
I don't understand your problem! :confused:
If you want to exclude GameAssets folder you need something like this
arc a -r -ep1 -w.\ .\Disk1\Data1.bin -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 -n"%choice1%\*" -x"%choice1%\GameAssets\*"

:confused:
yeah i know this must be confusing i want to exclude GameAssets from first bin and on the 2 step compress 2 folders located in the GameAssets folder and 3 step the other 2 in GameAssets folder
that's all meaning 3 bin files .:D
that's all but i still have the problem i described up there

any help?!!!! :)

pakrat2k2
10-08-2012, 22:30
to make it easier for yourself, run the bat file for bins 2 & 3 only, set the choice command beforehand

IE: set choice1=x:\Gamename\GameAssets\

this way the default folder is the GameAssets subfolder, then you can add the folders you dont want to include in the bin2/bin3 archives.

-x"%choice1%\subfolder1\*", -x"%choice1%\subfolder2\*".... this will create the archive you want without those 2 subfolder NOT in bin2 archive, same for bin3 archive but reverse the 2 subfolders of course.

Andre Jesus
11-08-2012, 09:51
Hi Revo.
Congratulation for this tutorial of Inno Setup.

How can i make text box transparent (Welcome to the blá blá) on Inno Setup?

See the example below.
3712

Thanks in advance.

BAMsE
11-08-2012, 10:15
Andre Jesus it's just PNG with some transparency (setup.cab\setup\textbg.png)

REV0
11-08-2012, 10:26
Also, you can use same TextBG.png just resize it via setup.ini

yener90
11-08-2012, 10:39
delete TextBG.png from Setup.cab

JacksMafia
11-08-2012, 10:42
thanks you very much pakrat2k2 for advise it worked for me
but i still have problem in installing the game i used this code for compressing

arc a -r -ep1 -w.\ .\Disk1\Data3.bin -mprecomp042:v+srep+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8 "%choice1%\*"
if ERRORLEVEL 1 goto arcfail

which means that i used precomp and srep in compressing -long time to do it i know- now when i install the game what code should i write in setup.ini?
i use this
FreeArcFile3={src}\Data3.bin;DestDir:{app}\GameAss ets;Disk:1;PrecSrep:1;Lang:en

but when installer reach for bin 3 it just freeze and don't do any thing should precomp be in setup.cab ? or what is the right code to write in setup.ini?

this the last step
helpppppppppppppp

BAMsE
11-08-2012, 12:51
FreeArcFile3={src}\Data3.bin;DestDir:{app}\GameAss ets;Disk:1;PrecSrep:1;Lang:en

You don't need it since it's used for old precomp+srep method. If you're compressing via commandline and in one step, then all you need is
PrecompVer=inside
in setup.ini

JacksMafia
11-08-2012, 13:19
yeah i'm compressing via commandline but it's not one step this is the 3 step but only for data3 i used this
arc a -r -ep1 -w.\ .\Disk1\Data3.bin -mprecomp042:v+srep+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8 "%choice1%\*"
if ERRORLEVEL 1 goto arcfail

the first 2 bins just used this
-srep+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8
and i have tried what you said and nothing when it comes to extract the data3 it just stop no error massages or any thing else only the first 2 bins extracting perfect
i also tried
PrecompVer=0.42
didn't work
please save my day

EDIT: i have found the problem and solve it thanks every one for helping me

Andre Jesus
11-08-2012, 19:05
delete TextBG.png from Setup.cab

Also, you can use same TextBG.png just resize it via setup.ini

Andre Jesus it's just PNG with some transparency (setup.cab\setup\textbg.png)

Thank you dears.

But my script is not based on the script Yener.
I'm doing it manually, so it needed to know how to make inno setup call this picture as the background of the text.
Is possible put this transparent background text, making a play MP3 music during the install mode, put the splash image, change the color bar progress .... only using inno setup? Or this is only possible if i based on the script Yener?

Please see attached an example of what I'm trying to do.:confused:
3714

pakrat2k2
11-08-2012, 22:36
yeah i'm compressing via commandline but it's not one step this is the 3 step but only for data3 i used this
arc a -r -ep1 -w.\ .\Disk1\Data3.bin -mprecomp042:v+srep+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8 "%choice1%\*"
if ERRORLEVEL 1 goto arcfail

the first 2 bins just used this
-srep+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8
and i have tried what you said and nothing when it comes to extract the data3 it just stop no error massages or any thing else only the first 2 bins extracting perfect
i also tried
PrecompVer=0.42
didn't work
please save my day

EDIT: i have found the problem and solve it thanks every one for helping me

post how you fixed it. so others have this information, incase they run into same problem.

JacksMafia
12-08-2012, 10:53
post how you fixed it. so others have this information, incase they run into same problem.
what the problem was?
will i can't say that i'm stupid but -anyway- i was using CI 8.3.5.1 which had precomp v 0.42 i compressed the game with it but it just stop when it comes to extracting and then i notice that new version of CI 8.5 has precomp too the same version but the size of it was different
in CI 8.3.5.1 size was 768 kb -as i remember-
in CI 8.5 size was 1.42 mb
so i took a wild guess that the error was in precomp and i start compressing again with the big one and after a lot of hours i found that i was right about precomp version there is some thing wrong about CI 8.3.5.1 and the percomp version inside it

that's all -sorry for late replay-
Jacks

yener90
12-08-2012, 11:21
i hope you are using the precomp executable inside the "include" folder for compressing using commandline...
installer gets problems if you use an other version

JacksMafia
12-08-2012, 14:53
yeah i was using it when i did the compression -the failed one- and then i just replaced it with the new one from v 8.5
and that worked like charm
BTW thanks for your work i couldn't done this if you didn't create this great app
you really made my day mate
thanks

JacksMafia
14-08-2012, 19:20
guys what about if a want to use 7z+ serp for compression what code should i write in bat file?
and what about arc.ini what i should write if using 7z+ serp?
also
-msrep+lzma:a1:mfbt4:d256m:fb128:mc100 0:lc8
is this the best compression serp can do? if not then what is?

thanks

NamelessOne
15-08-2012, 11:00
Here's my question. Let's say I want to add some optional mods to my installation. How to add them to the installation and how to make backups of possible overwrited files? I'm guessing this belongs to the [Components] section but I don't have much time at the moment to experiment by myself, hence my question here :D

Brazilica
17-08-2012, 08:21
Hi. I want to make a conversion but i'm stuck at the setup.exe. I want to modify the setup.exe in order to ask me when to insert the second disk. if i don't modify the setup file i will receive an error "error, the file is not on thie disk" (something like that) but if i'll insert the second disk and press ok the instalation will continue.
The folder looks like that:
http://img43.imageshack.us/img43/7821/58851823.jpg

You can download the setup file from here (http://www.mediafire.com/?c867bloie5ha8zp)

REV0
17-08-2012, 09:13
According yo yener's script (and assuming every exe has same system) the information you're looking to change was actually created WHEN bin files were created by setup.

So, to simplify the explanation, for example;

If you have 3 bin and setup.exe which were created bt script, the installation will check these 3 bin files during installation. If you put 2 bin files instead of 3, setup will ask 'Insert disk1', if you put 4 or more instead of 3, setup will continue to install without asking it.

When some setups are saying only 'insert next disk' some of them are demanding correct bin files and disk numbers. I suggest to re-create or convert your game instead of editing (if it's easy to do)

Brazilica
17-08-2012, 10:31
I made a 3xDVD5 conversion. Everityhing is ok except that the setup ask for disk1 instead of disk2 and disk3, but this is not a major problem.

Thx. Have a nice day

JacksMafia
17-08-2012, 11:02
I made a 3xDVD5 conversion. Everityhing is ok except that the setup ask for disk1 instead of disk2 and disk3, but this is not a major problem.

Thx. Have a nice day
your problem is in setup.ini you have to modify it so the setup ask you for disk 2 so if you have 3 data files on first disk make the forth like this

FreeArcFile1={src}\Data4.bin;DestDir:{app};Disk:2

so Data4.bin is on disk 2 notice Disk number in the last of the line ;)

that's all have fun :)

muzz
18-08-2012, 10:03
Hey i made my own setup.cab with all the files but no background and other things are coming

JacksMafia
19-08-2012, 20:41
ok now i'm able to deal with the registry keys very good but just one question left
how to create sub-folder in a folder ? i have tried many times with no luck

anyone knows?
thanks

FatalError
20-08-2012, 02:23
How to hide main progress bar?

REV0
20-08-2012, 03:10
ok now i'm able to deal with the registry keys very good but just one question left
how to create sub-folder in a folder ? i have tried many times with no luck

anyone knows?
thanks

Sub-folder in a folder ?

You're using FreeArc ?

How to hide main progress bar?

Why you need to hide it anyway :confused:

yener90
20-08-2012, 03:41
hiding progressbar xD
you can set moveprogressbar in interfacesettings to 5000 to hide it.

FatalError
20-08-2012, 03:59
hiding progressbar xD
you can set moveprogressbar in interfacesettings to 5000 to hide it.

Okey,How to move progress bar and extracting file item label?

JacksMafia
20-08-2012, 07:00
Sub-folder in a folder ?

You're using FreeArc ?


maybe i didn't explain much i mean in the registry like this :)
http://img838.imageshack.us/img838/6894/26422814.jpg

thanks

REV0
20-08-2012, 07:18
maybe i didn't explain much i mean in the registry like this :)
http://img838.imageshack.us/img838/6894/26422814.jpg

thanks

simple. I'll given an example:

Publisher: EA (leave it in regkey as it is)

Appname: Need for Speed Most Wanted (leave it in regkey as it is)

"SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}\ ergc\blabla..

You know the rest i believe :D

JacksMafia
20-08-2012, 07:20
simple. I'll given an example:

Publisher: EA (leave it in regkey as it is)

Appname: Need for Speed Most Wanted (leave it in regkey as it is)

"SOFTWARE\{code:GetAppPublisher}\{code:GetAppName}\ ergc\blabla..

You know the rest i believe :D
that was fast and yeah i know the rest
one more question i made 2 dvd for my game the additional installation folder exist on the 2 dvd so if i choose to install dx or vcredist it runs fine but if i choose to not install dx or vcredist the installation of the game finish with out of range error game installed fine but this out of range error really kills me
any ideas ?!!!!
thanks mate

FatalError
22-08-2012, 03:51
ISSI duplicates...
not working this;

#define ISSI_UseMyInitializeWizard

procedure ISSI_InitializeWizard();
begin

end;

or how to use different InitializeWizard();

Please Help..!!

and

How to move progress bar and extracting file item label?

pakrat2k2
22-08-2012, 16:41
fatalerror

you define initializewizard # first, depending on how many things you want to do. just increase the number for each seperate item.

#define InitializeWizard();
#define InitializeWizard(1);
#define InitializeWizard(2);


procedure InitializeWizard();
begin
..
..
..
end;
procedure InitializeWizard(1);
begin
..
..
..
end;
procedure InitializeWizard(2);
begin
..
..
..
end;

etc...

as for second part of question read yener's tutorial topic, its been asked & answered already.

FatalError
23-08-2012, 00:57
Thank You!!But its only yener90's script?Don't working my script.

pakrat2k2
23-08-2012, 19:58
ISSI duplicates...
not working this;

#define ISSI_UseMyInitializeWizard

procedure ISSI_InitializeWizard();
begin

end;

or how to use different InitializeWizard();

Please Help..!!

and

How to move progress bar and extracting file item label?

you wrote & I replied for the first part... which again is simple to see what you have wrong..

#define ISSI_UseMyInitializeWizard
--> bold part is missing from procedure line...

procedure ISSI_UseMyInitializeWizard();
begin
.
.
.
.
end;

FatalError
24-08-2012, 05:33
you wrote & I replied for the first part... which again is simple to see what you have wrong..

#define ISSI_UseMyInitializeWizard
--> bold part is missing from procedure line...

procedure ISSI_UseMyInitializeWizard();
begin
.
.
.
.
end;

Don't work but I'm trying update issi file.Will be working now...

jksengko
19-09-2012, 21:29
how to auto launch settings.exe after install finish yener90's inno script

REV0
20-09-2012, 02:45
how to auto launch settings.exe after install finish yener90's inno script

If i'm not mistaken it does not support auto launch of an exe file. However you can add it as second exe file in setup so, you will see play and setting exe i n autorun part. Also on desktop. Investigate yener's alan wake conversion along with his explications in tutorial thread.

Evil Boy
20-09-2012, 04:03
Can anyone tell me code for adding video while game is installing!!Installer is simple I just want to add a a video that starts when installation of Game starts!!

kashifagaria
24-09-2012, 15:22
You Know For This Error

Source: Include\7z.com; DestDir: {tmp}; Flags: dontcopy

7z.com

pakrat2k2
24-09-2012, 16:02
You Know For This Error

Source: Include\7z.com; DestDir: {tmp}; Flags: dontcopy

7z.com

its an EXE NOT COM, thats why the error

gentilu
26-09-2012, 09:21
Why, my inno setup, not create icon for unistall?

ashutosh4555
27-09-2012, 03:11
how can i extract pcf --> srep--> compresed file in inno setup
nt in CI

kashifagaria
27-09-2012, 11:29
I create the setup for inno setup Progresbar not show what can i do
http://imageshack.us/f/16/64116425.jpg/

Sorry For my bad english

REV0
28-09-2012, 16:49
I create the setup for inno setup Progresbar not show what can i do
http://imageshack.us/f/16/64116425.jpg/

Sorry For my bad english

I had this thing before, dont put buttons too much high in setup.

kashifagaria
29-09-2012, 02:55
I had this thing before, dont put buttons too much high in setup.

Thanks

Evil Boy
06-10-2012, 18:56
Hello !!I want help on this !! Can anyone tell me code that will make a compact view button while installation like this : http://speedcap.net/sharing/534/b6c9a4bc644507384807fe65836e8553.png(see below in let corner) and after clicking that button installer go in Right corner and become small like this : http://speedcap.net/sharing/534/72e95d33210f309fcef7bd45f3051a68.png

Thnx in advance for helping me!!

55hamed
11-10-2012, 14:10
How to add a password to setup.cab please

yener90
11-10-2012, 14:39
there is a tool...called setup.cab cryptor

Evil Boy
whats the advantage?!
i see no point.

vasu001
22-10-2012, 20:18
aFTER installing max payne 3 from inno setup provided by peter i get this error-

"PlayMaxPayne3 has encountered a problem and need to be close"

this error is only on windows xp and also the compressed setup was not launching on xp.

what to do?

Joe Forster/STA
24-10-2012, 03:25
"PlayMaxPayne3 has encountered a problem and need to be close"

This is a general error message; be more specific.

vasu001
24-10-2012, 04:24
This is a general error message; be more specific.

1.) Well maybe it is,but before compressing the installer of game was perfectly working in both xp and 7 but now it is only working in win7[i have dual windows].

2.) before ,with original installer the game was not giving this error but now it gives in xp. [i have installed the game in 7 and its working there but not on xp].

well thats my problem..........

Also one more thing.- Do i have to keep those leftover files like compress.bat,levels1,levels2,etc. the files outside Disks 1,2,3,4 folders.:confused:

kumarvivek1990
24-10-2012, 07:30
can anyone tell me how to add directx setup in the installer before installing game file. I already have have the full installation on the disk and want to install it from dvd. please also tell me coding which is to be added in the install script file(i.e .iss file)

kumarvivek1990
24-10-2012, 07:38
Can background images be added in the installer without the need of setup.cab & and setup.ini & also provide me the coding to be added in compiler(if possible)?

REV0
26-10-2012, 00:55
1.) Well maybe it is,but before compressing the installer of game was perfectly working in both xp and 7 but now it is only working in win7[i have dual windows].

2.) before ,with original installer the game was not giving this error but now it gives in xp. [i have installed the game in 7 and its working there but not on xp].

well thats my problem..........

Also one more thing.- Do i have to keep those leftover files like compress.bat,levels1,levels2,etc. the files outside Disks 1,2,3,4 folders.:confused:

You should ask this to peterf himself because CI you used belongs to him

can anyone tell me how to add directx setup in the installer before installing game file. I already have have the full installation on the disk and want to install it from dvd. please also tell me coding which is to be added in the install script file(i.e .iss file)

AFAIK, you can't edit current installation files to add DX.

Can background images be added in the installer without the need of setup.cab & and setup.ini & also provide me the coding to be added in compiler(if possible)?

You need cab for backgrounds. You can do internal setup and merge cab and exe tho.

JacksMafia
02-11-2012, 09:03
hi guys i 'm trying to do Command And Conquer Red Alert 3-old game i know but very good one- but i'm stuck with movies folder with 3.78 gb of .vb6 files this is the codes i have tried
-mprecomp:t-nfj:zl78,99:d0+srep+exe+delta+lzma:a1:mfbt4:d256m: fb128:mc1000:lc8
and i tried this too
-msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8

and i have tried to do the job with freearc but no good i only managed to compress the rest of the game files from 3.78 gb to 1.92

any ideas?!!!

thanks

BAMsE
02-11-2012, 14:43
All video formats use compression so movies are poorly compressed with archivers. Only way to shrink their size is to recompress them. vb6 is some mp4 container so it'll be quite complicated.

Evil Boy
20-11-2012, 02:19
there is a tool...called setup.cab cryptor

Evil Boy
whats the advantage?!
i see no point.

If someone want a small installer can get it by simply clicking compact button and i want to knew

inovateqsa
22-11-2012, 04:15
I am trying to add the video for my duke nukem to my custom installer, yet no matter what I try it simply will not work.

I Downloaded it from youtube in mp4 format, then used any video converter to convert it to avi format, and finally renamed it to "Video" and then put it in the backgrounds folder.

Is there something I am missing?

-I Originally posted this in the support section, i think that may have been the wrong place. If it is, please just delete or ignore that question.

REV0
22-11-2012, 05:39
You have to use following settings for yener's CI:

http://img221.imageshack.us/img221/3931/supermw.jpg

inovateqsa
22-11-2012, 05:53
Yeah, I've already seen those settings and tried them.

Any video converter doesn't have the exact setting though, so I get them as close as possible.
The only differences are in "Video Bit Rate" - which is 2000kbs, and "Audio Bitrate" - which is 192kbs.
The formats (Xvid, Mp3, Avi etc.), and the audio sample rate are all exactly the same.

Will I have to use that specific converter?
And if so - what is it's name?

pakrat2k2
22-11-2012, 15:58
the app for video conversions --> [ SUPER 2012 build 53 ]

yener90
22-11-2012, 20:02
inovateqsa
make sure you choose MEncoder and did you tried an other installer with video? does it show there on your system?

inovateqsa
23-11-2012, 06:05
Yeah, I also have sleeping dogs and I used a ready made conversion from this site for that one.

The video on it plays fine.

I will try with the Super 2012 converter instead. It is probably my video converter that is the problem, it does not have any option similar to MEncoder.

inovateqsa
29-11-2012, 02:55
Nope, no matter how hard I try it simply refuses to display the Video.

I use Keepvid.com to download the trailer in 720p Mp4, then use Super 2012 to convert it, then rename it to "Video", and finally put it in the setup.cab's "background" folder. It just refuses to play.

Pictures work fine.

These are the settings I am using:
http://imageshack.us/photo/my-images/90/newbitmapimageqq.png/

(I do not have an account with imageshack - so i cannot use a direct link)

I am using CI 8.5.6.9.

Does anyone have any clue on what the problem could be?

Thanks.

REV0
29-11-2012, 03:21
Nope, no matter how hard I try it simply refuses to display the Video.

I use Keepvid.com to download the trailer in 720p Mp4, then use Super 2012 to convert it, then rename it to "Video", and finally put it in the setup.cab's "background" folder. It just refuses to play.

Pictures work fine.

These are the settings I am using:
http://imageshack.us/photo/my-images/90/newbitmapimageqq.png/

(I do not have an account with imageshack - so i cannot use a direct link)

I am using CI 8.5.6.9.

Does anyone have any clue on what the problem could be?

Thanks.

Use latest version of CI perhaps ?

inovateqsa
29-11-2012, 03:53
nah, still doesn't work.

I give up, pics it is.

-thanks anyway.

REV0
29-11-2012, 07:46
In fact, i just tried one of my with-video conversion and it's not working either, that's interesting, yep video function is not working anymore.

Stacked Deck
29-11-2012, 08:19
Use AVS Convertor

Use The Settings On The Picture

REV0
29-11-2012, 08:20
The thing is i ran my MOH conversion and it's not working dunno why... So nothing about video settings, existing stuff is not working either

Stacked Deck
29-11-2012, 12:38
I also had the same problem but this convertor does the job.

REV0
29-11-2012, 13:04
Still not working for yener's CI

medoman
29-11-2012, 13:10
revo i did everything in the topic but i still don't know how to compress

i mean how to do this with the compiler

REV0
29-11-2012, 13:34
compress is a wide thread and discussion mate

Stacked Deck
29-11-2012, 13:39
Still not working for yener's CI

What Ci version?

REV0
29-11-2012, 13:41
Done

Stacked Deck
29-11-2012, 13:42
Use valeron's installer as a video tester.

Stacked Deck
29-11-2012, 13:44
Done
what is done?

REV0
29-11-2012, 13:48
Done is, installing codec pack, looks like yener's CI still needs some codecs to work properly, install them and it's good to go

Stacked Deck
29-11-2012, 14:02
Ok. Thanks

Stacked Deck
03-12-2012, 17:56
hi guys i 'm trying to do Command And Conquer Red Alert 3-old game i know but very good one- but i'm stuck with movies folder with 3.78 gb of .vb6 files this is the codes i have tried

and i tried this too


and i have tried to do the job with freearc but no good i only managed to compress the rest of the game files from 3.78 gb to 1.92

any ideas?!!!

thanks
Use this compression.

best compression

ARC -m0
PRECOMP038 -slow
SREP -m3f
ARC -mrep:800mb+lzma:800mb+delta+exe

vasu001
13-12-2012, 21:42
Hello Friends........

First of all i want to tell u that i am a noob in this compression field so bare with me....

This is what i want to ask -
I downloaded peterf1999 Assassin's Creed III (2x DVD9 to 2x DVD5) *Standard Edition* *FULL* setup and converted my game..final size 5.60 GB .it installed without problem....

now what i want to know is

1. how to insert video[that i want] in the setup[i don't want to do compression again but it will be ok if i had to as a final solution]..

also i want to add music while slide show is going on and also when in compact view....

so please kindly help me...i have dictated my problem to peterf1999 but it seems he is not answering for some important reasons of his[busy may be,no complaints].......

2. also there is one more thing,i have a dlc folder in 2nd dvd5.i want to execute its setup.exe file automatically as soon as the installation gets finished.... how to do so?.

thanks in advance...............

well its related to max payne 3 inno setup by peterf1999 but since the query is related to inno setup so iam posting it here.

can i compress idata.bin file at a time.......

pakrat2k2
14-12-2012, 05:21
inno does compress only 1 file at a time. ( look in your temp folder & notice the freearctmp filename, while inno is compressing what you've specified)

vasu001
14-12-2012, 09:28
read my post 104 and solve it as well please......

pakrat2k2
14-12-2012, 14:25
sure, you CANT with peter's conversion, its closed source. You'll have to choose another conversion by REV0, Fabioddq, then you can input video you want into the setup.cab file. ( you just open the cabfile, and replace the video, with same name as whats there already ) you can do the same with images music etc.

Kurutucu
15-12-2012, 12:03
How use mp3slimmer (mpz10 compressor) with freearc?

mpz10+arc

Andre Jesus
26-12-2012, 21:38
Hi all.

I created a custom installer with Inno Setup, but when I'm trying to install the program in a place that does not have enough space, the installer dont displays the feedback informed not to try again, give up or cancel out instead of that, it freezes and I can not leave or cancel.
What is the code I use to create this feedback you can not install due to not having space.

Razor12911
27-12-2012, 00:17
where is your custom installer?

Andre Jesus
27-12-2012, 05:36
where is your custom installer?

Hi Razor 12911, sorry my fault.
Please see attached my installer.
I'm also trying to put the PNG button on / off music during installation, but could not. I think I have to create a TPanel but do not know exactly which codes for it.

5448

Thanks in advance.

Razor12911
27-12-2012, 05:49
ok what do you want to add or fix?

Andre Jesus
27-12-2012, 08:25
ok what do you want to add or fix?

1) Put a button PNG to on/off the music during instalation. Like this:
5451

2) Correct the message insufficient space when installed on a hard drive that has enough space. It's message is not appearing in my script.
The installer is frozen instead of showing the message to abort, retry or cancel.

3) Put the imagem glass.png on Wizardform, like this:

5450

Sorry my bad english.

Razor12911
28-12-2012, 00:26
1) Put a button PNG to on/off the music during instalation. Like this:
5451

2) Correct the message insufficient space when installed on a hard drive that has enough space. It's message is not appearing in my script.
The installer is frozen instead of showing the message to abort, retry or cancel.

3) Put the imagem glass.png on Wizardform, like this:

5450

Sorry my bad english.
Ok. Gimme time.

jackstuff
28-12-2012, 01:01
How to put a background music on a basic custom installer in unicode or ansi version doesn't matter & is registry entries r possible on the basic custom installer can u give me some example to show how

pakrat2k2
28-12-2012, 15:58
How to put a background music on a basic custom installer in unicode or ansi version doesn't matter & is registry entries r possible on the basic custom installer can u give me some example to show how

reg entries are simple, you grab them from your original installed game version, then using reg to inno conversion program english version ( under useful programs ( joe edited it to english from russian ) ).

http://fileforums.com/showthread.php?t=92995

Its make as ISS script from your saved reg file, the entire contents from the script go into [REGISTRY] section of your inno script.

DO NOT INSTALL, JUST RUN THE EXE TO SEE HOW THE MUSIC BUTTON LOOKS, THEN CANCEL INSTALL

here's a music button script that adds music to your script ( in russian so translate to english ). In the output dir is a setup.exe, just run it and you'll see the music botton in lower LH corner, you can change the image of the button & sound played by making appropriate changes to the files used. ( use any on CI8.5.7.4 or CIU etc for image / sound files )

good luck :)

vasu001
29-12-2012, 08:05
what is the best compression code in compress.bat file to compress a game of 10gb with media folder inside containing videos folder of 3.85gb and rest files in media folder of around 7.68 gb............

I want to compress the entire folder[main] in one go to 3.98-4.20 gb.......

I think its possible to compress that much to 4 GB [as peterf1999 was able to do] if i use external compression............

so please tell the code.....

Razor12911
29-12-2012, 08:32
what is the best compression code in compress.bat file to compress a game of 10gb with media folder inside containing videos folder of 3.85gb and rest files in media folder of around 7.68 gb............

I want to compress the entire folder[main] in one go to 3.98-4.20 gb.......

I think its possible to compress that much to 4 GB [as peterf1999 was able to do] if i use external compression............

so please tell the code.....
It' depends, the media files are hard head files whch can't be compression unless you remake them.
You can try the arc-pcf-srep-arc method to compress.

Andre Jesus
29-12-2012, 08:53
:eek:reg entries are simple, you grab them from your original installed game version, then using reg to inno conversion program english version ( under useful programs ( joe edited it to english from russian ) ).

http://fileforums.com/showthread.php?t=92995

Its make as ISS script from your saved reg file, the entire contents from the script go into [REGISTRY] section of your inno script.

here's a music button script that adds music to your script ( in russian so translate to english ). In the output dir is a setup.exe, just run it and you'll see the music botton in lower LH corner, you can change the image of the button & sound played by making appropriate changes to the files used. ( use any on CI8.5.7.4 or CIU etc for image / sound files )

good luck :)

I installed this file. exe and it destroyed almost all my programs when I uninstall. My folder of files and programs (x86) gone, including paid programs and data I had on my work:eek:, nothing works on my PC. I'll have to format my machine.:mad:

pakrat2k2 any comments about this file. exe?

pakrat2k2
29-12-2012, 08:59
you DONT install it, you just run the EXE to see how the music button looks, then cancel install. IF you'd looked thru the script you'd have seen that.

Grumpy
29-12-2012, 16:00
@Andre Jesus
Do a system 'Restore' back to before you installed the exe. ;)

vasu001
29-12-2012, 18:35
After compression i am getting .bin files........what to do in setup.ini to extract them?

pakrat2k2
29-12-2012, 21:38
just make sure in setup.ini there is NO [ExtractSettings] section... why not read the thread on the CI Tutorial all your questions/answers are there!

http://fileforums.com/showthread.php?t=92805

Razor12911
30-12-2012, 00:14
1) Put a button PNG to on/off the music during instalation. Like this:
5451

2) Correct the message insufficient space when installed on a hard drive that has enough space. It's message is not appearing in my script.
The installer is frozen instead of showing the message to abort, retry or cancel.

3) Put the imagem glass.png on Wizardform, like this:

5450

Sorry my bad english.

I will start the installer from scratch, it has a lot of unusual line. BMP will be replace by Jpg's and etc.

Andre Jesus
31-12-2012, 10:47
I will start the installer from scratch, it has a lot of unusual line. BMP will be replace by Jpg's and etc.

No problem Razor12911, after studying various scripts, this was the result.
I could use the script Yener, I know that is very good and complete, but I just wanted to learn how to use the functions I need. For example, I want to put a button on / off music during installation, but I cant just remove it of the script Yener and insert in my script.

Any help to improve will be welcome.

Thank you very much and happy a new year.
P.S Sorry my bad english.

Andre Jesus
31-12-2012, 10:58
@Andre Jesus
Do a system 'Restore' back to before you installed the exe. ;)

I try my friend, but doesn't worked.:(

Andre Jesus
31-12-2012, 11:04
you DONT install it, you just run the EXE to see how the music button looks, then cancel install. IF you'd looked thru the script you'd have seen that.

No problem my friend, actually that was a good reason to install Windows 8 on my PC.;)

Anyway, thank you.

tiendat5013
03-01-2013, 03:25
http://1.bp.blogspot.com/-XUxLbVOKsmw/ULAkx2XYgSI/AAAAAAAACPw/DsMmZA-ltic/s400/1.png
http://3.bp.blogspot.com/-v3nilkojHhI/ULAkwM4wDkI/AAAAAAAACPc/RUuojy53EcY/s400/2.png
http://2.bp.blogspot.com/-PWLP42y2qdc/ULAkwBJWa7I/AAAAAAAACPY/FjGkYD-PQvM/s400/3.png
http://2.bp.blogspot.com/-oFoelrUFdJ0/ULAkxlnuh1I/AAAAAAAACPo/MfSbVN7dxq8/s400/5.png

jackstuff
06-01-2013, 04:51
Used revo's conversion, it is much better than this one

Andre Jesus
07-01-2013, 14:52
Hi all.

How can i create this message on inno setup?

http://s7.postimage.org/jeh0gwycb/Message.jpg

My installer warns me that has no space only during installation, but want him to let me know before you start the installation.
I also want the message to appear "rolling back".

Andre Jesus
07-01-2013, 18:54
Hi again.

I created a new panel to insert a button.png with the function on/off the music during installation, however, i dont know the script to inser the button.png and the function on/off music during installation.
Please show me the script to insert a button.png and de funtion on/off music during installation on the TPanel that i created.

My idea of creating a new TPanel is correct?

This is the TPanel that i created (the black form in the left side down)
http://s9.postimage.org/6v30ioeb3/Sem_t_tulo.jpg

Thanks in advance.

pakrat2k2
07-01-2013, 23:52
thats the script i posted for you to look at, the 1 you 'installed' rather then just look at, it had the button.png & music working in that small script. post # 116

hackjack
09-01-2013, 01:29
please can anyone tell me how to add multiple archive extracting to valerons scripts no 10 and 12 link-http://fileforums.com/showthread.php?t=93298
i just want to extract only free arc files and no srep or precomp or anything else. even if add lines to script the progress bar shows 200 to 300 percent.

pakrat2k2
09-01-2013, 20:12
find #define records and add ; or // to front of line. ( skip the line )

also add ; for either archive names, or define programfiles... & compile the script. this will generate the proper records.inf file for the archives / files in the conversion. then remove the ; or // from where you put them & run the conversion. This should then have a proper progressbar that only goes to 100%.

hackjack
09-01-2013, 21:27
sorry bro i tried but i cant do it plz do this for me. script no 10 an 12
link-http://fileforums.com/showthread.php?t=93298
nd plz upload.
sorry for trouble

pakrat2k2
10-01-2013, 21:57
you have to do it, it uses your files. either that or use the conversions posted in index for those 2 games.

ayateknik
13-01-2013, 14:56
Hello, my problem inno setup screen with the following codes to hide the full-screen image as it appears in the add file with no problem putting skin alone
I am not receiving the same error when I add music files to the game but the game is opening splash and splash skin file does not delete the music does not play but instead of attaching the stand-alone splash splash splash in both the music at the same time coming, but this time I was not at the same time both the music and the system properties of skin and splash how can I use a combination of modules which alone all that I wrote the game setup screen, I want a large modules add dll files and codes
still getting the error


; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "Angy Birds"
#define MyAppVersion "1.0"
#define MyAppPublisher "Rovivo"
#define MyAppURL "www.Rovivo.com"
#define MyAppExeName "AngryBirds.exe"

[ISFormDesigner]
WizardForm=FF0A005457495A415244464F524D003010B3040 00054504630F10B5457697A617264466F726D0A57697A61726 4466F726D0C436C69656E744865696768740368010B436C696 56E74576964746803F1010C4578706C696369744C656674020 00B4578706C69636974546F7002000D4578706C69636974576 96474680301020E4578706C69636974486569676874038E010 D506978656C73506572496E636802600A54657874486569676 874020D00F10C544E65774E6F7465626F6F6B0D4F757465724 E6F7465626F6F6B00F110544E65774E6F7465626F6F6B50616 7650B57656C636F6D65506167650D4578706C6963697457696 4746803F1010E4578706C6963697448656967687403390100F 10C544269746D6170496D6167651157697A6172644269746D6 170496D61676505576964746803F4010D4578706C696369745 76964746803F4010000F10E544E65775374617469635465787 40D57656C636F6D654C6162656C3208576F726457726170080 743617074696F6E120000000007456E61626C6564080756697 369626C65080000F10E544E6577537461746963546578740D5 7656C636F6D654C6162656C3108576F7264577261700807456 E61626C6564080B506172656E74436F6C6F720807566973696 26C6508000000F110544E65774E6F7465626F6F6B506167650 9496E6E6572506167650D4578706C69636974576964746803F 1010E4578706C6963697448656967687403390100F10C544E6 5774E6F7465626F6F6B0D496E6E65724E6F7465626F6F6B00F 110544E65774E6F7465626F6F6B506167650B4C6963656E736 5506167650D4578706C69636974576964746803A1010E45787 06C6963697448656967687403ED000000F110544E65774E6F7 465626F6F6B506167650D53656C656374446972506167650D4 578706C69636974576964746803A1010E4578706C696369744 8656967687403ED000000F110544E65774E6F7465626F6F6B5 06167650F53656C6563745461736B73506167650D4578706C6 9636974576964746803A1010E4578706C69636974486569676 87403ED00000000F1065450616E656C094D61696E50616E656 C00F10C544269746D6170496D6167651657697A617264536D6 16C6C4269746D6170496D616765044C6566740200055769647 46803F40106486569676874023C0C4578706C696369744C656 67402000D4578706C69636974576964746803F4010E4578706 C69636974486569676874023C0000F10E544E6577537461746 9635465787414506167654465736372697074696F6E4C61626 56C044C65667402F803546F70021708576F726457726170080 7456E61626C6564080E506172656E7453686F7748696E74080 756697369626C65080C4578706C696369744C65667402F80B4 578706C69636974546F7002170000F10E544E6577537461746 963546578740D506167654E616D654C6162656C044C6566740 20003546F70020005576964746802710648656967687402140 7456E61626C6564080E506172656E7453686F7748696E74080 756697369626C6508074F6E436C69636B0712506167654E616 D654C6162656C436C69636B0C4578706C696369744C6566740 2000B4578706C69636974546F7002000D4578706C696369745 76964746802710E4578706C696369744865696768740214000 000000000


[Setup]
WizardSmallImageFile=C:\Users\VALX\Desktop\Adsız.b mp
WizardImageFile=C:\Users\VALX\Desktop\Fon.bmp
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{7A0207A0-B136-4EEC-9C43-BBE448A54BC4}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
OutputDir=C:\Users\VALX\Desktop
OutputBaseFilename=Angy Birds
Compression=lzma
SolidCompression=yes

[Languages]
Name: default; MessagesFile: compiler:Default.isl

[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked

[Files]
Source: C:\Users\VALX\Desktop\Yeni klasör\Yeni klasör (2)\Rovio\Angry Birds\AngryBirds.exe; DestDir: {app}; Flags: ignoreversion
Source: C:\Users\VALX\Desktop\Yeni klasör\Yeni klasör (2)\Rovio\*; DestDir: {app}; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
Source: Dreams.cjstyles; DestDir: {app}
Source: ISSkin.dll; DestDir: {app}
Source: Splash.png; DestDir: {tmp}; Flags: dontcopy
Source: isgsg.dll; DestDir: {tmp}; Flags: dontcopy

[Icons]
Name: {group}\{#MyAppName}; Filename: {app}\{#MyAppExeName}
Name: {group}\{cm:ProgramOnTheWeb,{#MyAppName}}; Filename: {#MyAppURL}
Name: {group}\{cm:UninstallProgram,{#MyAppName}}; Filename: {uninstallexe}
Name: {commondesktop}\{#MyAppName}; Filename: {app}\{#MyAppExeName}; Tasks: desktopicon

[Run]
Filename: {app}\{#MyAppExeName}; Description: {cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}; Flags: nowait postinstall skipifsilent

[Code]
{ RedesignWizardFormBegin } // Don't remove this line!
// Don't modify this section. It is generated automatically.
procedure PageNameLabelClick(Sender: TObject); forward;

procedure RedesignWizardForm;
begin
with WizardForm.WizardBitmapImage do
begin
Width := ScaleX(500);
end;

with WizardForm.WelcomeLabel2 do
begin
WordWrap := False;
Caption := '';
Enabled := False;
Visible := False;
end;

with WizardForm.WelcomeLabel1 do
begin
WordWrap := False;
Enabled := False;
ParentColor := False;
Visible := False;
end;

with WizardForm.WizardSmallBitmapImage do
begin
Left := ScaleX(0);
Width := ScaleX(500);
Height := ScaleY(60);
end;

with WizardForm.PageDescriptionLabel do
begin
WordWrap := False;
Enabled := False;
ParentShowHint := False;
Visible := False;
Left := ScaleX(-8);
Top := ScaleY(23);
end;

with WizardForm.PageNameLabel do
begin
Enabled := False;
ParentShowHint := False;
Visible := False;
OnClick := @PageNameLabelClick;
Left := ScaleX(0);
Top := ScaleY(0);
Width := ScaleX(113);
Height := ScaleY(20);
end;

{ ReservationBegin }
// This part is for you. Add your specialized code here.

{ ReservationEnd }
end;
// Don't modify this section. It is generated automatically.
{ RedesignWizardFormEnd } // Don't remove this line!

procedure PageNameLabelClick(Sender: TObject);
begin

end;

procedure InitializeWizard();
begin
RedesignWizardForm;
end;


procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
external 'LoadSkin@files:isskin.dll stdcall';

function InitializeSetup(): Boolean;
begin
ExtractTemporaryFile('Dreams.cjstyles');
LoadSkin(ExpandConstant('{tmp}\Dreams.cjstyles'), '');
Result := True;
end;
[*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;

Andre Jesus
14-01-2013, 12:43
Hello.

I loaded 4 images .jpg (with botva2.dll) to use like background on my installer, however, the images just stay in welcome page (ID wpWelcome) one upon another.
How can i set each image like background in your respective page?

This is my idea:
image 1.jpg like bagkground on Welcomepage (wpWelcome)
image 2.jpg like background on Readypage (wpReady)
image 3.jpg like background on Installpage (wpInstalling)
image 4.jpg like background on Finishedpage (wpFinished)

This is my script.

#include "Install\botva2.iss"

[Setup]
AppName=Game Setup
AppVerName=Game Setup
OutputDir=.
DefaultDirName={pf}\Game Setup
OutputBaseFilename=Game Setup
DisableProgramGroupPage=yes
DisableDirPage=yes
Compression=none
;lzma2/Ultra64
SolidCompression=no
SetupIconFile=Install\ico.ico
;SlicesPerDisk=1
;DiskSliceSize=1073741824
;DiskSpanning=yes

[Files]
;Source: Game Setup\*; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: Install\*; Flags: dontcopy

Code
var
h:HWND;

procedure LoadSkin(lpszPath: String; lpszIniFileName: String);external 'LoadSkin@files:isskin.dll stdcall';
procedure UnloadSkin();external 'UnloadSkin@files:isskin.dll stdcall';

procedure InitializeWizard();
begin
ExtractTemporaryFile('botva2.dll');
ExtractTemporaryFile('1.jpg');
ExtractTemporaryFile('2.jpg');
ExtractTemporaryFile('3.jpg');
ExtractTemporaryFile('4.jpg');
ExtractTemporaryFile('glass.png');
ExtractTemporaryFile('skin.cjstyles');
LoadSkin(ExpandConstant('{tmp}\skin.cjstyles'), '');

with WizardForm do begin
Position:=poScreenCenter;
InnerNotebook.Hide;
OuterNotebook.Hide;
WelcomeLabel1.Hide;
WelcomeLabel2.Hide;
FinishedLabel.Hide;
FinishedHeadingLabel.Hide;
PageDescriptionLabel.Hide;
PageNameLabel.Hide;
Bevel.Hide;
BorderStyle:= bsDialog;
ClientWidth:=600
ClientHeight:=400
CancelButton.SetBounds(520,360,60,30);
NextButton.SetBounds(450,360,60,30);
BackButton.SetBounds(380,360,60,30);
end;

h:=WizardForm.Handle;
ImgLoad(h,ExpandConstant('{tmp}\1.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\2.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\3.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\4.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\glass.png'),20,130 ,560,220,True,True);
ImgApplyChanges(WizardForm.Handle);
end;

procedure DeinitializeSetup();
begin
gdipShutdown;
UnloadSkin();
end;

Brazilica
16-01-2013, 13:37
Can someone teach me how to add registry entries on my conversion?

JacksMafia
17-01-2013, 18:30
guys i have small problem here i have reg key it's already done but there is only one problem in here it is
Root: HKLM; SubKey: SOFTWARE\Electronic Arts\Electronic Arts\Red Alert 3; ValueType: string; ValueName: CD Drive; ValueData: J:\; Flags: uninsdeletevalue uninsdeletekeyifempty

what i should write instead of this red letter which indicates where the game was installed from?

any ideas?!!

thanks

pakrat2k2
18-01-2013, 08:26
your matching drive letter for cdrom-drive

JacksMafia
18-01-2013, 09:28
yeah i know that i was asking about this
the original setup detect where the game was installed from and i want my setup to do the same and write this in the reg file

pakrat2k2
18-01-2013, 10:32
that one value is insignificant, whole line can be deleted from reg section. doesnt matter where it was installed from.

Andre Jesus
19-01-2013, 11:12
Hello guys.

How can i use a new font (font.ttf) that i don´t have in my system, on the inno setup?

Example of font that i don´t have in my system.
http://www.1001freefonts.com/image.php?set=1&font=TalkToTheHand&text=Talk%20To%20The%20Hand

The script to this case is the same in the post # 138.

Thanks in advanced.

Razor12911
19-01-2013, 13:33
[Files]
Source: Font.ttf; DestDir: {tmp}; Flags: dontcopy;

[Code]
#ifdef UNICODE
#define A "W"
#else
#define A "A"
#endif

const
FR_PRIVATE = $10;

function AddFontResource(lpszFilename:string;fl:dword;pdv:i nteger): Integer; external 'AddFontResourceEx{#A}@gdi32.dll stdcall';
function RemoveFontResource(lpszFilename:string;fl:dword;pd v:integer): BOOL; external 'RemoveFontResourceEx{#A}@gdi32.dll stdcall';

procedure InitializeWizard;
begin
ExtractTemporaryFile('Font.ttf');
AddFontResource(ExpandConstant('{tmp}\Font.ttf'), FR_PRIVATE, 0);
end;

procedure DeinitializeSetup;
begin
RemoveFontResource(ExpandConstant('{tmp}\Font.ttf' ), FR_PRIVATE, 0);
end;

__________________________________________________ ______________

Glad could help with font.

Work on ANSI and UNICODE

Sorry for bad english.

Razor12911
19-01-2013, 13:55
Hello.

I loaded 4 images .jpg (with botva2.dll) to use like background on my installer, however, the images just stay in welcome page (ID wpWelcome) one upon another.
How can i set each image like background in your respective page?

This is my idea:
image 1.jpg like bagkground on Welcomepage (wpWelcome)
image 2.jpg like background on Readypage (wpReady)
image 3.jpg like background on Installpage (wpInstalling)
image 4.jpg like background on Finishedpage (wpFinished)

This is my script.

#include "Install\botva2.iss"

[Setup]
AppName=Game Setup
AppVerName=Game Setup
OutputDir=.
DefaultDirName={pf}\Game Setup
OutputBaseFilename=Game Setup
DisableProgramGroupPage=yes
DisableDirPage=yes
Compression=none
;lzma2/Ultra64
SolidCompression=no
SetupIconFile=Install\ico.ico
;SlicesPerDisk=1
;DiskSliceSize=1073741824
;DiskSpanning=yes

[Files]
;Source: Game Setup\*; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: Install\*; Flags: dontcopy

Code
var
h:HWND;

procedure LoadSkin(lpszPath: String; lpszIniFileName: String);external 'LoadSkin@files:isskin.dll stdcall';
procedure UnloadSkin();external 'UnloadSkin@files:isskin.dll stdcall';

procedure InitializeWizard();
begin
ExtractTemporaryFile('botva2.dll');
ExtractTemporaryFile('1.jpg');
ExtractTemporaryFile('2.jpg');
ExtractTemporaryFile('3.jpg');
ExtractTemporaryFile('4.jpg');
ExtractTemporaryFile('glass.png');
ExtractTemporaryFile('skin.cjstyles');
LoadSkin(ExpandConstant('{tmp}\skin.cjstyles'), '');

with WizardForm do begin
Position:=poScreenCenter;
InnerNotebook.Hide;
OuterNotebook.Hide;
WelcomeLabel1.Hide;
WelcomeLabel2.Hide;
FinishedLabel.Hide;
FinishedHeadingLabel.Hide;
PageDescriptionLabel.Hide;
PageNameLabel.Hide;
Bevel.Hide;
BorderStyle:= bsDialog;
ClientWidth:=600
ClientHeight:=400
CancelButton.SetBounds(520,360,60,30);
NextButton.SetBounds(450,360,60,30);
BackButton.SetBounds(380,360,60,30);
end;

h:=WizardForm.Handle;
ImgLoad(h,ExpandConstant('{tmp}\1.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\2.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\3.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\4.jpg'),0,0,600,40 0,True,True);
ImgLoad(h,ExpandConstant('{tmp}\glass.png'),20,130 ,560,220,True,True);
ImgApplyChanges(WizardForm.Handle);
end;

procedure DeinitializeSetup();
begin
gdipShutdown;
UnloadSkin();
end;


Use Procedure CurpageChanged

Andre Jesus
19-01-2013, 14:00
Use procedure CurPageChanged

Dear Razor12911.

I tried several ways and could not, can you give me an example please?

Andre Jesus
19-01-2013, 14:02
[Files]
Source: Font.ttf; DestDir: {tmp}; Flags: dontcopy;

[Code]
#ifdef UNICODE
#define A "W"
#else
#define A "A"
#endif

const
FR_PRIVATE = $10;

function AddFontResource(lpszFilename:string;fl:dword;pdv:i nteger): Integer; external 'AddFontResourceEx{#A}@gdi32.dll stdcall';
function RemoveFontResource(lpszFilename:string;fl:dword;pd v:integer): BOOL; external 'RemoveFontResourceEx{#A}@gdi32.dll stdcall';

procedure InitializeWizard;
begin
ExtractTemporaryFile('Font.ttf');
AddFontResource(ExpandConstant('{tmp}\Font.ttf'), FR_PRIVATE, 0);
end;

procedure DeinitializeSetup;
begin
RemoveFontResource(ExpandConstant('{tmp}\Font.ttf' ), FR_PRIVATE, 0);
end;

__________________________________________________ ______________

Glad could help with font.

Work on ANSI and UNICODE

Sorry for bad english.

Thank you very much for your response friend.
I will try use this code and return the result.

Razor12911
20-01-2013, 00:09
[Code]

var

Image1, Image2, Image3, Image4: Longint;

procedure InitializeWizard();
begin

h:=WizardForm.Handle;
Image1:=ImgLoad(h,ExpandConstant('{tmp}\1.jpg'),0, 0,600,400,True,True);
Image2:=ImgLoad(h,ExpandConstant('{tmp}\2.jpg'),0, 0,600,400,True,True);
Image3:=ImgLoad(h,ExpandConstant('{tmp}\3.jpg'),0, 0,600,400,True,True);
Image4:=ImgLoad(h,ExpandConstant('{tmp}\4.jpg'),0, 0,600,400,True,True);
ImgLoad(h,ExpandConstant('{tmp}\glass.png'),20,130 ,560,220,True,True);
ImgSetVisibility(Image1,False);
ImgSetVisibility(Image2,False);
ImgSetVisibility(Image3,False);
ImgSetVisibility(Image4,False);
ImgApplyChanges(WizardForm.Handle);
end;

procedure Components(CurPageID: Integer);
begin
ImgSetVisibility(Image1,False);
ImgSetVisibility(Image2,False);
ImgSetVisibility(Image3,False);
ImgSetVisibility(Image4,False);
case CurPageID of
wpWelcome:
begin
ImgSetVisibility(Image1,True);
end;
wpReady:
begin
ImgSetVisibility(Image2,True);
end;
wpInstalling:
begin
ImgSetVisibility(Image3,True);
end;
wpFinish:
begin
ImgSetVisibility(Image4,True);
end;
end;
end;

procedure CurPageChanged(CurPageID: Integer);
begin
Components(CurPageID);
ImgApplyChanges(WizardForm.Handle);
end;

Razor12911
20-01-2013, 02:37
Hello, my problem inno setup screen with the following codes to hide the full-screen image as it appears in the add file with no problem putting skin alone
I am not receiving the same error when I add music files to the game but the game is opening splash and splash skin file does not delete the music does not play but instead of attaching the stand-alone splash splash splash in both the music at the same time coming, but this time I was not at the same time both the music and the system properties of skin and splash how can I use a combination of modules which alone all that I wrote the game setup screen, I want a large modules add dll files and codes
still getting the error

[...]


To use splash on this

#ifdef 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';
#else
procedure ShowSplashScreen(p1:HWND;p2:string;p3,p4,p5,p6,p7: integer;p8:boolean;p9:Cardinal;p10:integer); external 'ShowSplashScreen@files:isgsg.dll stdcall delayload';
#endif

Razor12911
20-01-2013, 02:41
http://1.bp.blogspot.com/-XUxLbVOKsmw/ULAkx2XYgSI/AAAAAAAACPw/DsMmZA-ltic/s400/1.png
http://3.bp.blogspot.com/-v3nilkojHhI/ULAkwM4wDkI/AAAAAAAACPc/RUuojy53EcY/s400/2.png
http://2.bp.blogspot.com/-PWLP42y2qdc/ULAkwBJWa7I/AAAAAAAACPY/FjGkYD-PQvM/s400/3.png
http://2.bp.blogspot.com/-oFoelrUFdJ0/ULAkxlnuh1I/AAAAAAAACPo/MfSbVN7dxq8/s400/5.png
Why stress yoursef finding an unuseful script. it has bugs.

Rather use Yener90's Installer.

Razor12911
20-01-2013, 02:45
sorry bro i tried but i cant do it plz do this for me. script no 10 an 12
link-http://fileforums.com/showthread.php?t=93298
nd plz upload.
sorry for trouble

define archiive progress.

Andre Jesus
20-01-2013, 09:37
Ok. What else?

Can you give a example of glass button?
I want to change the button this instaler.
http://s9.postimage.org/pg8m175pb/Image_Setup.jpg

I wanto to learn these use two types of button:

Type 1:
http://s2.postimage.org/64jk9wgk9/button.png

Type 2:
http://advertboy.files.wordpress.com/2007/11/blue.jpg

akash77
21-01-2013, 02:09
1)i have all the setup.bin files but can i create installer for these files
if yes then how? And the files would be so that all have to be DVD5 format?
2)Can i convert a inno setup of DVD9 to DVD5? if yes then how?
Plz help

pakrat2k2
21-01-2013, 17:38
look in inno script for ( these are set for DVD5 )


DiskSpanning=true
DiskSliceSize=1556000000
SlicesPerDisk=3

Andre Jesus
22-01-2013, 08:48
Hello guys.

Finally i terminate my installer exactly how i wanted, however, i don´t know to fix a little problem about Welcomepage.
When i run it, the Welcomepage show me the label mix with label of the Finishedpage, but if i click in next button and after in back button, the problem disapear and all stay normal.
Does anyone know why this happens?:confused:

See the problem sequence.

5517

5518

5519

Thanks in advance and sorry my bad english.

Razor12911
23-01-2013, 07:18
Hello guys.

Finally i terminate my installer exactly how i wanted, however, i don´t know to fix a little problem about Welcomepage.
When i run it, the Welcomepage show me the label mix with label of the Finishedpage, but if i click in next button and after in back button, the problem disapear and all stay normal.
Does anyone know why this happens?:confused:

See the problem sequence.

5517

5518

5519

Thanks in advance and sorry my bad english.

Try making your own labels.

Hide
Pagenamelabel and pagedescriptionlabel. this can be done in CurpageChanged.

Razor12911
23-01-2013, 07:23
Can you give a example of glass button?
I want to change the button this instaler.
http://s9.postimage.org/pg8m175pb/Image_Setup.jpg

I wanto to learn these use two types of button:

Type 1:
http://s2.postimage.org/64jk9wgk9/button.png

Type 2:
http://advertboy.files.wordpress.com/2007/11/blue.jpg

here is example

[Files]
Source: buttons.png; DestDir: {tmp}; Flags: dontcopy

[Code]
var
hback, hnext, hcancel :Longint
ButtonFont: TFont;

procedure SetStateNewButtons;
begin

with WizardForm.BackButton do begin
BtnSetText(hBackBtn,PAnsiChar(Caption));
BtnSetVisibility(hBackBtn,Visible);
BtnSetEnabled(hBackBtn,Enabled);
end;

with WizardForm.NextButton do begin
BtnSetText(hNextBtn,PAnsiChar(Caption));
BtnSetVisibility(hNextBtn,Visible);
BtnSetEnabled(hNextBtn,Enabled);
end;

with WizardForm.CancelButton do begin
BtnSetText(hCancelBtn,PAnsiChar(Caption));
BtnSetVisibility(hCancelBtn,Visible);
BtnSetEnabled(hCancelBtn,Enabled);
end;
end;

procedure WizardFormBtnClick(hBtn:HWND);
var
Btn:TButton;
begin
case hBtn of
hCancelBtn: Btn:=WizardForm.CancelButton;
hNextBtn: Btn:=WizardForm.NextButton;
hBackBtn: Btn:=WizardForm.BackButton;
hDirBrowseBtn: Btn:=WizardForm.DirBrowseButton;
hGroupBrowseBtn: Btn:=WizardForm.GroupBrowseButton;
end;
Btn.OnClick(Btn);
SetStateNewButtons;
BtnRefresh(hBtn);
end;

Procedure ButtonsTexture;
begin
ButtonFont:=TFont.Create;
ButtonFont.Name:='Arial';
ButtonFont.Size:=13;
ButtonFont.Color:=$FFFFFF;
with WizardForm.BackButton do begin
hBackBtn:=BtnCreate(WizardForm.Handle,Left-52,Top-65,Width+25,Height+16,ExpandConstant('{tmp}\button .png'),18,False);
BtnSetEvent(hBackBtn,BtnClickEventID,WrapBtnCallba ck(@WizardFormBtnClick,1));
BtnSetFont(hBackBtn,ButtonFont.Handle);
BtnSetFontColor(hBackBtn,$DAE369,$DAE369,$DAE369,$ B6B6B6);
BtnSetCursor(hBackBtn,GetSysCursorHandle(32649));
Width:=0;
Height:=0;
end;

with WizardForm.NextButton do begin
hNextBtn:=BtnCreate(WizardForm.Handle,Left-28,Top-65,Width+25,Height+16,ExpandConstant('{tmp}\button .png'),18,False);
BtnSetEvent(hNextBtn,BtnClickEventID,WrapBtnCallba ck(@WizardFormBtnClick,1));
BtnSetFont(hNextBtn,WFButtonFont.Handle);
BtnSetFontColor(hNextBtn,$DAE369,$DAE369,$DAE369,$ B6B6B6);
BtnSetCursor(hNextBtn,GetSysCursorHandle(32649));
Width:=0;
Height:=0;
end;

with WizardForm.CancelButton do begin
hCancelBtn:=BtnCreate(WizardForm.Handle,Left-223,Top-65,Width+25,Height+16,ExpandConstant('{tmp}\button .png'),18,False);
BtnSetEvent(hCancelBtn,BtnClickEventID,WrapBtnCall back(@WizardFormBtnClick,1));
BtnSetFont(hCancelBtn,ButtonFont.Handle);
BtnSetFontColor(hCancelBtn,$DAE369,$DAE369,$DAE369 ,$B6B6B6);
BtnSetCursor(hCancelBtn,GetSysCursorHandle(32649)) ;
Width:=0;
Height:=0;
end;

with WizardForm.DirBrowseButton do begin
hDirBrowseBtn:=BtnCreate(WizardForm.Handle,Left+15 0,Top+55,Width-40,Height+10,ExpandConstant('{tmp}\browse.png'),6, False);
BtnSetEvent(hDirBrowseBtn,BtnClickEventID,WrapBtnC allback(@WizardFormBtnClick,1));
BtnSetFont(hDirBrowseBtn,ButtonFont.Handle);
BtnSetFontColor(hDirBrowseBtn,$DAE369,$DAE369,$DAE 369,$B6B6B6);
BtnSetCursor(hDirBrowseBtn,GetSysCursorHandle(3264 9));
Width:=0;
Height:=0;
end;

with WizardForm.GroupBrowseButton do begin
hGroupBrowseBtn:=BtnCreate(WizardForm.Handle,Left+ 150,Top+55,Width-40,Height+10,ExpandConstant('{tmp}\browse.png'),6, False);
BtnSetEvent(hGroupBrowseBtn,BtnMouseEnterEventID,W rapBtnCallback(@WFBtnEnter,1));
BtnSetEvent(hGroupBrowseBtn,BtnClickEventID,WrapBt nCallback(@WizardFormBtnClick,1));
BtnSetFont(hGroupBrowseBtn,ButtonFont.Handle);
BtnSetFontColor(hGroupBrowseBtn,$DAE369,$DAE369,$D AE369,$B6B6B6);
BtnSetCursor(hGroupBrowseBtn,GetSysCursorHandle(32 649));
Width:=0;
Height:=0;
end;
end;

Andre Jesus
01-02-2013, 06:44
Hello.

I know to load image .jpg on installer, like example below:


InnerNotebook.Hide;
OuterNotebook.Hide;

h:=WizardForm.Handle;
ImgLoad(h,ExpandConstant('{tmp}\1.jpg'),0,0,Wizard Form.ClientWidth,WizardForm.ClientHeight,True,True );
ImgApplyChanges(WizardForm.Handle);


But i don´t know to load image on unistaller.
How can i load image .jpg on the uninstaller screen?

Sorry my bad english.

Andre Jesus
01-02-2013, 07:37
Try making your own labels.

Hide
Pagenamelabel and pagedescriptionlabel. this can be done in CurpageChanged.

Thank you for your help.
Now work correctly.

5542

5543

5544

5545

Razor12911
02-02-2013, 08:39
Thank you for your help.
Now work correctly.

5542

5543

5544

5545

Awesome installer man.

What else?

Andre Jesus
02-02-2013, 10:11
Awesome installer man.

What else?


Hello, how are you doing?
That example of the button is complete? There a message saying THIS IS NOT COMPLETE.

Also, if you help me about the question (post #159), i will be grateful.

Razor12911
03-02-2013, 01:56
Hello, how are you doing?
That example of the button is complete? There a message saying THIS IS NOT COMPLETE.

Also, if you help me about the question (post #159), i will be grateful.

Post #159

Filecopy uninstall.jpg to app directory.

then filecopy to tmp directory when uninstallling, load image, done.

Compiler
03-02-2013, 05:48
arc a -ep1 -r -w.\ .\data1.cab mlzma:a1:mfbt4:d256m:fb128:mc1000:lc8 (or)
ARC -m0
PRECOMP038 -slow
SREP -m3f
ARC -mrep:800mb lzma:800mb delta exe which one of these is better ?(any other code will also be a help)

Razor12911
03-02-2013, 05:51
arc a -ep1 -r -w.\ .\data1.cab mlzma:a1:mfbt4:d256m:fb128:mc1000:lc8 (or)
ARC -m0
PRECOMP038 -slow
SREP -m3f
ARC -mrep:800mb lzma:800mb delta exe which one of these is better ?(any other code will also be a help)

It differs and depends on the files you are compressing.

Razor12911
03-02-2013, 05:53
-mprecomp:t-nfj:zl99:d1+srep+exe+rep:800mb+delta+lzma:a1:mfbt4 :d256m:fb128:mc1000:lc8

Compiler
03-02-2013, 06:02
-mprecomp:t-nfj:zl99:d1+srep+exe+rep:800mb+delta+lzma:a1:mfbt4 :d256m:fb128:mc1000:lc8

What does rep:800mb stand for ? and it dosen't include ARC right

Razor12911
03-02-2013, 08:53
What does rep:800mb stand for ? and it dosen't include ARC right
rep is a version before srep
old - rep, new - super rep.

Andre Jesus
03-02-2013, 09:59
Post #159

Filecopy uninstall.jpg to app directory.

then filecopy to tmp directory when uninstallling, load image, done.

Razor12911, thank you for your help again.

Work fine.
5552

thilanka
03-02-2013, 23:19
(Sorry for my English)



I want to Automatically detect and set MAC Address to Input Query when i run setup ( inno setup key generator).

5554

5555

Please send me the Script because i have no knowledge about this coding


This is very Important to me please help me


Thank you very much :)


This is inno script




[_ISTool]

EnableISX=true

Use7zip=false

[Files]

Source: sample2.iky; DestDir: {tmp}; Flags: ignoreversion

Source: ISID.dll; DestDir: {sys}\ISID; Flags: ignoreversion


[Setup]

AppName=Inno Key Generator2

AppVerName=Inno Key Generator 1.0.2.1 2

DefaultDirName={pf}\MJ Freelancing\IKG

DefaultGroupName=Inno Key Generator

OutputDir=output

AppCopyright=Copyright © Oct 2002 - 2006 MJ Freelancing

OutputBaseFilename=IKGSetup


[ThirdParty]

CompileLogMethod=append


[Code]


function ValidateSerialNumber(InnoKeyFile, User, Orgn, ProdCode, HDD, MAC, PrivateKey, Serial: AnsiString): Boolean;

external 'ValidateSerialNumber@files:ISID.dll stdcall';

function GetMACAddress(output: AnsiString): Boolean;

external 'GetMACAddress@files:ISID.dll stdcall';


var

UserPage: TInputQueryWizardPage;

UserValues: TArrayOfString;

I: Integer;

procedure InitializeWizard();

begin

{ create the custom page }

UserPage := CreateInputQueryPage(wpInfoBefore, //wpWelcome,

'Enter Registration Details', 'You need to be a registered user to be able to proceed',

'Enter your registration details exactly (case sensitive), then click Next.');

UserPage.Add('MAC Address:', False);
UserPage.Add('Unlock Code:', False);
UserPage.Add('Private Key:', False);

// here's how to assign texts to those edit boxes
UserPage.Edits[0].Text := 'Detect and set MAC Address';
UserPage.Edits[1].Text := '123456789_Unlock';
UserPage.Edits[2].Text := 'Pr1v4t3 k3y';

// iterate all edit boxes to set them ReadOnly mode and gray color in
// an easier way than writing the same three times for all edit boxes
for I := 0 to 2 do
begin
UserPage.Edits[I].ReadOnly := True;
UserPage.Edits[I].Color := clBtnFace;
end;

{ Set default values }

SetArrayLength(UserValues, 3);

end;

function ScriptDlgPages(CurPage: Integer; BackClicked: Boolean): Boolean;

var

ExpPath: String;

begin

Result := True;

if (CurPage = UserPage.ID) then

begin

ExtractTemporaryFile('sample2.iky'); { the public key file }

ExpPath := ExpandConstant('{tmp}\sample2.iky');

Result := False;

UserValues[0] := UserPage.Values[0];
UserValues[1] := UserPage.Values[1];
UserValues[2] := UserPage.Values[2];

if (UserValues[0] = '') or (UserValues[1] = '') or (UserValues[2] = '') then

MsgBox('No fields can be blank !', mbError, MB_OK)

else

begin



//UserPage.Values[0] := GetPreviousData('MAC', UserValues[0]);

//UserPage.Values[1] := GetPreviousData('Unlock', UserValues[1]);

//UserPage.Values[2] := GetPreviousData('Private', UserValues[2]);



//function ValidateSerialNumber(InnoKeyFile, User, Orgn, PCe,HDD,MAC,PrivateKey, Serial: AnsiString): Boolean;

Result := ValidateSerialNumber( ExpPath,'','','','',UserValues[0],UserValues[2],UserValues[1] );

if (not Result) then

MsgBox('Invalid Entry !', mbError, MB_OK);

end
end

end;


function NextButtonClick(CurPage: Integer): Boolean;

begin

Result := ScriptDlgPages(CurPage, False);

end;

function BackButtonClick(CurPage: Integer): Boolean;

begin

Result := True;//ScriptDlgPages(CurPage, True);

end;

function HasHtmlHelp(): Boolean;

begin

{ HHCTRL.OCX GUID }

Result := RegValueExists(HKCR, 'CLSID\{4662DAB0-D393-11D0-9A56-00C04FB68B66}\InprocServer32', '');

end;

function HasNoHtmlHelp(): Boolean;

begin

Result := not HasHtmlHelp;

end;

Andre Jesus
04-02-2013, 04:41
[Files]
Source: Font.ttf; DestDir: {tmp}; Flags: dontcopy;

[Code]
#ifdef UNICODE
#define A "W"
#else
#define A "A"
#endif

const
FR_PRIVATE = $10;

function AddFontResource(lpszFilename:string;fl:dword;pdv:i nteger): Integer; external 'AddFontResourceEx{#A}@gdi32.dll stdcall';
function RemoveFontResource(lpszFilename:string;fl:dword;pd v:integer): BOOL; external 'RemoveFontResourceEx{#A}@gdi32.dll stdcall';

procedure InitializeWizard;
begin
ExtractTemporaryFile('Font.ttf');
AddFontResource(ExpandConstant('{tmp}\Font.ttf'), FR_PRIVATE, 0);
end;

procedure DeinitializeSetup;
begin
RemoveFontResource(ExpandConstant('{tmp}\Font.ttf' ), FR_PRIVATE, 0);
end;

__________________________________________________ ______________

Glad could help with font.

Work on ANSI and UNICODE

Sorry for bad english.

Thank you again man.

This was the result:
5560

Razor12911
04-02-2013, 06:17
Thank you again man.

This was the result:
5560
Mhhm, awesome. Hide progressbar and install a new progressbar with .png via PBProc

Andre Jesus
05-02-2013, 02:17
Mhhm, awesome. Hide progressbar and install a new progressbar with .png via PBProc

Great suggestion.
I will try to do this.

This is complete? (see #158).

Thanks.

Andre Jesus
05-02-2013, 05:11
I'm having a problem with the music during installation.
If the operating system volume is at 30%, when I run the installer, it automatically goes to 100%.
Could you suggest a code that does not affect the volume of operating system?

This is the code I'm using:

#include "botva2.iss"
#include "BASS_Module.iss"

procedure InitializeWizard();
begin
ExtractTemporaryFile('BASS.dll');
ExtractTemporaryFile('CallbackCtrl.dll');
ExtractTemporaryFile('botva2.dll');
ExtractTemporaryFile('MusicButton.png');
ExtractTemporaryFile('Music.mp3');

BASS_Init(ExpandConstant('{tmp}\Music.mp3'))
BASS_CreateOnOffButton(ExpandConstant('{tmp}\Music Button.png'), 20, 320, 36, 36, 4)
end;

procedure DeinitializeSetup();
begin
BASS_DeInit;
gdipShutdown
end;


Thanks in advance.

Razor12911
05-02-2013, 05:22
check in bass script. It is best if you use 100 instead of another number.

this usually happens if you are using windows xp

Razor12911
05-02-2013, 05:46
Great suggestion.
I will try to do this.

This is complete? (see #158).

Thanks.

Post #158

Test it.

Andre Jesus
09-02-2013, 10:13
reg entries are simple, you grab them from your original installed game version, then using reg to inno conversion program english version ( under useful programs ( joe edited it to english from russian ) ).

http://fileforums.com/showthread.php?t=92995

Its make as ISS script from your saved reg file, the entire contents from the script go into [REGISTRY] section of your inno script.

DO NOT INSTALL, JUST RUN THE EXE TO SEE HOW THE MUSIC BUTTON LOOKS, THEN CANCEL INSTALL

here's a music button script that adds music to your script ( in russian so translate to english ). In the output dir is a setup.exe, just run it and you'll see the music botton in lower LH corner, you can change the image of the button & sound played by making appropriate changes to the files used. ( use any on CI8.5.7.4 or CIU etc for image / sound files )

good luck :)

Hi.
I used the script about music but don´t appear the button on/off music and the music audio..
Can you please see where is my mistake?

Razor12911
09-02-2013, 10:15
Where are the setup files?

Andre Jesus
09-02-2013, 10:27
Where are the setup files?

Hi Razor12911.

Here is.
5616

Thanks in advance.

Razor12911
09-02-2013, 10:29
what is wrong with script?

Andre Jesus
09-02-2013, 10:31
what is wrong with script?

The music and on/off music button don´t worked.

Razor12911
09-02-2013, 10:36
I don't even see it.

Andre Jesus
09-02-2013, 10:47
I don't even see it.

Please see the script below.
I used this script in my script but the button and the music don´t appear.

Razor12911
09-02-2013, 11:09
Replace bass script with another one.

Andre Jesus
09-02-2013, 11:11
Mhhm, awesome. Hide progressbar and install a new progressbar with .png via PBProc

Can you please show an example?

Razor12911
09-02-2013, 11:17
Bass Scripts

Razor12911
09-02-2013, 11:25
Addon Pack for Installer Source Codes:

Cjstyle Theme Pack

This Package Contains: 200+ Styles(No Joke [Super Compressed]):D

Enjoy!!!

Compressed Size := 15MB
Original Size := 375MB
Password := Fileforums

Andre Jesus
09-02-2013, 11:25
Bass Scripts

Thanks for your response.
But if i use the bass script i will have the same error that i show in the post #174.

Razor12911
09-02-2013, 11:38
Remove bass then move onto something else like custom progressbar.

I also haven't installed bass in my script.

Andre Jesus
09-02-2013, 11:59
Addon Pack for Installer Source Codes:

Cjstyle Theme Pack

This Package Contains: 200+ Styles(No Joke [Super Compressed]):D

Enjoy!!!

Compressed Size := 15MB
Original Size := 375MB
Password := Fileforums

Very nice.Thank you.
I will try to fix the music and button on/off on my installer.
If i fix the problem, i will show you to you use, if you want, on your installer.
Can you show me the face of your installer?

Regards.

Razor12911
09-02-2013, 12:16
There.

Andre Jesus
09-02-2013, 12:22
There.
Very cool man.
The button is very nice. I still try to make work in my installer your tip (post #158).

Razor12911
09-02-2013, 12:28
Ok. What else?

Andre Jesus
09-02-2013, 13:24
Ok. What else?

Do you use precomp method to reduce the installer size? If so, please show me a example.
See the linlk below (post #6). I beleive that was used the precompr method. I used just lzma2/Ultra64 of inno, but it was not the same size

http://fileforums.com/showthread.php?t=93155&highlight=inversion

Razor12911
09-02-2013, 13:51
Probably Precomp Compression wasn't used in that conversion.

But this Compression was used : LZMA2/Ultra64

But also some content was also removed.

That's the reason why sizes are different.

Andre Jesus
12-02-2013, 17:32
Hello.

Has a any way to make the uninstall files (JPEG, DLL, PNG...) stay inside of the unins000.exe? If so, please show the code.

Razor12911
13-02-2013, 06:19
Hello.

Has a any way to make the uninstall files (JPEG, DLL, PNG...) stay inside of the unins000.exe? If so, please show the code.

I don't think it's possible.

Andre Jesus
13-02-2013, 08:12
here is example

[Files]
Source: buttons.png; DestDir: {tmp}; Flags: dontcopy

[Code]
var
hback, hnext, hcancel :Longint
ButtonFont: TFont;

procedure SetStateNewButtons;
begin

with WizardForm.BackButton do begin
BtnSetText(hBackBtn,PAnsiChar(Caption));
BtnSetVisibility(hBackBtn,Visible);
BtnSetEnabled(hBackBtn,Enabled);
end;

with WizardForm.NextButton do begin
BtnSetText(hNextBtn,PAnsiChar(Caption));
BtnSetVisibility(hNextBtn,Visible);
BtnSetEnabled(hNextBtn,Enabled);
end;

with WizardForm.CancelButton do begin
BtnSetText(hCancelBtn,PAnsiChar(Caption));
BtnSetVisibility(hCancelBtn,Visible);
BtnSetEnabled(hCancelBtn,Enabled);
end;
end;

procedure WizardFormBtnClick(hBtn:HWND);
var
Btn:TButton;
begin
case hBtn of
hCancelBtn: Btn:=WizardForm.CancelButton;
hNextBtn: Btn:=WizardForm.NextButton;
hBackBtn: Btn:=WizardForm.BackButton;
hDirBrowseBtn: Btn:=WizardForm.DirBrowseButton;
hGroupBrowseBtn: Btn:=WizardForm.GroupBrowseButton;
end;
Btn.OnClick(Btn);
SetStateNewButtons;
BtnRefresh(hBtn);
end;

Procedure ButtonsTexture;
begin
ButtonFont:=TFont.Create;
ButtonFont.Name:='Arial';
ButtonFont.Size:=13;
ButtonFont.Color:=$FFFFFF;
with WizardForm.BackButton do begin
hBackBtn:=BtnCreate(WizardForm.Handle,Left-52,Top-65,Width+25,Height+16,ExpandConstant('{tmp}\button .png'),18,False);
BtnSetEvent(hBackBtn,BtnClickEventID,WrapBtnCallba ck(@WizardFormBtnClick,1));
BtnSetFont(hBackBtn,ButtonFont.Handle);
BtnSetFontColor(hBackBtn,$DAE369,$DAE369,$DAE369,$ B6B6B6);
BtnSetCursor(hBackBtn,GetSysCursorHandle(32649));
Width:=0;
Height:=0;
end;

with WizardForm.NextButton do begin
hNextBtn:=BtnCreate(WizardForm.Handle,Left-28,Top-65,Width+25,Height+16,ExpandConstant('{tmp}\button .png'),18,False);
BtnSetEvent(hNextBtn,BtnClickEventID,WrapBtnCallba ck(@WizardFormBtnClick,1));
BtnSetFont(hNextBtn,WFButtonFont.Handle);
BtnSetFontColor(hNextBtn,$DAE369,$DAE369,$DAE369,$ B6B6B6);
BtnSetCursor(hNextBtn,GetSysCursorHandle(32649));
Width:=0;
Height:=0;
end;

with WizardForm.CancelButton do begin
hCancelBtn:=BtnCreate(WizardForm.Handle,Left-223,Top-65,Width+25,Height+16,ExpandConstant('{tmp}\button .png'),18,False);
BtnSetEvent(hCancelBtn,BtnClickEventID,WrapBtnCall back(@WizardFormBtnClick,1));
BtnSetFont(hCancelBtn,ButtonFont.Handle);
BtnSetFontColor(hCancelBtn,$DAE369,$DAE369,$DAE369 ,$B6B6B6);
BtnSetCursor(hCancelBtn,GetSysCursorHandle(32649)) ;
Width:=0;
Height:=0;
end;

with WizardForm.DirBrowseButton do begin
hDirBrowseBtn:=BtnCreate(WizardForm.Handle,Left+15 0,Top+55,Width-40,Height+10,ExpandConstant('{tmp}\browse.png'),6, False);
BtnSetEvent(hDirBrowseBtn,BtnClickEventID,WrapBtnC allback(@WizardFormBtnClick,1));
BtnSetFont(hDirBrowseBtn,ButtonFont.Handle);
BtnSetFontColor(hDirBrowseBtn,$DAE369,$DAE369,$DAE 369,$B6B6B6);
BtnSetCursor(hDirBrowseBtn,GetSysCursorHandle(3264 9));
Width:=0;
Height:=0;
end;

with WizardForm.GroupBrowseButton do begin
hGroupBrowseBtn:=BtnCreate(WizardForm.Handle,Left+ 150,Top+55,Width-40,Height+10,ExpandConstant('{tmp}\browse.png'),6, False);
BtnSetEvent(hGroupBrowseBtn,BtnMouseEnterEventID,W rapBtnCallback(@WFBtnEnter,1));
BtnSetEvent(hGroupBrowseBtn,BtnClickEventID,WrapBt nCallback(@WizardFormBtnClick,1));
BtnSetFont(hGroupBrowseBtn,ButtonFont.Handle);
BtnSetFontColor(hGroupBrowseBtn,$DAE369,$DAE369,$D AE369,$B6B6B6);
BtnSetCursor(hGroupBrowseBtn,GetSysCursorHandle(32 649));
Width:=0;
Height:=0;
end;
end;

Razor 12911.

Thank you man, but don´t work.
Can you please revised the script? I think that problem is in var:


var
hback, hnext, hcancel :Longint

Razor12911
19-02-2013, 20:44
Razor 12911.

Thank you man, but don´t work.
Can you please revised the script? I think that problem is in var:


var
hback, hnext, hcancel :Longint

Fix coming soon.

spawniectes
20-02-2013, 14:38
If I use this command:

arc a -ep1 -r -w.\DVD1\Data1.cab -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 [email protected] -dp"%choice1%" .\DVD1\%arc%

what should I put on setup.ini for extraction

pakrat2k2
20-02-2013, 15:31
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1;

spawniectes
20-02-2013, 15:39
[ExtractSettings]
FreeArcFile1={src}\Data1.cab;DestDir:{app};Disk:1;

Only I have to put that, on the installerScript.iss I must put something or not?

pakrat2k2
20-02-2013, 15:56
in installerscript.iss Change #define programfiles.... ;#define ProgramFiles....

remove ; from ;#define Internal

this will then use the freearc files you specify from setup.ini.

Andre Jesus
22-02-2013, 01:54
Hi everybody.

1. I want to avoid my installer run if the same already is running.
Something like the message "Your Setup is Already Running".
How can i make this?

2. Currently i use this option to my border.
BorderStyle:= bsDialog;
But i want remove only top border like the example picture below.
How can i make this?

5675

P.S. Please ignore the buttons, i still can´t make it work correctly.:confused:

3. Someone can indicate a post about how can i compress my games with precomp? Something like a tutorial step-by-step.
Unfortunately i still don´t know nothing about this.:confused:

Thanks in advance.

Razor12911
22-02-2013, 07:24
Hi everybody.

1. I want to avoid my installer run if the same already is running.
Something like the message "Your Setup is Already Running".
How can i make this?

2. Currently i use this option to my border.
BorderStyle:= bsDialog;
But i want remove only top border like the example picture below.
How can i make this?

5675

P.S. Please ignore the buttons, i still can´t make it work correctly.:confused:

3. Someone can indicate a post about how can i compress my games with precomp? Something like a tutorial step-by-step.
Unfortunately i still don´t know nothing about this.:confused:

Thanks in advance.

Do you want to remove border?
Use the ISDone for Precomp, srep,sevenzip and etc functions.

Razor12911
22-02-2013, 09:41
Splash Example, Makes your source code make this.\
http://imageshack.us/a/img837/498/20130212185121.jpg

Credits:
Imageshack.

Andre Jesus
22-02-2013, 15:30
Splash Example, Makes your source code make this.\
http://imageshack.us/a/img837/498/20130212185121.jpg

Credits:
Imageshack.

Nice!


http://s18.postimage.org/hasckvqgp/image.jpg

http://s17.postimage.org/xorhvbken/image.jpg

http://s18.postimage.org/qmizvkse1/image.jpg

http://s18.postimage.org/qqctbtxvd/image.jpg

http://s17.postimage.org/mb4yk49vz/image.jpg

spawniectes
23-02-2013, 04:59
Can anyone tell me where to look to fix this, the font are crooped

http://img191.imageshack.us/img191/8092/19862184.jpg

It's made with CIU 1.0.0.5

Razor12911
23-02-2013, 05:11
the font itself is translated downwards or the height is way more than width unlike other fonts.

jackstuff
23-02-2013, 05:18
the font itself is translated downwards or the height is way more than width unlike other fonts.

any solution to fix it, give some examples

Razor12911
23-02-2013, 05:21
any solution to fix it, give some examples
Since Yener90's source code edit.png and the text are fixed. there is not solution unless if you make font size smaller.

Or change the font itself.

jackstuff
23-02-2013, 05:25
Since Yener90's source code edit.png and the text are fixed. there is not solution unless if you make font size smaller.

Or change the font itself.

in your opinion which font would fixed the problem i will apply that in every installer some good fonts

Razor12911
23-02-2013, 05:26
in your opinion which font would fixed the problem i will apply that in every installer some good fonts
Calibri is the best. for me.

jackstuff
23-02-2013, 05:29
Can u upload plz

Razor12911
23-02-2013, 05:31
Can u upload plz
You have Calibri on your system,
%SystemRoot%\Fonts\

Just check it out.

jackstuff
23-02-2013, 06:11
thanks, but i have to change the font size also

Razor12911
23-02-2013, 06:22
Yes.

Razor12911
23-02-2013, 07:55
Custom Full screen Image

http://img717.imageshack.us/img717/1378/20130223175149.jpg (http://imageshack.us/photo/my-images/717/20130223175149.jpg/)

Credits:
Imageshack

spawniectes
26-02-2013, 05:33
There's any way to integrate a file that depending of wich language the installer is, set up the correct language. Is a system.cfg the file I need.

ie.

name file system.cfg
content:

; crysis3
sys_game_folder=c3
sys_user_folder=Crysis3
sys_languages=english,french,spanish,german,turkis h,italian,czech,chineset
g_language="lang desired name"

JacksMafia
27-02-2013, 06:07
hey guys i have small problem i need to insert multiple installer.bmp in setup.cab cause i have 4 png images for the installer but it wouldn't work what ever i do because the script made for only one bmp so which lines i have to modify in the script? or is there another way?
also
how to insert name on play button like -play dead space 1- instead of just -play-
thanks

Razor12911
02-03-2013, 08:53
How to add registries in Inno Setup.

Instructions
1. Search for Regedit.exe
2. Open Regedit.exe
3. Press Ctrl+F type (ApplicationName)
4. Wait and Select the appropriate Registry.
5. Right click on registry key then select export.
6. Save as (Registry).reg
7. Download this attachment (http://fileforums.com/showpost.php?p=410165&postcount=2)
8. Open attachment
9. Run Convertor.exe
10. Load Saved (Registry).reg
11. Save as (Registry).iss
12. Open .iss with Inno Setup
13 Copy [Registry] content
14. Paste on script.
15. Done!!!

spawniectes
03-03-2013, 09:29
How do I engage isdone.dll to extract arc files, I use CIU 1.0.0.5 by Yener90

I know that the setup.ini has to had the ExtractSettings I tried several times but no luck, the installer keep asking me for the disc whit the arc file.

I use this to compress

arc a -ep1 -r -w.\ -msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 [email protected] -dp"%choice1%" .\DVD1\%arc%

Razor12911
03-03-2013, 09:35
then the archive name and location must agree with setup.ini Extract settings

spawniectes
03-03-2013, 09:49
then the archive name and location must agree with setup.ini Extract settings

I tried, for example my file name is data1.cab on extractsetting must be like this

FreeArcFile1=Data1.cab;DestDir:{app};Disk:1;


I do that way and keeps asking me for data1.cab

pakrat2k2
03-03-2013, 09:55
did you include arc.ini in setup.cab & use internal compression in ISS script rather then #define programfile line ..??

look at bottom of first post > http://fileforums.com/showthread.php?t=92805

it shows what needs to be there for internal compression ( what you're using ) & how to set it up.

Razor12911
03-03-2013, 09:57
write {src}\Data1.cab

{src} is for source.

spawniectes
03-03-2013, 11:10
Know I got this error

http://img26.imageshack.us/img26/3057/errortlu.jpg

pakrat2k2
03-03-2013, 11:22
in setup.ini you need to add
[InstallOptions]
PrecompVer=inside
.
.
.

[ExtractSettings]
FreeArcFile1=Data1.cab;DestDir:{app};Disk:1;
FreeArcFile2=Data2.cab;DestDir:{app};Disk:2;

for example, look to Fabioddq's Devil May Cry topic it uses both. ( look at ISS script & setup.ini. Also in setup.cab you need arc.ini in root.

spawniectes
03-03-2013, 15:22
in setup.ini you need to add
[InstallOptions]
PrecompVer=inside
.
.
.

[ExtractSettings]
FreeArcFile1=Data1.cab;DestDir:{app};Disk:1;
FreeArcFile2=Data2.cab;DestDir:{app};Disk:2;

for example, look to Fabioddq's Devil May Cry topic it uses both. ( look at ISS script & setup.ini. Also in setup.cab you need arc.ini in root.
Thanks once again pakrat2k2, now it's working.

Andre Jesus
04-03-2013, 05:37
Hi everybody.

1. I want to avoid my installer run if the same already is running.
Something like the message "Your Setup is Already Running".
How can i make this?

2. Currently i use this option to my border.
BorderStyle:= bsDialog;
But i want remove only top border like the example picture below.
How can i make this?

3. How can make png button on Inno Setup? Give me a sample example.


Could someone help me with these three questions abouve?
Thanks in advance.

altef_4
08-03-2013, 10:33
Could someone help me with these three questions abouve?
Thanks in advance.
1. Use this[setup]
AppMutex=UniqueNAME

[_code]
procedure InitializeWizard;
begin
CreateMutex('UniqueNAME');
end;

danswano
09-03-2013, 11:35
Hello, how to modify the about message to become like this:
http://i.stack.imgur.com/qfQMy.png

I've tried this code:
procedure ShowAboutBox;
begin
MsgBox('Hello, I''m your about box!', mbInformation, MB_OK);
end;
but it's not working.

Andre Jesus
10-03-2013, 04:09
1. Use this[setup]
AppMutex=UniqueNAME

[_code]
procedure InitializeWizard;
begin
CreateAppMutex('UniqueNAME');
end;

Thank you for your response, however it return the mesage below:

Unknown identifer 'CreateAppMutex'

Andre Jesus
10-03-2013, 12:58
sorry, my mistake, change "CreateAppMutex" to "CreateMutex".

Thank you so much for your help.
Work pefectly.

I can modify/customize this message and button size? How?

5791

Andre Jesus
10-03-2013, 23:49
How do the buttons do not appear on every screen?
The description of the buttons is not showing up, how to fix this?

5795

5796

I appreciate the help in advance.

altef_4
11-03-2013, 05:39
How do the buttons do not appear on every screen?
The description of the buttons is not showing up, how to fix this?

5795

5796

I appreciate the help in advance.

example (your test script with my fix)

Andre Jesus
11-03-2013, 09:47
example (your test script with my fix)

Thank you for your help altef_4.
Work fine!

5801

danswano
11-03-2013, 11:51
How to skip the Start Menu Folder dialog please?

altef_4
11-03-2013, 12:08
How to skip the Start Menu Folder dialog please?

you mean "select program group page"? If yes then[setup]
DisableProgramGroupPage=yes or in code sectionfunction ShouldSkipPage(PageID: Integer): Boolean;
begin
if (PageID = wpSelectProgramGroup) then result:=true;
end;

danswano
11-03-2013, 12:32
Thank you, what about the Ready to Install dialog please? :)

altef_4
11-03-2013, 12:39
Thank you, what about the Ready to Install dialog please? :)

disablereadypage=yes

danswano
11-03-2013, 12:43
I've tried this one but after clicking Next on the previous dialog it goes directly to installation.
The Next button should turn into Install button before starting installation

Is it possible? :)

altef_4
11-03-2013, 12:53
I've tried this one but after clicking Next on the previous dialog it goes directly to installation.
The Next button should turn into Install button before starting installation

Is it possible? :)

yes, it's possible. To change button text use curpagechanged and remame button manually. if (curpageid=wpselectdir) then wizardform.nextbutton.caption:='Install';

danswano
11-03-2013, 12:59
The page that i want to change it's button name is the tasks page, what is the id of that page?

altef_4
11-03-2013, 21:31
The page that i want to change it's button name is the tasks page, what is the id of that page?

i'm not sure, maybe "wpSelectTasks" :D

danswano
13-03-2013, 06:01
It's wpSelectTasks

Constants

Here's the list of constants used by these functions:

TSetupStep values
ssInstall, ssPostInstall, ssDone

TUninstallStep values
usAppMutexCheck, usUninstall, usPostUninstall, usDone

PageID values for predefined wizard pages
wpWelcome, wpLicense, wpPassword, wpInfoBefore, wpUserInfo, wpSelectDir, wpSelectComponents, wpSelectProgramGroup, wpSelectTasks, wpReady, wpPreparing, wpInstalling, wpInfoAfter, wpFinished
http://www.jrsoftware.org/ishelp/index.php?topic=scriptevents

Hello again,
i'm using this parameter to compress my files
-msrep+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8
But i don't seem to be able to get a compatible precomp compression method to work with ISDone and i get unpacking errors, can you please add a precomp parameter to the above command with best compression and if you can improve my srep parameters for a better compression would be appreciated.

Thank you :)

Hello razor,
When using unarc.dll you gave me i get invalid password error, how can i unpack passworded arc's using it?

Noob is back again.
I have a question, i was an installshield user before innosetup, installshield used to skip the already installed files and only install the new ones if there is any, is it possible to do that in innosetup?

Cesar82
15-03-2013, 20:45
Need help.
The code pat below is for Inno Ansi Version.
I wanted modify to work on inno unicode version.

function GetDC(HWND: DWord): DWord; external '[email protected] stdcall';
function GetDeviceCaps(DC: DWord; Index: Integer): Integer; external '[email protected] stdcall';
function ReleaseDC(HWND: DWord;DC: DWord): Integer; external '[email protected] stdcall';
function GetDriveType(lpDisk: String): Integer; external '[email protected] stdcall setuponly';
function GetVolumeInformation (lpRootPathName,lpVolumeNameBuffer: PAnsiChar; nVolumeNameSize: longint; lpVolumeSerialNumber,lpMaximumComponentLength: Cardinal; lpFileSystemFlags: Cardinal; lpFileSystemNameBuffer: PAnsiChar; nFileSystemNameSize: dword): longword;
external '[email protected] stdcall setuponly';

function GetScreenHeight(): integer;
var dc: DWord;
begin
dc:=GetDC(MainForm.Handle);
Result:=GetDeviceCaps(dc,10);
ReleaseDC(MainForm.Handle,dc);
end;

function GetScreenWidth(): integer;
var dc: DWord;
begin
dc:=GetDC(MainForm.Handle);
Result:=GetDeviceCaps(dc,8);
ReleaseDC(MainForm.Handle,dc);
end;

Function GetFixedDrivesInfo(): Array of Tdrive;
Var l:string;
s,c,n: integer;
FreeMB, TotalMB: Cardinal;
Vl: array of AnsiString;
Fsn: PAnsiChar;
//
Begin
l:='ABCDEFGHIJKLMNOPQRSTUWXYZ';
for c:=1 to length(l) do begin
if GetDriveType(l[c]+':')=DRIVE_FIXED then
begin
n:=GetArrayLength(Result);
s:=GetArrayLength(Vl);
SetArrayLength(Result,n+1);
SetArrayLength(Vl,s+1);
Vl[s]:=StringOfChar(' ',256);
GetVolumeInformation (l[c]+':\',Vl[s],MAX_PATH,0,0,0,PAnsiChar(Fsn),MAX_PATH);
GetSpaceOnDisk(l[c]+':\', True, FreeMB, TotalMB)
Result[n].Letter:=l[c]+':';
Result[n].VolumeName:=Trim(Vl[s]);
Result[n].FreeSpace:=FreeMB;
Result[n].PSize:=TotalMB;
end;
end;
//MsgBox(Result[n].fileSystemname, mbInformation, mb_Ok);
End;

In inno unicode he does not perform this part.

if GetDriveType(l[c]+':')=DRIVE_FIXED then
begin
n:=GetArrayLength(Result);
s:=GetArrayLength(Vl);
SetArrayLength(Result,n+1);
SetArrayLength(Vl,s+1);
Vl[s]:=StringOfChar(' ',256);
GetVolumeInformation (l[c]+':\',Vl[s],MAX_PATH,0,0,0,PAnsiChar(Fsn),MAX_PATH);
GetSpaceOnDisk(l[c]+':\', True, FreeMB, TotalMB)
Result[n].Letter:=l[c]+':';
Result[n].VolumeName:=Trim(Vl[s]);
Result[n].FreeSpace:=FreeMB;
Result[n].PSize:=TotalMB;
end;

Can help me?

pakrat2k2
16-03-2013, 06:57
change PansiChar to PChar

ansi = pansichar
unicode = pchar

IF I remember it correctly, make backup of script, before making changes. test to see if it worked.

Cesar82
16-03-2013, 13:53
change PansiChar to PChar

ansi = pansichar
unicode = pchar

IF I remember it correctly, make backup of script, before making changes. test to see if it worked.
I tested it and Error: Unknown type PChar
Has at the beginning of the code.
#ifdef UNICODE
#define A "W"
#else
#define A "A" ;// òî÷êà âõîäà â SetWindowText, {#A} ìåíÿåòñÿ íà A èëè W â çàâèñèìîñòè îò âåðñèè
#if Ver < 84084736
PAnsiChar = PChar; // Required for Inno Setup 5.3.0 and lower. (òðåáóåòñÿ äëÿ Inno Setup âåðñèè 5.3.0 è íèæå)
#endif
#endif
#if Ver < 84018176
AnsiString = String; // There is no need for this line in Inno Setup 5.2.4 and above (äëÿ Inno Setup âåðñèé 5.2.4 è âûøå ýòà ñòðîêà íå íóæíà)
#endif
This is not enough?
Does not pass this line.
if GetDriveType(l[c]+':')=DRIVE_FIXED then
In image (Depuration Mode Inno) not load driver information. In Inno Setup Ansi Version work.
http://i.imgur.com/NnkKUWm.jpg
Note:This script is part of the script of the game The Witcher 2 by peterf1999.

pakrat2k2
16-03-2013, 14:09
because that script needs ANSI not Unicode.

If your just changing images etc, using peterf's original script modified for your game, then it will compile just fine no errors.