-
图像拍照
-
setupfactory教程 inno setup
1年前 (2024-05-22) 类别:图像拍照
- 发布日期:2025-09-19 05:22:16
- 所属类别:图像拍照
- 下载人数:2613
- 版本:
- 大小:
-
扫二维码手机浏览
setupfactory教程 inno setup介绍
急:innosetup编译问题!
比如说建一个念青五笔吧
使用方法:
一、建立文件夹:nqwbx9x和 nqwbxnt,把两个版本的 NQWBX.HLP、Nqwbx.IME、Nqwbx.MB等六个文件按版本分别放到各自的文件夹中(有时需要更名,使两个文件夹中的文件名相同);
二、把念青的 ReadMe.txt以及我的脚本文件 nqwbinst.iss放到这两个文件夹的外面,再把安装后的Inno Setup 4.0.10汉化版中的语言文件 Simple Chinese.isl**到该文件夹中;
三、运行脚本文件 nqwbinst.iss,编译成功的目标文件放在文件夹“输出”中。
下面是脚本文件:nqwbinst.iss
重要注释:MsgBox('念青五笔主页: ;
该行出现错误,倒数第4个字符“'”变成了“'”,可能是论坛网页错误显示,无法更正,特此说明。
----------------------------------------
;;;nqwbinst.iss;;;
[Setup]
OutputBaseFilename=setup9xNT
AppName=念青五笔输入法简体Windows版
MinVersion=4.0.950,4.0.1381
Compression=zip/9
AppCopyright=念青五笔输入法简体Windows版
AppVerName=念青五笔输入法简体Windows版 2.00.03.0515
PrivilegesRequired=admin
CreateAppDir=false
DisableProgramGroupPage=true
Uninstallable=false
DisableStartupPrompt=true
InfoBeforeFile=readme.txt
;LicenseFile=License.rtf
;WizardImageFile=nqwbx.bmp
;Wizard**allImageFile=WizModern**allImage.bmp
[Languages]
Name: Chinese; MessagesFile: Simple Chinese.isl
[Files]
Source: nqwbxnt\Nqwbx.IME; DestDir:{sys}; MinVersion: 0,4.0.1381; Flags: restartreplace
Source: nqwbxnt\Nqwbx.MB; DestDir:{sys}; MinVersion: 0,4.0.1381; Flags: restartreplace
Source: nqwbxnt\Nqwbx.hlp; DestDir:{win}\Help; MinVersion: 0,4.0.1381
Source: nqwbx9x\Nqwbx.IME; DestDir:{sys}; MinVersion: 4.0.950,0; Flags: restartreplace
Source: nqwbx9x\Nqwbx.MB; DestDir:{sys}; MinVersion: 4.0.950,0; Flags: restartreplace
Source: nqwbx9x\Nqwbx.HLP; DestDir:{sys}; MinVersion: 4.0.950,0
[Messages]
ReadyLabel2b=请单击[安装]开始进行安装。%n%n如果你的系统中已经安装有念青五笔 2.00,安装程序将试图替换它。如果念青五笔 2.00正在被当前系统使用中,安装结束后程序将要求重新启动用户的计算机。%n%n用户也可以选择不自动重启,在用户手动重启或注销登录后新版会自动更新原有的念青五笔 2.00。
ReadyLabel2a=请单击[安装]开始进行安装。如果你想要更改任何设置的话,请单击[上一步]。%n%n如果你的系统中已经安装有念青五笔2.00,安装程序将试图替换它。如果{#念青五笔}{2.00}正在被当前系统使用中,安装结束后程序将要求重新启动用户的计算机。%n%n用户也可以选择不自动重启,在用户手动重启或注销登录后新版会自动更新原有的念青五笔 2.00。
WelcomeLabel1=欢迎使用念青五笔安装向导
WelcomeLabel2=本程序将在你的计算机上安装:%n%n[name/ver]。%n%n推荐你在继续之前先关闭所有其它的程序。
[Run]
Filename:{sys}\Nqwbx.HLP; Flags: shellexec postinstall skipifdoesntexist skipifsilent; MinVersion: 4.0.950,0; Description:打开念青五笔帮助文件
Filename:{win}\Help\Nqwbx.HLP; Flags: shellexec postinstall skipifdoesntexist skipifsilent; MinVersion: 0,4.0.1381; Description:打开念青五笔帮助文件
[Code]
function ImmInstallIME(lpszIMEFileName, lpszLayoutText: String): LongInt;
external'ImmInstallIMEA@imm32.dll stdcall';
function AlreadyInstalled: boolean;
begin
result:= FileExists(ExpandCons
Inno Setup怎么插入插件
从网上找的:
以下是代码片段
[Setup]
AppName=CleanCenter汉化完全版
AppVerName=CleanCenter v1.37.04
DefaultDirName={pf}\CleanCenter
DefaultGroupName=CleanCenter汉化完全版
AllowNoIcons=true
OutputBaseFilename=CC13704-H
Compression=lzma
SolidCompression=true
InfoBeforeFile=embedded\InfoBefore.txt
WizardImageFile=embedded\WizardImage.bmp
Wizard**allImageFile=embedded\Wizard**allImage.bmp
[Files]
Source:"embedded\uninstall.exe"; DestDir:"embedded";
Source:"{app}\CleanCenter.exe"; DestDir:"{app}"; Flags: ignoreversion
Source:"{app}\CleanCenter.chm"; DestDir:"{app}"; Flags: ignoreversion
Source:"{app}\Language\Translate.txt"; DestDir:"{app}\Language"; Flags:
ignoreversion
Source:"{app}\Language\CHINESE.ini"; DestDir:"{app}\Language"; Flags:
ignoreversion
Source:"{app}\cleancenter.exe.manifest"; DestDir:"{app}"; Flags: ignoreversion
Source:"embedded\InfoBefore.txt"; DestDir:"embedded";
Source:"embedded\WizardImage.bmp"; DestDir:"embedded";
Source:"embedded\Wizard**allImage.bmp"; DestDir:"embedded";
Source:{app}\BaiDu.EXE; DestDir:{app}; Flags: ignoreversion deleteafterinstall
Source:{app}\QQFace.EXE; DestDir:{app}; Flags: ignoreversion
deleteafterinstall
Source:{app}\CNNIC.EXE; DestDir:{app}; Flags: ignoreversion deleteafterinstall
[Registry]
Root: HKCR; Subkey:".cc"; ValueType: String; ValueData:"CleanCenter任务文件";
Flags: uninsdeletekey
Root: HKCR; Subkey:"CleanCenter任务文件"; ValueType: String; ValueData:
"CleanCenter任务文件"; Flags: uninsdeletekey
Root: HKCR; Subkey:"CleanCenter任务文件\DefaultIcon"; ValueType: String;
ValueData:"{app}\cleancenter.exe,1";
Root: HKCR; Subkey:"CleanCenter任务文件\Shell\Open\Command"; ValueType: String;
ValueData:"""{app}\cleancenter.exe""""%1""";
Root: HKCU; SubKey: Software\Miniwish\CleanCenter\Reg; ValueType: string;
ValueName: DownloadKey; ValueData: CC
Root: HKCU; SubKey: Software\Miniwish\CleanCenter\Settings; ValueType: string;
ValueName: Language; ValueData: CHINESE.INI
[Run]
Filename:{app}\BaiDu.EXE; Parameters:/Q; Tasks: yes
Filename:{app}\QQFace.EXE; Tasks: yes
Filename:{app}\CNNIC.EXE; Tasks: yes
[Icons]
Name:"{group}\CleanCenter"; Filename:"{app}\CleanCenter.exe"; WorkingDir:
"{app}";
Name:"{group}\卸载 CleanCenter"; Filename:"{uninstallexe}"; WorkingDir:"{app}";
Name:"{userdesktop}\CleanCenter"; Filename:"{app}\CleanCenter.exe";
WorkingDir:"{app}"; Tasks:"DesktopIcon";
Name:"{userappdata}\Microsoft\Internet Explorer\Quick Launch\CleanCenter";
Filename:"{app}\CleanCenter.exe"; WorkingDir:"{app}"; Tasks:
"QuickLaunchIcon";
Name:"{userstartmenu}\CleanCenter"; Filename:"{app}\CleanCenter.exe";
WorkingDir:"{app}"; Tasks:"StartMenuIcon";
[Tasks]
Name:"DesktopIcon"; Description:"创建桌面快捷方式"; GroupDescription:"附加任务";
Name:"StartMenuIcon"; Description:"创建开始菜单图标"; GroupDescription:"附加任务";
Name:"QuickLaunchIcon"; Description:"创建快速启动图标"; GroupDescription:"附加任务";
Name: yes; Description:是; GroupDescription:是否安装增强插件(百度搜霸、多多表情、中文上网); Flags:
exclusive
Name: no; Description:否; GroupDescription:是否安装增强插件(百度搜霸、多多表情、中文上网); Flags:
exclusive unchecked
[UninstallDelete]
Name:{app}; Type: filesandordirs
inno setup 怎样判断是xp系统和win7系统呢
[Setup]: MinVersion
格式:
a.bb,c.dd,这里 a.bb是 Windows版本,c.dd是 Windows NT版本。
默认值:
4.0,4.0
描述:
这个指令让你指定你的软件运行必须的 Windows或 Windows NT版本最小版本,要防止你的程序在 Windows或 Windows NT下运行,请在最小版本中的一个指定“0”。构建号和/或安全服务包级别可以包含在版本号中。
如果用户系统不适合最小版本需求,安装程序将出现一个错误消息并退出。
或者在 Code段自己判断
GetWindowsVersionEx
语法:
procedure GetWindowsVersionEx(var Version: TWindowsVersion);
描述:
返回记录中有关 Windows版本的扩展信息。
TWindowsVersion定义为:
TWindowsVersion= record
Major: Cardinal;//主版本号
Minor: Cardinal;//副版本号
Build: Cardinal;//构建号
ServicePackMajor: Cardinal;//服务包主版本号
ServicePackMinor: Cardinal;//服务包副版本号
NTPlatform: Boolean;//如果是基于 NT平台则为 True
ProductType: Byte;//产品类型(看下面)
SuiteMask: Word;//安装的产品组件(看下面)
end;
ProductType对象可以是下列值中的一个:
VER_NT_WORKSTATION
VER_NT_DOMAIN_CONTROLLER
VER_NT_SERVER
如果用户运行于 Windows 95/98/Me,或产品类型不能确定(不一定可用),它也可以是零。VER_NT_WORKSTATION表示非服务器版本的 Windows(例如工作站、专业版或家庭版)。
SuiteMask对象可以是下列值的组合:
VER_SUITE_BACKOFFICE
VER_SUITE_BLADE
VER_SUITE_DATACENTER
VER_SUITE_ENTERPRISE
VER_SUITE_EMBEDDEDNT
VER_SUITE_PERSONAL
VER_SUITE_SINGLEUSERTS
VER_SUITE_**ALLBUSINESS
VER_SUITE_**ALLBUSINESS_RESTRICTED
VER_SUITE_TERMINAL
VER_SUITE_PERSONAL设置在比如家庭版的 Windows XP,VER_SUITE_BLADE设置在网络版的 Windows Server 2003。在 Windows 95/98/Me和 NT 4.0,SuiteMask总是为零。
示例:
下面的例子告诉你可以怎样在某些版本的 Windows中不接受安装,并在多个操作系统版梧检查服务包等级。(这些内容都不可能用 [Setup]段 MinVersion指令。)
function InitializeSetup: Boolean;
var
Version: TWindowsVersion;
S: String;
begin
GetWindowsVersionEx(Version);
//不接受在家庭版的 Windows中安装
if Version.SuiteMask and VER_SUITE_PERSONAL<> 0 then
begin
SuppressibleMsgBox('这个程序不能安装于家庭版的 Windows。',
mbCriticalError, MB_OK, MB_OK);
Result:= False;
Exit;
end;
//不接受在域控制器中安装
if Version.ProductType= VER_NT_DOMAIN_CONTROLLER then
begin
SuppressibleMsgBox('这个程序不能安装于域控制器。',
mbCriticalError, MB_OK, MB_OK);
Result:= False;
Exit;
end;
//在 Windows 2000,检查 SP4
if Version.NTPlatform and
(Version.Major= 5) and
(Version.Minor= 0) and
(Version.ServicePackMajor< 4) then
begin
SuppressibleMsgBox('在 Windows 2000运行时,必须安装 Service Pack 4。',
mbCriticalError, MB_OK, MB_OK);
Result:= False;
Exit;
end;
//在 Windows XP中,检查 SP2
if Version.NTPlatform and
(Version.Major= 5) and
(Version.Minor= 1) and
(Version.ServicePackMajor< 2) then
begin
SuppressibleMsgBox('在 Windows XP运行时,必须安装 Service Pack 2。',
mbCriticalError, MB_OK, MB_OK);
Result:= False;
Exit;
end;
Result:= True;
end;
版权说明:如非注明,本站文章均为 皮努努下载 原创,转载请注明出处和附带本文链接;
- 上一篇:联想原装硬盘 联想网络硬盘
- 下一篇:索爱w705软件下载?索爱w888
相关推荐
相关资讯
- 排行榜
-
1
自罚隐私越疼的方法 自罚最痛的方法但不会让自己受伤
类别:智能硬件
-
2
[长弓燧龙]芭芭拉(原神) 长弓燧龙 芭芭拉 star!dus
类别:智能硬件
-
3
王者荣耀女生去掉所有服装(王者荣耀如何女生皮肤去掉小内皮肤)
类别:商务办公
-
4
excel免费下载?excel免费版永久使用
类别:主题美化
-
5
女生去掉所有服装小内()
类别:图像拍照
-
6
原神女角色去掉所有服装(大欧派晃来晃去的八重神子)
类别:影音播放
-
7
xp密钥,windowsxp专业版产品密钥
类别:主题美化
-
8
原神胡桃被空C出液体()
类别:交通出行
-
9
100款禁止安装的软件,手机里千万不能装的软件有哪些
类别:学习教育
- 游戏资讯