Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #361  
Old 07-04-2013, 18:03
nicola16's Avatar
nicola16 nicola16 is offline
Registered User
 
Join Date: Nov 2008
Location: Italia
Posts: 74
Thanks: 23
Thanked 15 Times in 12 Posts
nicola16 is on a distinguished road
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;
Reply With Quote
The Following User Says Thank You to nicola16 For This Useful Post:
Razor12911 (08-04-2013)
Sponsored Links
  #362  
Old 08-04-2013, 02:03
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
In Pascal, an apostrophe character inside a string literal needs to be doubled:
Code:
#define AppName "Clive Barker''s Jericho"
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
  #363  
Old 08-04-2013, 05:08
spawniectes's Avatar
spawniectes spawniectes is offline
Senior Member
 
Join Date: Sep 2010
Location: Argentina
Posts: 202
Thanks: 52
Thanked 401 Times in 76 Posts
spawniectes is on a distinguished road
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.
__________________
always above all, keep in mind that some day you will die. Bushido.
Reply With Quote
  #364  
Old 08-04-2013, 05:10
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
Quote:
Originally Posted by Joe Forster/STA View Post
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.
Reply With Quote
  #365  
Old 08-04-2013, 05:11
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
bottom, line, never use special characters
Reply With Quote
  #366  
Old 08-04-2013, 05:19
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
I'm not the one who is using it's the game's developers. ^^
Reply With Quote
  #367  
Old 08-04-2013, 05:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
rather leave it like this #define AppName "Clive Barkers Jericho"
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
danswano (08-04-2013)
  #368  
Old 08-04-2013, 05:24
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
rather leave it like this #define AppName "Clive Barkers Jericho"
Yeah, that what i did.
Reply With Quote
  #369  
Old 08-04-2013, 05:57
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,836
Thanks: 20
Thanked 342 Times in 224 Posts
Joe Forster/STA is on a distinguished road
Quote:
Originally Posted by danswano View Post
Doubling them will keep them both in the installer, that's not a solution.
I found these relevant pages: http://www.jrsoftware.org/ispphelp/i...ic=expressions and http://www.mirality.co.nz/inno/tips.php#strings.
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
The Following User Says Thank You to Joe Forster/STA For This Useful Post:
danswano (08-04-2013)
  #370  
Old 08-04-2013, 22:19
huavancuong098 huavancuong098 is offline
Registered User
 
Join Date: Mar 2013
Location: viet nam
Posts: 40
Thanks: 26
Thanked 5 Times in 5 Posts
huavancuong098 is on a distinguished road
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!
Reply With Quote
  #371  
Old 08-04-2013, 22:31
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,749
Thanks: 2,170
Thanked 11,206 Times in 2,307 Posts
Razor12911 is on a distinguished road
depends on the compression but .bat compression is the best
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
huavancuong098 (08-04-2013)
  #372  
Old 08-04-2013, 23:17
huavancuong098 huavancuong098 is offline
Registered User
 
Join Date: Mar 2013
Location: viet nam
Posts: 40
Thanks: 26
Thanked 5 Times in 5 Posts
huavancuong098 is on a distinguished road
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?
Reply With Quote
  #373  
Old 09-04-2013, 01:50
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
hi i need help

how to do this

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 ;
Reply With Quote
  #374  
Old 09-04-2013, 03:11
altef_4's Avatar
altef_4 altef_4 is offline
Registered User
 
Join Date: Mar 2012
Location: Ukraine
Posts: 361
Thanks: 248
Thanked 1,022 Times in 239 Posts
altef_4 is on a distinguished road
Quote:
Originally Posted by y_thelastknight View Post
hi i need help

how to do this

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 ;
Reply With Quote
The Following User Says Thank You to altef_4 For This Useful Post:
y_thelastknight (09-04-2013)
  #375  
Old 09-04-2013, 08:53
y_thelastknight's Avatar
y_thelastknight y_thelastknight is offline
Registered User
 
Join Date: Mar 2010
Location: Canada
Posts: 437
Thanks: 616
Thanked 576 Times in 213 Posts
y_thelastknight is on a distinguished road
thanks for help altef_4

Last edited by y_thelastknight; 12-04-2013 at 06:37.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup REV0 Conversion Tutorials 129 21-05-2021 05:51
INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup REV0 Conversion Tutorials 51 26-03-2015 06:57
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



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


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