当前位置:首页 » 编程软件 » innosetup脚本

innosetup脚本

发布时间: 2022-11-12 14:20:52

Ⅰ 求助用inno setup脚本能判断当前的系统并实现在XP和Win7下安装不同的文件,请指教

查看帮助:

公共参数
有三个可选的被所有段条目支持的参数,它们是:

Languages
一个用空格分隔的语言名列表,告诉安装程序条目属于哪种语言。如果最终用户从列表中选择了一个语言,该条目就执行(例如: 安装文件)。

不带 Languages 参数的条目总是安装,除非其它参数中有限制。

除用空格将它们隔开外,你也可以使用 boolean 表达式。查阅组件和任务参数获取 boolean 表达式的示例。

示例:
Languages: en nl
MinVersion
指定条目要进行处理的最小 Windows 版本 Windows NT 版本。如果你在版本中的一个使用“0”,那么条目将不在平台中进行处理。If the versions empty then the entry will use the default MinVersion for that platform.构建号和/或安全服务包级别可能包含在版本号中。这将忽略任何在脚本 [Setup] 段中的 MinVersion 指令。

不带 MinVersion 参数的条目总是安装,除非其它参数中有限制。

示例:
MinVersion: 4.0,4.0MinVersion: 4.1,
OnlyBelowVersion
基本上是和 MinVersion 相对。指定条目不进行处理的最小 Windows 和 Windows NT 版本。例如,如果你加入 4.1,5.0,用户正在运行 Windows 95 或 NT 4.0,那么条目将进行处理,但如果用户正运行于 Windows 98 (报告它的版本是 4.1) 或 Windows 2000 (报告它的版本是 NT 5.0),它将不进行处理。版本中的一个放入“0”表示不受版本上限。 构建号和/或安全服务包级别可能包含在版本号中。这将忽略任何在脚本 [Setup] 段中的 MinVersion 指令。

不带 OnlyBelowVersion 参数的条目总是安装,除非其它参数中有限制。

示例:
OnlyBelowVersion: 4.1,5.0

Ⅱ Inno Setup只是生成脚本,怎样生成setup.exe文件生成后在哪个位置

点击菜单
构建
编译生成setup.exe文件,setup.exe文件默认生成在我的文档Output文件夹里,如果保存脚本的话则生成在和脚本同一目录的Output文件夹里。

Ⅲ Inno Setup只是生成脚本,怎样生成setup.exe文件生成后在哪个位置

点击菜单 构建 编译生成setup.exe文件,setup.exe文件默认生成在我的文档Output文件夹里,如果保存脚本的话则生成在和脚本同一目录的Output文件夹里。

Ⅳ 直接用bat命令对Inno Setup的脚本文件.iss进行编译

Command Line Compiler Execution
Scripts can also be compiled by the Setup Compiler from the command line. Command line usage is as follows:

compil32 /cc <script name>

Example:
compil32 /cc "c:\isetup\samples\my script.iss"
As shown in the example above, filenames that include spaces must be enclosed in quotes.

Running the Setup Compiler from the command line does not suppress the normal progress display or any error messages. The Setup Compiler will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid, or 2 if the compile failed.

Alternatively, you can compile scripts using the console-mode compiler, ISCC.exe. Command line usage is as follows:

iscc [options] <script name>

Or to read from standard input:

iscc [options] -

Example:
iscc "c:\isetup\samples\my script.iss"
As shown in the example above, filenames that include spaces must be enclosed in quotes.

Valid options are: "/O" to specify an output path (overriding any OutputDir setting in the script), "/F" to specify an output filename (overriding any OutputBaseFilename setting in the script), "/S" to specify a Sign Tool, "/Q" for quiet compile (print only error messages), and "/?" to show a help screen.

Example:
iscc /Q /O"My Output" /F"MyProgram-1.0" /Sbyparam=$p "c:\isetup\samples\my script.iss"
ISCC will return an exit code of 0 if the compile was successful, 1 if the command line parameters were invalid or an internal error occurred, or 2 if the compile failed.

The Setup Script Wizard can be started from the command line. Command line usage is as follows:

compil32 /wizard <wizard name> <script name>

Example:
compil32 /wizard "MyProg Script Wizard" "c:\temp.iss"
As shown in the example above, wizard names and filenames that include spaces must be enclosed in quotes.

Running the wizard from the command line does not suppress any error messages. The Setup Script Wizard will return an exit code of 0 if there was no error and additionally it will save the generated script file to the specified filename, 1 if the command line parameters were invalid, or 2 if the generated script file could not be saved. If the user cancelled the Setup Script Wizard, an exit code of 0 is returned and no script file is saved.

Ⅳ Inno Setup 编译器”如何打包 javaWeb 应用程序,自动设置环境变量

在[Files]段下,添加下面代码
Source: "执行文件.exe"; DestDir: "{app}"; Flags: igNoreversion
Source: "要打包的目录\*"; DestDir: "{app}\安装后释放文件的目录\"; Flags: igNoreversion recursesubdirs createallsubdirs

Ⅵ 如何使用ISSkin对Unicode版的Inno Setup制作的安装程序添加皮肤

