FileForums

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

yener90 29-10-2011 10:41

Quote:

Originally Posted by BAMsE (Post 397575)
can you explain how to achieve lang sensitive reg values? Setting different values for each lang is rather troubling. I guess you're using some variable (defined in custom mesages?) to get proper lang entry :D

i hope this pic helps you:
http://img228.imageshack.us/img228/7827/unbenanntlr.jpg

a german phrase:
some pics can describe more then 1000 words :D

change in custom messages for pol example:
pol.Language2= to the worth you need...
also for other languages.

yener90 29-10-2011 15:48

Update 6.5 (Downloads before: 57)
Changes:
- Updated forgotten parts Polish translation
- Bug fixes
- 2 or more DVD installation problems solved
- Speed up the installation start
- File size of Setup.dll decreased
- Fullscreen installer is now really fullscreen :D
- Internal and external installation feature deleted -> not necessary for me

Grumpy 30-10-2011 00:03

Quote:

Originally Posted by yener90 (Post 397618)
a german phrase:
some pics can describe more then 1000 words

We have the same phrase in English:

A picture is worth a thousand words. ;)

sulfurum1989 30-10-2011 09:53

Yener, how to decompress the files, compressed with precomp & SREP - ARC in your source code?

BAMsE 30-10-2011 10:11

sulfurum1989 did you read the #1 post (where yener90 explains new features)?
In 'setup.ini'
Code:

[ExtractSettings]
FreeArcFile1={src}\Data.arc;DestDir:{app};Disk:1;PrecSrep:1


janek2012 31-10-2011 02:56

Very nice but after I have packed file as shown:

Files -> Data.arc -> Data.pcf -> Data.srep -> Data.arc
and modified setup.ini as follows:
Code:

[ExtractSettings]
FreeArcFile1={src}\Data.arc;DestDir:{app};Disk:1;PrecSrep:1

I got a strange error:
http://img546.imageshack.us/img546/6301/errorwp.jpg

Please help.
PS. I used Precomp 0.4.2 (download link for 0.4.1 is not working) with parameters "-t-j -c-" and SREP 2.0 with parameter "-m3"

OT: Pozdro, BAMsE :)

yener90 31-10-2011 03:03

hmm you are using completely different version then setup supports.
look at include folder and use this srep.exe and precomp038.exe.
precomp04.exe is currently disabled.

janek2012 31-10-2011 03:15

ok, thanks for your fast reply :)
But the problem was that the filename must not contain more than one dot (for example, "Data.lol.arc" is not valid but "Data.arc" is).
You should add this info to #1 post.

One more question - how to split archives?
Do I need to split the first (store) arc or the last one, and how to modify setup.ini for it?

Joe Forster/STA 31-10-2011 07:59

Quote:

Originally Posted by janek2012 (Post 397697)
I got a strange error:

In such cases, you can always assume the text being displayed in the wrong code page. If you type in Íĺáĺđíî çŕäŕí âőîäíîé ôŕéë äë˙ into a good text editor in code page 1250 (ANSI code page for Central Europe) and then switch the display to code page 1251 (ANSI code page for Russian) then you'll get Неберно задан входной файл для which mirror-translates to Invalidly given input file for. (Did you know that when Windows displays a message window - error, info, question, whatever - then you can use Ctrl-C to copy it to the clipboard?)

Isn't that fun? :p

11rd 31-10-2011 08:08

http://www.uppices.com/images/10377397020132136299.png

yener90 31-10-2011 08:36

11rd

you need inno setup unicode.

BAMsE 31-10-2011 09:20

janek2012 the problem with freearc is it doesn't support splitting. You must do it "by trial and error" to achieve preferred final size

janek2012 31-10-2011 10:40

BUG: If you select only one language in setup.ini, two icons in taskbar appears at the same time.

11rd 31-10-2011 10:56

I'm a beginner. In many parts, so I do not understand. But I do it a lot. Therefore, it is bothering you.

