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


All times are GMT -7. The time now is 15:24.

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