InnoSetup

所属分类:Windows编程
开发工具:C++ Builder
文件大小:626KB
下载次数:10
上传日期:2008-06-13 14:17:21
上 传 者junyang
说明:  C++ builder / dephi 中 安装打包程序的源码
(C++ Builder/dephi install the source package procedures)

文件列表:
ccrun.com.txt (719, 2008-03-18)
Projects\CompForm.dfm.txt (59080, 2008-02-08)
Projects\Compil32.manifest.txt (890, 2006-10-04)
Projects\LzmaDecode\compiling.txt (321, 2006-09-04)
Projects\CompOptions.dfm.txt (4368, 2006-12-18)
Projects\CompStartup.dfm.txt (6551, 2004-07-22)
Projects\CompWizard.dfm.txt (90422, 2006-10-07)
Projects\CompWizardFile.dfm.txt (3804, 2006-09-16)
Projects\LzmaDecode\copying.txt (26948, 2004-02-15)
Projects\Helper\Helper.manifest.txt (726, 2006-10-06)
Projects\ISCC.manifest.txt (384, 2006-12-30)
Examples\ISPPExample1License.txt (75, 2003-04-14)
Projects\LzmaDecode\license-LZMA.txt (947, 2004-02-15)
license.txt (1471, 2008-02-04)
Projects\Main.dfm.txt (389, 2007-02-12)
Projects\NewDisk.dfm.txt (1521, 2007-11-26)
Projects\RegDLL\RegDLL.manifest.txt (728, 2006-10-05)
ROPS-1045-to-1045a-patch.txt (4585, 2007-09-16)
ROPS-revision.txt (7, 2007-09-16)
Projects\SelFolderForm.dfm.txt (1306, 2007-11-26)
Projects\SelLangForm.dfm.txt (1243, 2007-11-26)
SynEdit-1.1-patch.txt (3186, 2005-03-09)
Projects\UninstProgressForm.dfm.txt (2909, 2008-03-08)
Projects\UninstSharedFileForm.dfm.txt (1885, 2007-12-03)
VCL-Controls-D2D5-patch.txt (1426, 2005-10-24)
VCL-Controls-D6-patch.txt (2272, 2005-10-24)
Projects\Wizard.dfm.txt (17465, 2007-12-04)
Examples\MyProg\Help\topic_myprog.htm (573, 2006-09-28)
whatsnew.htm (70029, 2008-03-10)
compile.bat (2916, 2007-01-29)
Projects\LzmaDecode\LzmaDecode.h (2807, 2006-09-04)
Projects\LzmaDecode\LzmaTypes.h (894, 2006-09-04)
Examples\MyProg\resource.h (449, 2005-02-22)
Projects\Helper\Helper.c (12865, 2007-02-22)
Projects\LzmaDecode\LzmaDecodeInno.c (1110, 2006-09-04)
Projects\LzmaDecode\LzmaDecodeSize.c (18997, 2006-09-04)
... ...