http://www.uppices.com/images/27118087057765298820.png

yener90 31-10-2011 11:03

dont know what you do,
but you need to comment this part out.
this line put before the icon "{" two "//"

yener90 31-10-2011 11:03

Update 6.5.1 (Downloads before: 67)
Changes:
- fixed double appearing in taskbar for one language

yener90 04-11-2011 06:01

Update 6.6 (Downloads before: 157)
Changes:
- added InstallShield skin support
-> now converters who dont have time to make the graphics can use this skin
just edit InstallOptions, InstallSettings, ExtractSettings and LauncherSettings part in setup.ini.

BAMsE 04-11-2011 09:36

yener90 where may I position button labels to be not horizontally centered?

yener90 04-11-2011 10:14

Quote:

Originally Posted by BAMsE (Post 397799)
yener90 where may I position button labels to be not horizontally centered?

therefore you need to edit the script.
search for LoadButtonImage... should be 5 of them.
scroll down to the end and then look for Alignment:=taCenter

you can choose following options:
TAlignment = (taLeftJustify, taRightJustify, taCenter);

BAMsE 04-11-2011 10:55

I've founded this already but I'm thinking about centering text on not center of bmp. For example when the button is 200px width your script places the centered text at 100px. I want to place it on 150px :D

yener90 04-11-2011 11:13

like the option "ButtonLabelTop"??
this point is a lil bit difficult :rolleyes:
will try to add an option like you wanted.

BAMsE 04-11-2011 11:19

Exactly like that. Will you manage to do this till 11.11.11? :p

artdekdok 04-11-2011 11:46

6.6 simple skin :D

yener90 06-11-2011 16:20

Quote:

Originally Posted by BAMsE (Post 397806)
Exactly like that. Will you manage to do this till 11.11.11? :p

dude couldnt do it....
dont know what the problem with inno setup is.

COPyCAT 07-11-2011 03:05

Thank Q. Yener. Great Work :)

By the way... what is the best way to compress file larger than 4GB into one SFX Module (7zip) and the SFX file still running properly. I got error when compress file size 6GB.

BAMsE 07-11-2011 10:24

yener90 don't rush man. I bypassed this limitation by faking a wider button =)

janek2012 07-11-2011 14:39

I have a suggestion:

If I change ApplicationName to (for example) Splinter Cell: Conviction,
it will throw an error because folder names cant contain "\ / ^ * : etc"

I would like setup to change all occurrences of banned characters to " -" or space to prevent this error. I know I could simply change the appname not to contain these chars but it would not look good in setup's window title.

pakrat2k2 07-11-2011 16:45

easiest yet use Splinter Cell Conviction no need for anything else.

gentilu 08-11-2011 02:32

Code:

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

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

Launch4=Microsoft Visual C++ 2008 (x64)
Launch464=1
LaunchCom4=__Installer\vc\vc2008sp1\redist\vcredist_x64.exe
LaunchArg4=/q:a

How to add this^ in my project .iss?

janek2012 08-11-2011 14:06

BUG:

Code:

FreeArcFile1={src}\Data.arc;DestDir:{app}\pc;Disk:1;PrecSrep:1
Is breaking installation - when I remove \pc - Precomp extraction works.

SOLUTION:

Lines 964-967:
Quote:

