FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   INNO TROUBLESHOOT - Questions Here (https://fileforums.com/showthread.php?t=93193)

nicola16 07-04-2013 18:03

Ok guys I tested the code to give a folder icon to the installer.

The code and this attached to that of yenner90

section put a personal icon file in the folder include
call Desktop.ico
;********************name icon file********************************;
[Files]
Source: Include\Desktop.ico; DestDir: {app}; Flags: ignoreversion; Attribs: hidden system
;************************************************* *************;
code section find CurStepChanged try and replace it with this add the red section

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
procedure CurStepChanged(CurStep: TSetupStep);
var n,i:integer;
ErrorCode: Integer;
begin
if CurStep = ssPostInstall then
begin
SetIniString('.ShellClassInfo', 'IconResource',
ExpandConstant('{app}\Desktop.ico') + #13#10 'IconIndex=0', ExpandConstant('{app}\desktop.ini'));
Exec('attrib', ' +r ' + '"' + ExpandConstant('{app}') + '"', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode);
Exec('attrib', ' +h +s ' + '"' + ExpandConstant('{app}\desktop.ini') + '"', '', SW_HIDE, ewWaitUntilTerminated, ErrorCode);
end;


//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Find CurUninstallStepChanged try and add first end; highlighted in red


end;
end;
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

Final code Uninstall.dat try and add the red section

ExpandConstant('{tmp}\Uninstall.dat'))), True, True, True);
DeleteFile(ExpandConstant('{app}\desktop.ini'));
end;
end;
end;
end;
end;

Joe Forster/STA 08-04-2013 02:03

In Pascal, an apostrophe character inside a string literal needs to be doubled:
Code:

#define AppName "Clive Barker''s Jericho"

spawniectes 08-04-2013 05:08

anyone can tell me how to fix an srep error.
Code:

broken compressed data.
error code:-12

I compress 3 times now, and I keep getting that damn error.

danswano 08-04-2013 05:10

Quote:

Originally Posted by Joe Forster/STA (Post 416834)
In Pascal, an apostrophe character inside a string literal needs to be doubled:
Code:

#define AppName "Clive Barker''s Jericho"

Doubling them will keep them both in the installer, that's not a solution. :rolleyes:

Razor12911 08-04-2013 05:11

bottom, line, never use special characters :D

danswano 08-04-2013 05:19

I'm not the one who is using it's the game's developers. ^^

Razor12911 08-04-2013 05:21

rather leave it like this #define AppName "Clive Barkers Jericho"

danswano 08-04-2013 05:24

Quote:

Originally Posted by Razor12911 (Post 416850)
rather leave it like this #define AppName "Clive Barkers Jericho"

Yeah, that what i did. :D

Joe Forster/STA 08-04-2013 05:57

Quote:

Originally Posted by danswano (Post 416845)
Doubling them will keep them both in the installer, that's not a solution. :rolleyes:

I found these relevant pages: http://www.jrsoftware.org/ispphelp/i...ic=expressions and http://www.mirality.co.nz/inno/tips.php#strings.

huavancuong098 08-04-2013 22:19

comparison between the level of compression Inno Setup and use of the razor, the compress.bat file which will compress better. I need an answer on this issue. If you can help me do this right. Thank!

Razor12911 08-04-2013 22:31

depends on the compression but .bat compression is the best

huavancuong098 08-04-2013 23:17

but the use of such compress.bat no clear delineation of space between 4.3 GB DVD. How to properly define the size of each DVD? The use of arc free to use the Inno Setup command with a higher compression than compress.bat not?

y_thelastknight 09-04-2013 01:50

hi i need help

how to do this :confused:

Code:

#define AppName "1"
//values 1,2,3,4,5


[Setup]