ISSkin是什么?ISSkin怎么使用?ISSkin是Code jock 公司出品的Inno Setup 皮肤插件,用于为Inno制作的安装程序提供皮肤功能。ISSkin为您提供了灵活地创建自定义的视觉样式,可以与创新安装程序一起使用,将丰富的专业外观添加到任何创新安装程序安装和最好的其免费。接下来我们小编就给大家详细说说在Unicode版Inno Setup中使用ISSkin给安装程序添加皮肤的具体方法步骤,希望对大家有所帮助!

自Delphi发布2009之后,Inno Setup 开始出现支持Unicode编码的版本,即5.3.x系列,并且官方同时提供Ansi和Unicode版本。

如果了解Delphi 2009的朋友,应该就很了解这一版本对Unicode的支持,这里不多做介绍了。

Unicode版的Inno Setup脚本中会将所有字符串存储为Unicode字符串,使用双字节编码,包括ASCII码,如果调用为早期Ansi版开发的插件的话,涉及到字符串String,应该显式修改为AnsiString,这样才能保证Unicode字符串正确转换为Ansi字符串。

这里要解决由此而导致的问题。

现在的ISSkin最新版本是2.0.0,字符串使用Ansi编码,所以需要将官方主页上介绍的Code代码段进行修改。

这里介绍使用ISSkin对Unicode版的Inno Setup制作的安装程序添加皮肤。

第一步,在File段添加插件ISSkin的动态链接库ISSkin.dll和皮肤文件

例如:

[Files]

Source: ISSkin.dll; DestDir: {app}; Flags: dont

Source: Office2007.cjstyles; DestDir: {tmp}; Flags: dont

第二步,在Code段声明API,注意这里将原String修改为AnsiString

例如:

[Code]

procere LoadSkin(lpszPath: AnsiString; lpszIniFileName: AnsiString);external 'LoadSkin@files:isskin.dll stdcall';

procere UnloadSkin();external 'UnloadSkin@files:isskin.dll stdcall';

function ShowWindow(hWnd: Integer; uType: Integer): Integer;

external '[email protected] stdcall';

第三步,重载InitializeSetup和DeinitializeSetup两个函数以调用ISSkin插件功能

例如:

procere DeinitializeSetup();

begin

ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);

UnloadSkin();

end;

好了,现在截个图吧,看看效果。

文章结束,以上就是关于如何使用ISSkin对Unicode版的Inno Setup制作的安装程序添加皮肤的方法步骤,小编就给大家介绍到这里了,如果你觉得这篇文章还不错,而且对你有帮助,那就赶快分享给更多的人看到吧!更多精彩,尽在我们网站!

Ⅶ inno setup 5 添加快捷方式总是默认选中,该怎么修改

呵呵,找了很久,终于找到了。我试过了,按下面的处理。
[Tasks] //tasks 任务,desktopicon桌面,
Name: "desktopicon"; Description: ""; GroupDescription: ""; Flags: checkablealone

系统默认是没有“Flags: checkablealone”命令的,checkablealone应该是“复选”的意思,“unchecked”应该为“不选”的意思吧。

经过调试,正确的应该是下面的。
[Tasks]
Name: "desktopicon"; Description: ""; GroupDescription: ""; Flags: checkablealone

这个问题的关键是:checkablealone "选中"意思
unchecked "非选中"意思

Ⅷ Inno setup脚本中怎么设计安装包脚本,用户可以自行选择软件的安装路径.默认是装C盘

安装路径好像是在打包脚本中指定的 如果默认的是C 而安装到其他盘出错 可能是脚本中已经写死了

Ⅸ inno setup 5 添加快捷方式总是默认选中,该怎么修改

inno setup 5 添加快捷方式总是默认选中,修改方法如下:

在[Tasks] //tasks 任务中找到desktopicon桌面,点击“非选中”即可。

Ⅹ 怎么用Inno Setup 编译器制作安装程序

启动Inno Setup Compiler汉化版软件。

选择创建新的空白脚本文件,按确定。

然后按下一步。

在相应的项目里填上相应的内容,按下一步。

在图中的1处以浏览的方式选择主程序,然后一个个添加目录,添加完后要记得编辑所添加的目录,以免所有文件安装在目标目录下。在图中的2处选添加目录后按编辑。

在下图中的1处填上子目录的名称,在2处下拉选择其他设置。设置之后按确定继续下一步。

按提示内容填写后执行下一步。

最后生成的脚本格式的程序如下图所示。编译好后就完成制作了。

热点内容
分布式缓存部署步骤 发布:2025-05-14 13:24:51 浏览:610
php获取上一月 发布:2025-05-14 13:22:52 浏览:89
购买云服务器并搭建自己网站 发布:2025-05-14 13:20:31 浏览:688
sqlserver建立视图 发布:2025-05-14 13:11:56 浏览:484
搭建httpsgit服务器搭建 发布:2025-05-14 13:09:47 浏览:255
新电脑拿回来我该怎么配置 发布:2025-05-14 13:09:45 浏览:240
视频服务器新建ftp用户 发布:2025-05-14 13:03:09 浏览:225
php花生 发布:2025-05-14 12:54:30 浏览:550
java人才 发布:2025-05-14 12:29:10 浏览:649
如何打开软密码 发布:2025-05-14 12:28:55 浏览:427