if not ISSRepExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'srep', ExpandConstant('{app}\') + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'pcf', '', true, CallBack ) then MyError := True ;
if MyError = True then break;
if not ISPrecompExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'pcf', ExpandConstant('{app}\') + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'arc', true, CallBack ) then MyError := True ;
if MyError = True then break;
REPLACE with:
Quote:

if not ISSRepExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'srep', Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'pcf', '', true, CallBack ) then MyError := True ;
if MyError = True then break;
if not ISPrecompExtract ( 0, OveralPct, 0, Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'pcf', Arcs[1] + '\' + Copy (ExtractFileName(Arcs[0]), 0, Pos('.', ExtractFileName(Arcs[0]))) + 'arc', true, CallBack ) then MyError := True ;
if MyError = True then break;

pakrat2k2 08-11-2011 19:11

janek2012, Highlight whats changed..

Quote:

Originally Posted by gentilu (Post 397971)
Code:

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

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

Launch4=Microsoft Visual C++ 2008 (x64)
Launch464=1
LaunchCom4=__Installer\vc\vc2008sp1\redist\vcredist_x64.exe
LaunchArg4=/q:a

How to add this^ in my project .iss?

Add them to the [RUN] section of the ISS script. Point to the correct folder of course... examples below:

IE:

Filename: {src}\DirectX\DXSETUP.exe; Parameters: /silent; StatusMsg: {cm:run} Microsoft DirectX...; Tasks: DirectX (----> DIRECTX folder on DVD)
Filename: {src}\PhysX\PhysX_9.10.0224_SystemSoftware.exe; Parameters: /quiet; StatusMsg: {cm:run} NVIDIA PhysX...; Tasks: PhysX (---> Physx Folder on DVD)
Filename: {src}\vcredist_x86.exe; Parameters: /q; StatusMsg: {cm:run} Visual C++ Runtime... (---> In the ROOT of the DVD.)

whats in () is NOT part of what you add to the [RUN] section.

REV0 10-11-2011 11:09

i'm trying to make converter but it copy all C:/program files, cant we add the support to ask us instead ?

Joe Forster/STA 10-11-2011 11:15

Quote:

Originally Posted by REV0 (Post 398089)
i'm trying to make converter but it copy all C:/program files, cant we add the support to ask us instead ?

Damn, how I hate that: yeah, a lot of programs ignore both the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\ProgramFilesDir registry key and the ProgramFiles environment variable!

REV0 10-11-2011 11:18

Quote:

Originally Posted by Joe Forster/STA (Post 398091)
Damn, how I hate that: yeah, a lot of programs ignore both the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\ProgramFilesDir registry key and the ProgramFiles environment variable!

so i'll delete registry related entries

edit:

actually it would be better if i find battlefield's converter.iss :(

Joe Forster/STA 10-11-2011 11:22

Quote:

Originally Posted by REV0 (Post 398092)
so i'll delete registry related entries

Huh?! These registry entries belong to the system, don't touch them! Installers should use these values; if they don't then that's the installer's fault. On my PC's, this directory is F:\PROGRAMS but some programs want to install to F:\Program Files or somewhere on drive C:. Ehhh...

REV0 10-11-2011 11:27

Quote:

Originally Posted by Joe Forster/STA (Post 398094)
Huh?! These registry entries belong to the system, don't touch them! Installers should use these values; if they don't then that's the installer's fault. On my PC's, this directory is F:\PROGRAMS but some programs want to install to F:\Program Files or somewhere on drive C:. Ehhh...

Actually i was talking about entries in iss file,

for example, in iss there's reg 'finder' for starcraft2, even if i change it's not working

gentilu 10-11-2011 12:56

Quote:

Originally Posted by pakrat2k2 (Post 398006)

Filename: {src}\DirectX\DXSETUP.exe; Parameters: /silent; StatusMsg: {cm:run} Microsoft DirectX...; Tasks: DirectX

Directive or parameter "Tasks" expression error: Parameter "Tasks" includes an unknown task.

//What is the problem?

pakrat2k2 10-11-2011 16:38

just remove the Tasks: Directx from end of line.

the error message means that you have no list of tasks in the iss script..

BAMsE 12-11-2011 10:16

PrecSrep feature has bug. Although srep file (from final cab) is extracted to folder specified in 'setup.ini' lets say {app}\movies, the pcf (from srep) is placed in {app} folder. When setup starts to extract from pcf it returns an error (probably it expects pcf file in {app}\movies

MartinezPL 12-11-2011 15:32

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


All times are GMT -7. The time now is 10:50.

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