天天看点

inno setup一个典型脚本

inno setup一个典型脚本
inno setup一个典型脚本

  [Setup]

AppName=phpStudy

AppVerName=phpStudy 1.1.5 Build 070312

AppPublisher=phpshao

AppPublisherURL=http://phpshao.cublog.cn

AppSupportURL=http://phpshao.cublog.cn

AppUpdatesURL=http://phpshao.cublog.cn

DefaultDirName={pf}/phpStudy

DefaultGroupName=phpStudy

LicenseFile=aa/aaaa.rtf

;InfoAfterFile=D:/pro/aa/aaaa.rtf

VersionInfoCompany=phpshao

VersionInfoDescription=phpStudy 1.1.5 Build 070312

VersionInfoVersion=1.1.5.0

VersionInfoCopyright=Copyright (C) 2007 By phpshao

;OutputDir=E:/php

OutputBaseFilename=phpStudy5678

UninstallFilesDir={app}/uninst

WizardImageFile =aa.bmp

WizardSmallImageFile =bb.bmp

SetupIconFile=ss.ico

Compression=lzma

SolidCompression=true [Languages]

Name: chinese; MessagesFile: compiler:Default.isl

Name: english; MessagesFile: compiler:Languages/English.isl [Tasks]

Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons} [Files] Source: www/phpinfo.php; DestDir: {code:GetDataDir}; Flags: ignoreversion;

..................... [Types]

Name: "full"; Description: "完全安装"

Name: "custom"; Description: "自定义安装"; Flags: iscustom [Components]

Name: "main"; Description: "ePSXe 1.6.0"; Types: full custom; Flags: fixed

Name: "bios"; Description: "BIOS"; Types: full custom

Name: "plugins"; Description: "插件"; Types: full custom

Name: "plugins/video"; Description: "视频插件"; Types: full custom

Name: "plugins/video/pete"; Description: "Pete's GPU 1.75"; Types: full custom

Name: "plugins/video/peops"; Description: "PE.Op.S Soft Driver 1.16"; Types: full custom

Name: "plugins/audio"; Description: "音频插件"; Types: full custom

Name: "plugins/audio/peopsa"; Description: "PE.Op.S Dsound Audio Driver 1.8"; Types: full custom

Name: "plugins/audio/eternal"; Description: "Eternal Spu 1.41"; Types: full custom [INI]

Filename: {app}/phpshao.url; Section: InternetShortcut; Key: URL; String: http://blog.chinaunix.net/u/19869/ [Icons]

Name: {group}/readme; Filename: {app}/readme.html; Components: jb/ApachePHP [UninstallDelete]

Type: files; Name: {app}/phpshao.url

Name: {app}/php5/session; Type: filesandordirs

Name: {app}/mysql5/data/ib*; Type: files; Components: jb/mysql5

Name: {app}/mysql5/data/*.err; Type: files; Components: jb/mysql5 [UninstallRun]

Filename: {app}/uninst/uninstalla.bat; WorkingDir: {app}/apache2/bin/; Components: jb/ApachePHP; StatusMsg: 正在卸载服务……

Filename: {app}/uninst/uninstallm.bat; WorkingDir: {app}/mysql5/bin/; Components: jb/mysql5; StatusMsg: 正在卸载服务…… [Messages]

BeveledLabel=phpStudy 1.1.5   [Code]

procedure URLLabelOnClick(Sender: TObject);

var

  ErrorCode: Integer;

begin

  ShellExec('open', 'http://phpshao.cublog.cn', '', '', SW_SHOWNORMAL, ewNoWait, ErrorCode);

end;

procedure AboutButtonOnClick(Sender: TObject);           

begin

  MsgBox(#13 'phpStudy 1.1.5' #13 #13'PHP开发集成包,无须配置即可使用!' #13#13 '版权所有(C)