InstallShield 8.0使用介绍图解(一)
图51
4、右键单击File面板,添加相应的文件
图52
5、右键单击你的文件,将你添加的文件设置为Set Key File。
6、然后将window的操作系统属性设置为Windows NT 4.0 and Windows 2000。这样你的组件就只能安装到Windows NT 4.0 and Windows 2000系统上了。
图53
我们还可以设置Windows Installer Conditions来进行条件安装,具体的可以参考帮助文档。
使用脚本修改安装程序
InstallShield开发工具是采用InstallScript语言来运行一个安装程序的,你可以在InstallScript视图中来修改工程的脚本程序。如下图
图54
InstallScript MSI脚本语言采用的事件驱动模式,也就是说,所有的函数调用是安装一定的顺序来进行的。
在你的工程中自己定义的函数都会出现你的函数树上,见上图,你可以单击树上函数名称来编辑或者修改该函数。
事件处理函数(event-handler functions)是不会出现你的函数树上,但是这些函数你的工程也可以使用,当然,此时我们使用的该函数的缺省代码,如果你想修改某个事件处理函数,你可以从事件列表中选择一个事件比如我们选择(Befor Move Data),然后选择一个关于这个事件的函数(比如Begin),然后这个函数的定义就会出现在你的脚本中,在你的脚本中会出现下面的代码:
图55
//////////////////////////////////////////////////////////////////
//
// FUNCTION: OnBegin
//
// EVENT: Begin event is always sent as the first event during installation.
//
//////////////////////////////////////////////////////////////////
function OnBegin( )
begin
// TO DO: you may change default non-UI settings, for example
//
// You may also perform your custom initialization steps, check requirements, etc.
end;
你可以在这个函数执行自己的代码了。
下面我们演示一下如何在这个函数添加一个MessageBox函数。
1)首先将begin和end间的//开头的都删?br>
2)按下CTRL+I弹出添加函数的向导。
3)在函数的种类列表中,选择"Built-in dialog box".
4)在函数名称中,选择"MessageBox".单击下一步。
5)In the szMsg field-which contains the message you want to display-type "Welcome to the Tutorial installation!" (including the quotation marks).
6)In the nType drop-down list-which specifies the type of message box to display-select INFORMATION.
7)Click Finish to paste your function call into the script.
最后,其实就是在你的OnBegin函数中添加了如下的代码:
function OnBegin( )
begin
上一页 [1] [2] [3] [4] [5] [6] [7] [8] 下一页
关键字: Tag:应用软件知识,电脑入门知识,电脑基础教程,电脑学习 - 电脑基础入门 - 应用软件知识
《InstallShield 8.0使用介绍图解(一)》相关文章
- InstallShield 8.0使用介绍图解(一)
- › InstallShield 8.0使用介绍图解(一)
- › Windows Installer 4.5 新发布
- › 什么是Windows Installer
- 在百度中搜索相关文章:InstallShield 8.0使用介绍图解(一)
- 在谷歌中搜索相关文章:InstallShield 8.0使用介绍图解(一)
- 在soso中搜索相关文章:InstallShield 8.0使用介绍图解(一)
- 在搜狗中搜索相关文章:InstallShield 8.0使用介绍图解(一)