Inno Setup Copyright (C) 1997-2008 Jordan Russell. All rights reserved. Portions Copyright (C) 2000-2008 Martijn Laan. All rights reserved. For conditions of distribution and use, see LICENSE.TXT. Source code README 1. Prerequisites ================ To compile Inno Setup, you need: - Borland Delphi We compile all of Inno Setup's projects under Delphi 2.01, with the exception of Compil32, which is compiled under Delphi 3.02 (for the better Far East character set support). These older versions of Delphi are used because their VCLs have a significantly smaller code size footprint than the later versions. If you do not have access to these old versions of Delphi, you should be able to compile the projects on later versions, however complete compatibility is NOT guaranteed. We try to make Inno Setup compilable on the later versions when possible, but do not have the resources to test every change on every Delphi version. - RemObjects Pascal Script: http://www.remobjects.com/?ps UPDATE: The ROPS Subversion server suffered a disk crash, so ignore the following paragraph for now, and grab the revision 1045a sources here: http://files.jrsoftware.org/is/rops/rops-svn-rev-1045a.zip (md5sum: d9a***6601ea9d7151b43b27cbf1c8ac5) You'll need to obtain the exact revision specified in ROPS-revision.txt from the ROPS Subversion repository. For example, if the revision number were 1000: > cd is\Components > svn checkout -r 1000 svn://svn.remobjects.com/ps/trunk ps If you don't have the Subversion client (svn), get it from: http://subversion.tigris.org/ - SynEdit: http://synedit.sourceforge.net/ Version 1.1 is required. Older/newer releases likely are not compatible. This version appears to have been removed from the SynEdit site, but you can still get it here: http://files.jrsoftware.org/is/synedit/SynEdit1.1.zip (md5sum: 66dd0b4b71423ffd2db06facbf3cb68c) After downloading SynEdit, you will need to apply the changes in SynEdit-1.1-patch.txt. 2. Delphi 2.0x users ONLY ========================= Before you can successfully compile the projects in Delphi 2.0, you must do two things: - Install the latest version of SYSTEM.DCU if you haven't already done so. It can be downloaded from Inprise's site at: http://www.borland.com/devsupport/delphi/downloads/index.html Look for "System.zip" in the "Delphi 2 Items" section. If you do not do this, you will probably get an "I/O Error" message when trying to run the projects. - If the files SHLOBJ.DCU and REGSTR.DCU are missing from your Delphi\Lib directory, download them here: http://www.jrsoftware.org/files/delphi200units.zip (md5sum: 94530f3c400c728df897d7d740889487) 3. Component Installation ========================= If you intend to view or modify the Setup project's forms, you must install the following component units, which can be found in the Components directory. - BidiCtrls - BitmapImage - FolderTreeView - NewCheckListBox - NewNotebookReg - NewProgressBar - NewStaticText - PasswordEdit - RichEditViewer If you intend to view or modify the Compil32 project's forms, you must additionally install the following components. (Like the Compil32 project itself, these require Delphi 3 or later.) - DropListBox - NewTabSet - SynHighlighterISXCode If you only want to edit code, then you may skip installation of the components, and choose "Cancel" if the Delphi IDE tells you a class can't be found. 4. Overview =========== Inno Setup consists of five projects: Compil32.dpr - This is the GUI front-end for the compiler. Compil32 does not do the actual compilation itself; it relegates it to ISCmplr.dll. If the ISCmplr project is changed, you normally don't need to recompile Compil32 since it's essentially a text editor, and is not affected by internal changes to the compiler. Note: This is the only project that I compile under Delphi 3 (3.02 to be exact). The rest of the projects are compiled under Delphi 2.01. ISCC.dpr - This is the command-line front-end to the compiler. Like Compil32, it depends on ISCmplr.dll to do the actual compiling. ISCmplr.dpr - This is a DLL which is loaded by Compil32 and ISCC to compile scripts. The actual compiler code is in Compile.pas. See CompInt.pas for the various structures and function declarations used to interface to the DLL. Setup.dpr - This is the actual "Setup" program. It displays the wizard, and performs all (un)installation-related tasks. SetupLdr.dpr - This is the "setup loader." It self-extracts a compressed Setup program into the user's TEMP directory and runs it from there. It also displays the "This will install..." message box. How do the projects link together? - ISCmplr, Setup, and SetupLdr share the unit Struct.pas. This unit contains various data structures and constants shared by the projects. If Struct.pas is changed, you usually will need to recompile ISCmplr, Setup, and SetupLdr so that everything is in synch. - There are more units which are shared between projects. Search the 'uses' clauses of the projects and units if you aren't sure if a project uses a particular unit. 5. Source code tips =================== - If you modify the Setup or SetupLdr projects and want to be able to compile your installations with the new code, you'll need to copy the new EXE file(s) to the Setup Compiler directory under the extension .E32. - When debugging the Setup project you should set UseSetupLdr=no in your script, and copy the resulting setup-*.bin files to the source code directory. This way you can simulate an actual installation while running under the Delphi debugger. - All of the forms in the Setup project, with the exception of Main.dfm, have Scaled set to False. This is because they dynamically scale themselves at run-time by calling a function named SetFormFont. - When a Cardinal-type variable is compared against a constant expression, why is a Cardinal cast sometimes used around the constant expression? For example: var X: Cardinal; begin if X > Cardinal(1) then ... The cast is needed to to work around a bug in Delphi 2 and 3 compilers: without it, a *signed* comparison is done. - A note for those curious: The Setup Compiler creates single EXE Setups by first creating the SETUP.EXE as usual, then concatenating the SETUP.0 and SETUP-1.BIN to the end of the SETUP.EXE, and finally modifying an internal data block in SETUP.EXE so it knows it's in "single EXE" form. - Starting with the 32-bit version of Inno Setup 1.12.7, I am using my own "StripReloc" utility to decrease the size of the .EXE and .E32 files. To download StripReloc, go to: http://www.jrsoftware.org/striprlc.php

近期下载者

相关文件


收藏者