Innosetup打包安装程序教程
innosetup教程(innosetup教程)

innosetup教程(innosetup教程)Inno setup uses the tutorial packaging tool 2007-06-28 09:43:27 to read the 383 comment 0: large and medium subscriptionsThis is a inno setup installation script for my VB6 software "master of Philharmonic disc management"The script that generated the installer - inno setup V5.19 finished version download address: click here to downloadInno Setup download, please search "Inno Setup" keyword, the Chinese people have finished this software, thanks to the finished Author: Teng ShengguangPlease install Inno Setup and proceed to the next step. copy this script into the built-in editor of the inno setup and, with minor modifications, become the installation script for your VB6 softwareApricot studio all rights reserved, Liu Fufeng, please keep the file intact when you reprint.Inno Setup is a free Windows installer production software.The first publication was in 1997, and Inno Setup today is more competitive in functional settings and stability than may have been in some commercial installation softwareIt is really free software, even as a commercial applicationThere is also a feature, compression rate is particularly high, especially for VB software, I install this package only after 3.7M, and other packaging tools 5M moreSetup is created in a compiled script, which is a ASCII code text file similar to the.INI file format. (it's not as complicated as you think!)Script files can generally be edited using the editor built in by the installer compiler program. After you've written the script, the next final step is to select the installer compilerCompile in". Once you have created it, you can run the installer that you compiled in your script.By default, this installer creates the output directory in the directory that contains the script file[Setup]This section contains the global settings for the installer and the uninstall program. Some hints are necessary for any installer you createdA necessary instruction to specify the title of the application you are installing. The version number is not included and is indicated with the AppVerName for the same purpose. AppName is always displayed during the installation, in the upper left corner of the installation screen, and in the setup wizardAppName= Philharmonic disc management masterThe required pointer value should be the same as (or similar to) the value of AppName, but it should also contain the version number of the programAppVerName= Philharmonic disc management master V3.31This is what is displayed in the "support" information in the add / Remove program control panel dialog box in Windows 2000/XP. These settings are optional and not valid in the earlier versions of WindowsAppPublisher=sinyosoftThis is what is displayed in the "support" information in the add / Remove program control panel dialog box in Windows 2000/XP. These settings are optional and not valid in the earlier versions of WindowsAppPublisherURL=AppSupportURL=AppUpdatesURL=This required pointer value is used to select the default directory name in the target location wizard surface, which is usually prefixed with a directory constant, and{pf}\SinyoCDManager will display: C:\ProgramFiles\SinyoCDManagerDefaultDirName={pf}\SinyoCDManagerThe value of this directive is the default start menu folder name used in the wizard's select Start menu folder page. If the instruction is blank or unspecified, it will use the default as its nameDefaultGroupName= Philharmonic disc management masterSpecifies the license agreement file name (optional), displayed in.Txt or.Rtf (rich text) format, before the user selects the program target directoryLicenseFile=F:\ data storage \ apricot soft studio installation package \ Philharmonic Audio CD management guru \Support\Application\License.txtSpecifies that the readme file name (optional) is used in.Txt or.Rtf (rich text) format and is displayed when the installation is completeInfoAfterFile=F:\ data storage \ apricot soft studio installation package \ Philharmonic Audio CD management master \Support\Application\, please read my.Txt firstThis is the compression method specified in the file, as well as the compression standardCompression=lzmaIf it is set to yes, solid compaction will be enabled. This willcause all files to be compressed at onceSolidCompression=yes[Tasks]This paragraph is for election only. It defines all the user - defined tasks during the installation of the installer. These tasks appear in the add - in wizard page in the options box and single optionsNote: the following entry contains a Chinese language ("create desktop shortcut" and "add shortcut"). You can translate into other languages if needed.Name: "desktopicon"; Description: "create desktop shortcut"; GroupDescription: "add shortcut": "Flags: checkedonce"Note: the following entry contains a Chinese language ("create a quick run column shortcut" and "add shortcut"). You can translate into other languages if needed.Name: "quicklaunchicon"; Description: "create a quick run column shortcut"; GroupDescription: "add shortcut": "Flags: checkedonce"[Files]This is the optional file segment that defines the installer's installation file to the user systemBecause this is a VB software, you must also include the relevant link libraries in addition to the files that are included in the software itselfThe following is the file of the software itself. Note: there is a subdirectory of "\Data" under the installation directorySource: "F:\ data storage \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\CDManager.EXE"; DestDir: "{app}"; Flags: ignoreversionSource: "F:\ data storage \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\Data\*"; DestDir: "{app}\Data"; Flags: ignoreversionSource: "F:\ data save \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\, please read my.Txt"; DestDir: "{app}"; Flags: ignoreversionSource: "F:\ data storage \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\CDManager.exe.manifest"; DestDir: "{app}"; Flags: ignoreversionSource: "F:\ data storage \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\License.txt"; DestDir: "{app}"; Flags: ignoreversionSource: "F:\ data storage \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\ Philharmonic audio video disc management master.Chm"; DestDir: "{app}"; Flags: ignoreversionSource: "F:\ data storage \ apricot soft studio installation package \ Philharmonic music disc management master\Support\Application\Data\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirsNote: do not use "Flags: ignoreversion" in any shared system file"The following is the VB6 RunTime, which has been rigorously tested and will guarantee the normal operation of VB6 software under the first edition of Windows98Source: "F:\ data save \ apricot soft studio installation package \Support\vb6RunTime\ASYCFILT.DLL"; DestDir: "{sys}"; CopyMode: alwaysskipifsameorolder;国旗:restartreplace共享文件;注意安。
Inno Setup使用教程

Inno Setup使用教程1、认识脚本的格式:(详细说明可查阅Inno Setup 的帮助文档)Inno Setup的安装脚本包含以下主要段落:[Setup] 段:安装和卸载程序的全局设置,如作者信息、安装目录、压缩方式、是否卸载等。
[Types] 段:定义安装组件的类型,如“完全安装”、“最小安装”、“选择安装”。
[Components] 段:定义可供选择安装的所有组件[Tasks] 段:定义安装期间所有由用户定制的任务。
[Dirs] 段:定义用户想额外创建的目录。
[Files] 段:定义要打包到安装程序里的文件。
[Icons] 段:定义要创建在开始菜单、桌面或任务栏等位置的快捷方式和图标。
[INI] 段:定义向用户系统中 .INI 文件中添加的新条目。
[InstallDelete] 段:定义要在安装之前删除的文件或文件夹。
[Languages] 段:定义安装程序中可使用的语言(适用于多国语言版)。
[Registry] 段:定义安装过程中要读取、新建或删除的注册表项。
[Run] 段:定义要在安装结束时运行的程序。
[UninstallDelete] 段:定义要在卸载时删除的其他文件或文件夹。
[UninstallRun] 段:定义要在开始卸载前运行的程序。
以上每个段落里都有若干具体条目对安装程序的处理功能进行详细设置,当然,并不是每一项都用得上,还得根据实际需要选择使用。
2、脚本范例分析:先来看看一段用INNO SETUP脚本向导创建的基本脚本的[Setup]段:[Setup]AppName=Premiere 6.5 汉化补丁-----------------(程序名称) AppVerName=Premiere 6.5 汉化补丁------------(程序名称+版本) AppPublisher=浩子工作室----------------------------(开发单位或作者) AppPublisherURL=------(开发单位或作者网址) AppSupportURL=-------(技术服务网址) AppUpdatesURL=-------(更新升级网址) DefaultDirName={pf}\Adobe\Premiere 6.5-----(默认安装路径,{pf}就是“Program files”文件夹)DefaultGroupName=Premiere 6.5 汉化补丁----(默认添加在开始菜单中的项目名称)AllowNoIcons=yes--------------------------------------(创建快捷方式图标)LicenseFile=D:\汉化\许可文件.txt------------------(显示许可协议) InfoBeforeFile=D:\汉化\汉化说明.txt-------------(显示软件说明)OutputDir=成品-----------------------------------------(安装程序存放位置)OutputBaseFilename=Premiere 6.5 汉化补丁--(安装程序名称) SetupIconFile=汉.ico----------------------------------(安装程序图标) Compression=lzma-------------------------------------(压缩器:Lzma) SolidCompression=yes--------------------------------(压缩方式:一次性压缩)括号里内容是笔者添加的注释,我想大家应该能够理解。
第二节:使用Inno Setup 构建安装包

睿派克技术论坛软件封包培训班内部资料 2011.5二:使用I n n o S e t u p构建安装包1、I n n o s e t u p简介I n n o S e t u p是一个免费的安装制作软件,小巧、简便、精美是其最大特点,支持p a s c a l脚本,能快速制作出标准Wi n d o w s2000风格的安装界面,足以完成一般安装任务。
该软件用D e l p h i写成,其官方网站同时也提供源程序免费下载。
它虽不能与I n s t a l l s h i e l d这类恐龙级的安装制作软件相比,但也当之无愧算是后起之秀。
新版功能:添加了新的 [S e t u p]段 V e r s i o n I n f o C o p y r i g h t指示,这允许你在安装程序的版本信息中查看版权信息。
P a s c a l脚本修正/改进:新的函数:C u s t o mMe s s a g e、F mt Me s s a g e。
F i l e E x i s t s函数不再从指定文件名中删除最后跟随的反斜框符号。
在以前,F i l e E x i s t s('c:\f i l e n a me\')会返回 T r u e。
T N e w C h e c k L i s t B o x:添加了新的 R e q u i r e R a d i o S e l e c t i o n默认为 F a l s e的布尔属性。
在 5.1.4中引进的动作“需要顶层单选按钮组选择”现在是可选的,并且可以按默认在用户创建的 T N e w C h e c k L i s t B o x e s中禁用。
现在可以处理带围绕引号的所有 [S e t u p]和 [L a n g O p t i o n s]段指示的值。
在以前,只有某些指示可以删除围绕的引号,现在所有的指示均可这么做。
如果你根据老的脚本可能会有不兼容的动作,可能需要调整你的脚本。
Inno打包教程_百度经验

Inno打包教程_百度经验
Inno打包教程
Inno⼯具,是⽐较常⽤的打包软件。
简简单单,⼀招叫你学会使⽤inno打包。
⼯具/原料
inno setup 软件
⽅法/步骤
1. 双击桌⾯的:Inno setup compiler图标,弹出⼀个选择界⾯,可以选择最近打包的⽂件,也可以选择重新创建⼀个打包⽂件。
这⾥以重
新创建打包⽂件为例。
2. 然后点击下⼀步,在应⽤名称中输⼊产品的名称、版本号、公司⽹址等信息。
最好在这⾥填写好,这样就会⾃动⽣成在脚本中,不需
要修改。
3. 然后点击下⼀步,选择打包好的⽂件,输出地址,以及输出的⽂件夹名字。
4. 点击add file(S)...按钮,选择需要打包的⽂件,全部添加进来;
点击add folder...按钮,选择需要打包的⽂件夹,全部添加进来。
5. 点击下⼀步,输⼊应⽤程序在开始菜单中显⽰的名字。
6. 点击下⼀步,选择在安装时需要显⽰的信息、安装语⾔、安装名称等。
7. 最后,点击完成,那么打包的脚本就⽣成好了。
只要点击编译运⾏,打包⽂件就可以集合成⼀个安装⽂件了。
就可以进⾏刻盘安装
了。
InnoSetup打包详解

Inno Setup详细教程一.关于Inno Setup如何在安装时播放音乐方法(1):在脚本编译里的[Code]与[Files]段处添加以下代码:[Code]Function mciSendString(lpszCommand: String; lpszReturnString: Integer; cchReturnLength: Integer; hwn Integer): Integer;external 'mciSendStringA@winmm.dll stdcall';procedure InitializeWizard();varBGMusicFile, SplashFile: string;SplashForm: TForm;SplashFileName: String;I: Integer;beginExtractTemporaryFile(ExtractFileName(ExpandConstant('{tmp}\music.mp3')));SplashForm := TForm.create(nil);with SplashForm dobeginmciSendString(ExpandConstant('play {tmp}\music.mp3'),0,0,0);Close;Free;end;end;[Files]Source: "C:\music.mp3"; Flags: dontcopy或者Source: "C:\mymusic.mp3"; DestDir: "{tmp}"; Flags: dontcopy代码说明:[Code]中蓝色代码{tmp}与\music.mp3的意思是播放inno setup安装时创建的临时文件夹内的musi 文件![Files]中C:\music.mp3是你音乐源文件的地址,填自己的音频名称与音频格式。
inno setup的使用

inno setup的使用
Inno Setup是一款免费的安装程序制作工具,它可以帮助开发者快速创建安装程序,方便用户安装软件。
本文将介绍Inno Setup的使用方法。
我们需要下载Inno Setup并安装。
安装完成后,打开Inno Setup 并创建一个新的安装程序项目。
在项目设置中,我们可以设置安装程序的名称、版本号、安装目录等信息。
接下来,我们需要添加文件到安装程序中。
在文件夹视图中,选择需要添加的文件或文件夹,然后将它们拖放到Inno Setup的文件列表中。
我们可以设置文件的安装位置、是否需要覆盖已存在的文件等选项。
除了文件,我们还可以添加注册表项、快捷方式、环境变量等到安装程序中。
这些选项可以在Inno Setup的“任务”视图中进行设置。
在完成安装程序的设置后,我们可以进行编译并生成安装程序。
在编译过程中,Inno Setup会自动创建一个安装程序的脚本文件,我们可以在脚本文件中进行更加详细的设置。
生成的安装程序可以在Windows系统上运行,并按照我们设置的方式进行安装。
用户可以选择安装位置、创建快捷方式等选项。
总的来说,Inno Setup是一款非常方便易用的安装程序制作工具。
它可以帮助开发者快速创建安装程序,方便用户安装软件。
如果您需要制作安装程序,不妨试试Inno Setup。
Innosetup打包安装程序教程

Innosetup打包安装程序教程Inno Setup 是一个免费的安装程序制作软件,它可以帮助开发者将自己创建的软件打包成一个安装程序,方便用户进行安装。
它具有易于使用,功能强大的特点,本文将介绍如何使用 Inno Setup 进行打包安装程序。
第一步:安装 Inno Setup第二步:新建安装项目打开 Inno Setup 后,点击菜单栏的“File”,然后选择“New”创建一个新的安装项目。
在弹出的对话框中,填写项目名称和保存路径,并点击“Save”按钮保存设置。
第三步:配置安装脚本在脚本中,你可以定义安装程序的名称、版本号、安装目录等信息。
你还可以添加需要安装的文件、创建程序快捷方式、创建注册表键等操作。
以下是一个简单的示例脚本:```pascal[Setup]AppName=MyAppAppVerName=MyApp 1.0DefaultDirName={pf}\MyApp[Files]Source: "MyApp.exe"; DestDir: "{app}"; Flags: ignoreversion [Icons]Name: "{group}\MyApp"; Filename: "{app}\MyApp.exe"```上述脚本中,[Setup] 部分定义了应用程序的名称、版本号和安装目录。
[Files] 部分指定需要安装的文件和目标目录。
[Icons] 部分创建了一个程序快捷方式。
你可以根据自己的需求修改脚本中的内容。
当你完成配置后,保存脚本文件。
第四步:编译安装程序编译完成后,你可以在保存路径中找到生成的安装程序。
你可以将它复制到其他计算机上运行,即可开始安装你的软件。
第五步:自定义安装界面(可选)除了基本配置之外,Inno Setup 还可以让你自定义安装界面。
你可以添加图片、自定义皮肤、自定义按钮等,以使安装程序更加美观和易于使用。
inno setup用法

inno setup用法Inno Setup用法详解:一步一步回答Inno Setup是一款用于创建Windows安装程序的免费开源软件。
它提供了一个简单而强大的界面和脚本语言,并支持多种功能,如文件复制、注册表设置、创建快捷方式等。
本文将一步一步详细介绍如何使用Inno Setup来创建一个自定义的Windows安装程序。
第一步:下载和安装Inno Setup首先,我们需要下载最新版本的Inno Setup安装程序。
在浏览器中搜索"Inno Setup",找到官方网站并下载最新版本。
下载完成后,运行安装程序,并按照提示完成安装。
第二步:准备所需文件在开始创建安装程序之前,我们需要准备一些必要的文件。
这些文件包括被安装的应用程序的可执行文件、所需的库文件、所需的资源文件等。
将这些文件放在一个文件夹中,以便后续使用。
第三步:创建Inno Setup脚本现在,打开Inno Setup并创建一个新的脚本文件。
脚本文件是一个文本文件,其中包含了描述安装程序的各种设置和操作的指令。
在脚本文件中,我们可以定义安装程序的标题、版本号、默认安装目录等。
首先,我们需要定义一些基本设置。
在脚本文件的第一部分,添加以下代码:[Setup]AppName=MyAppAppVersion=1.0DefaultDirName={pf}\MyApp这些代码将设置安装程序的标题为"MyApp",版本号为1.0,并将默认安装目录设置为"{pf}\MyApp",其中"{pf}"表示Program Files文件夹。
接下来,我们可以定义一些其他设置,比如是否允许用户选择安装目录、是否创建桌面快捷方式等。
例如:[Setup]...DisableDirPage=noCreateDesktopShortcut=yes这些代码将允许用户选择安装目录,并在桌面上创建一个快捷方式。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
Inno setup 简单打包教程
Inno setup,使用方法如下。
(1)将编写好的程序生成Release版本,打开Inno setup 5小软件,弹出如下界面:
点击菜单栏“文件”——“新建”,出现如下界面
点击下一步,出现如下界面
这里要填写程序的名字,如“My App”,用用版本“1.00”,应用程序的发布者“ My Company”,及应用程序的网站“XXXXX”,后两者可以不写。
点击下一步出现如下界面
来这里基本不用更改,点击下一步,出现如下界面
这里首先要选择应用程序的这性文件,也就是XXXX.exe文件,点击右侧的浏览找到你的执行文件即可。
下边的“允许用户在安装完成后启动应用程序”,勾选前面的对勾,即可,若禁止安装完成后就运行程序,可不选择此项。
下边的“其他应用程序文件”比较重要,一般包含程序用到的一些DLL文件,配置文件(.ini文件),特殊的AxtiveX(.ocx)控件及Readme 文件等,点击下一步,出现如下界面
这里需要哪些功能,在前边打上对勾即可,点击下一步出现如下界面
这里可以选择许可文件,安装前的文件(如Readme文件等),安装后显示信息等,点击下一步,出现如下界面,
在此可选择语言,当然是“简体中文”,点击下一步,出现如下界面,
在这里选择编译文件的输出文件夹,输出地文件名等,还可以加载自定义的安装程序图标,填写完成后,点击下一步,出现如下界面
点击下一步,
点击完成,进入Inno Setup的编译器,如下图,
点击是,出现如下界面
点击是,出现如下界面
选择编译文本(.iss文件)的输出文件夹,之后便可见变得代码,如下
; 脚本由Inno Setup 脚本向导生成!
; 有关创建Inno Setup 脚本文件的详细资料请查阅帮助文档!
#define MyAppName "3G NVS Viewer"
#define MyAppVersion "1.00"
#define MyAppExeName "LAUMp4Test.exe"
[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (生成新的GUID,点击工具|在IDE中生成GUID。
)
AppId={{140AF0C5-52A5-4ECD-AF8B-0037036B0549}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
InfoAfterFile=E:\MyProject\3G\modify\08060900\Client\bin\Readme.txt
OutputDir=E:\MyProject\3G\setup\Output
OutputBaseFilename=3G NVS Viewer setup_V1.00
Compression=lzma
SolidCompression=yes
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LAUMp4Test.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\config.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\en_resource.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\hi_h264dec_w.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\lang.ini"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LUSerParamX.ocx"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\LUSerParamXEn.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\NetClient.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\NetHostSDK.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\Readme.txt"; DestDir: "{app}"; Flags: ignoreversion
Source: "E:\MyProject\3G\modify\08060900\Client\bin\RegOCX.bat"; DestDir: "{app}"; Flags: ignoreversion
Source:
"E:\MyProject\3G\modify\08060900\Client\bin\LUSerParamX.ocx";DestDir: {app}; Flag s: regserver
;最后一句在安装程序时自动注册LUSerParamX.ocx控件
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";WorkingDir: "{app}" ;
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}";WorkingDir: "{app}" ;
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon ;WorkingDir: "{app}" ;
;红色部分的代码实现在安装目录下读取.ini文件
[Run]
Filename: "{app}\{#MyAppExeName}"; Description:
"{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
至此简单的就打包完成了。