AppId={{660BF654-1986-4653-9981-E99323A2E683}

#ifdef AppName "1"
AppVerName=y_thelastknight1
#endif
#ifdef AppName "2"
AppVerName=y_thelastknight2
#endif
#ifdef AppName "3"
AppVerName=y_thelastknight3
#endif
#ifdef AppName "4"
AppVerName=y_thelastknight4
#endif
#ifdef AppName "5"
AppVerName=y_thelastknight5
#endif


DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes



[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: {win}\help\*; DestDir: {app}\1; Flags: external recursesubdirs ;


altef_4 09-04-2013 03:11

Quote:

Originally Posted by y_thelastknight (Post 416899)
hi i need help

how to do this :confused:

Code:

#define AppName "1"
//values 1,2,3,4,5


[Setup]

AppId={{660BF654-1986-4653-9981-E99323A2E683}

#ifdef AppName "1"
AppVerName=y_thelastknight1
#endif
#ifdef AppName "2"
AppVerName=y_thelastknight2
#endif
#ifdef AppName "3"
AppVerName=y_thelastknight3
#endif
#ifdef AppName "4"
AppVerName=y_thelastknight4
#endif
#ifdef AppName "5"
AppVerName=y_thelastknight5
#endif


DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes



[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: {win}\help\*; DestDir: {app}\1; Flags: external recursesubdirs ;


Code:

#define AppName "1"
//values 1,2,3,4,5


[Setup]

AppId={{660BF654-1986-4653-9981-E99323A2E683}

#if AppName == 1
AppVerName=y_thelastknight1
#elif AppName == 2
AppVerName=y_thelastknight2
#elif AppName == 3
AppVerName=y_thelastknight3
#elif AppName == 4
AppVerName=y_thelastknight4
#elif AppName == 5
AppVerName=y_thelastknight5
#endif


DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes



[Files]
Source: "C:\Program Files (x86)\Inno Setup 5\Examples\MyProg.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: {win}\help\*; DestDir: {app}\1; Flags: external recursesubdirs ;


y_thelastknight 09-04-2013 08:53

thanks for help altef_4

Razor12911 09-04-2013 10:11

Quote:

Originally Posted by huavancuong098 (Post 416895)
but the use of such compress.bat no clear delineation of space between 4.3 GB DVD. How to properly define the size of each DVD? The use of arc free to use the Inno Setup command with a higher compression than compress.bat not?

you try by any means necessary, compress files using a list to include or exclude the files

sakaboy 12-04-2013 17:31

How can I do to set my Installer can Run as Administrator?

pakrat2k2 12-04-2013 17:45

start up inno then goto help & search for administrator.

[Setup]: PrivilegesRequired

TsubasaHP 13-04-2013 01:25

Hi, Guys . How Can I Create a silently Installer with inno setup that Include Two or Three or More disk?

I Create Installer, But when disk one is finished, silently Installer not asked for disk two and Progress bar roll Back and install canceled .

what can i do?

Sorry For my bad english

Compiler 14-04-2013 07:06

I get this error
http://img255.imageshack.us/img255/2772/errv.png

I use this code:
Code:

arc a -ep1 -ed -r -w.\ Data-01.bin -mprecomp:zl98:d0+srep+exe+delta+lzma:a1:mfbt4:d256m:fb128:mc1000:lc8 "D:\game\*"

pause


Razor12911 14-04-2013 07:08

arc.ini

Compiler 14-04-2013 07:11

Here is the Arc.ini
Code:

[External compressor:srep]
;options  = l%d (minimal match length, default=1024)
header = 0
packcmd  = srep {options} -m3f $$arcdatafile$$.tmp $$arcpackedfile$$.tmp
unpackcmd = srep -d -s $$arcpackedfile$$.tmp $$arcdatafile$$.tmp

[External compressor:precomp]
header = 0
packcmd  = precomp -intense0 -c- {options} -o$$arcpackedfile$$.tmp  $$arcdatafile$$.tmp
unpackcmd = precomp -o$$arcdatafile$$.tmp -r $$arcpackedfile$$.tmp


Cesar82 16-04-2013 15:57

Can anyone help me.
I need a code to activate and deactivate a label 5 times with an interval of time.

inovateqsa 16-04-2013 22:24

Alright, I have a simple question:

Is it possible to make a custom installer using ONLY the game disc/s - IE: making an installer without installing the game first?

It would help for annoying DRM and poor internet connection.

Also, When using the custom installer - is there an easier way to align your buttons?
At the moment I am editing the setup.ini, running setup to see where the buttons are, and repeating this process until I eventually get them right.
Is there some way i can make it easier?

Thanks for your help.

spawniectes 17-04-2013 04:44

Quote:

Originally Posted by inovateqsa (Post 417218)
Alright, I have a simple question:

Is it possible to make a custom installer using ONLY the game disc/s - IE: making an installer without installing the game first?

It would help for annoying DRM and poor internet connection.

Also, When using the custom installer - is there an easier way to align your buttons?
At the moment I am editing the setup.ini, running setup to see where the buttons are, and repeating this process until I eventually get them right.
Is there some way i can make it easier?

Thanks for your help.

I can respond for the align of the buttons. this is an small trick that I use.

open your image with photshop (ie. autorun.png)
right click over the ruler and choose pixels.
use the guide lines to obtain the coordinates were you want the buttons appears. Its not 100% accurate sometimes you have to rest 4 or 5 pixels.
(ie.: if on photoshop show that your button will appears at left=80 and top=160 on setup.ini you must put left=80 top=155) I hope this help you.

inovateqsa 17-04-2013 05:40

Thanks,

That's Awesome!

Razor12911 17-04-2013 06:18

Quote:

Originally Posted by LuisCésar82 (Post 417211)
Can anyone help me.
I need a code to activate and deactivate a label 5 times with an interval of time.

use a timer and boolean,

in IS enhanced edition, use ttimer function in normal inno setup use settimer and killtimer using innocallback.dll

danswano 17-04-2013 14:29

how to give the installer an icon or the same icon used for setup.exe in Add/Remove programs window?

pakrat2k2 17-04-2013 15:18

in inno script [setup] section

UninstallDisplayIcon=setup.ico

all in the help section, just open up your script, and click on help.
all documentated there :)

danswano 17-04-2013 15:57

How do i dynamically make the installer asks for the next cab if it was missing on the disc without specifying which .cab is one the next disc?

Andre Jesus 17-04-2013 16:09

1 Attachment(s)
Hello Friends.

How can i change (size and place) the button of the message box?

Attachment 6091

Thanks in advance.

Cesar82 17-04-2013 16:27

Quote:

Originally Posted by Razor12911 (Post 417239)
use a timer and boolean,

in IS enhanced edition, use ttimer function in normal inno setup use settimer and killtimer using innocallback.dll

How to use this function using innocallback.dll? If anyone has an example script, please post for me. I use inno setup unicode (Standard Version).
Need to example
ButtonClick >> LabelHide(Time ms) >> LabelShow(Time ms) >> LabelHide(Time ms) >> LabelShow(Time ms) ....

What is the difference between versions of Inno Setup (ANSI, Unicode, Ansi Enhanced Edition and Unicode Enhanced Editio)? If the Enhanced edition version is more complete because we use another version.

altef_4 17-04-2013 22:05

Quote:

Originally Posted by Andre Jesus (Post 417258)
Hello Friends.

How can i change (size and place) the button of the message box?

Attachment 6091

Thanks in advance.

you can't

huavancuong098 18-04-2013 04:12

how uniform the installer icon. When I change the commands in CI's project Inno yener90 it retains the old icon. Is there any way to change this icon in my icon!

danswano 18-04-2013 04:40

In case no body saw my reply:
How do i dynamically make the installer asks for the next cab if it was missing on the disc without specifying which .cab is one the next disc?

Andre Jesus 20-04-2013 11:52

Hello.

How can i change the value [mb] to gb?

Code:

DiskSpaceMBLabel=At least [mb] MB of free disk space is required.
Thanks in advance.

danswano 20-04-2013 11:59

I would like to know that as well, but if the size is under 999 MB i think it should show up as MB not 0.x GB

spawniectes 20-04-2013 19:33

Quote:

Originally Posted by danswano (Post 417327)
I would like to know that as well, but if the size is under 999 MB i think it should show up as MB not 0.x GB

Actually if size is under 1024 MB (1024 MB = 1GB)

huavancuong098 21-04-2013 05:25

CIU why when I use it to not show up the setup menu interface. Although I was rather png and bmp. You can help me!

Razor12911 22-04-2013 07:26

Quote:

Originally Posted by Andre Jesus (Post 417326)
Hello.

How can i change the value [mb] to gb?

Code:

DiskSpaceMBLabel=At least [mb] MB of free disk space is required.
Thanks in advance.

it's easy to do that just by using pos, check IS documentation


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

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