|
#361
|
||||
|
||||
|
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; |
| The Following User Says Thank You to nicola16 For This Useful Post: | ||
Razor12911 (08-04-2013) | ||
| Sponsored Links |
|
#362
|
||||
|
||||
|
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! |
|
#363
|
||||
|
||||
|
anyone can tell me how to fix an srep error.
Code:
broken compressed data. error code:-12
__________________
always above all, keep in mind that some day you will die. Bushido. |
|
#364
|
|||
|
|||
|
Quote:
|
|
#365
|
||||
|
||||
|
bottom, line, never use special characters
|
|
#366
|
|||
|
|||
|
I'm not the one who is using it's the game's developers. ^^
|
|
#368
|
|||
|
|||
|
Quote:
|
|
#369
|
||||
|
||||
|
Quote:
__________________
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! |
| The Following User Says Thank You to Joe Forster/STA For This Useful Post: | ||
danswano (08-04-2013) | ||
|
#370
|
|||
|
|||
|
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!
|
|
#371
|
||||
|
||||
|
depends on the compression but .bat compression is the best
|
| The Following User Says Thank You to Razor12911 For This Useful Post: | ||
huavancuong098 (08-04-2013) | ||
|
#372
|
|||
|
|||
|
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?
|
|
#373
|
||||
|
||||
|
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 ;
|
|
#374
|
||||
|
||||
|
Quote:
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 ;
|
| The Following User Says Thank You to altef_4 For This Useful Post: | ||
y_thelastknight (09-04-2013) | ||
|
#375
|
||||
|
||||
|
thanks for help altef_4
Last edited by y_thelastknight; 12-04-2013 at 06:37. |
![]() |
|
|
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 |