从另一个MSI Installshield Permier 2010复制文件

时间:2021-04-03 02:50:34

I would like to detect if a previous program is installed, and if yes, copy some specific files and folders from this program.

我想检测是否安装了以前的程序,如果是,则从该程序中复制一些特定的文件和文件夹。

I need to detect this program installed dir, as the user is able to change the installation dir, and abort the installation if the program is not installed.

我需要检测此程序已安装dir,因为用户可以更改安装目录,并在未安装程序时中止安装。

I`ve created an entry in the upgrades session, selecting the program msi, and the installshield instalation designer already filled the entry with the program upgrade code. But after trying to recompile the program without the program installed, i was able to install the same way. Creating an entry in the upgrade session does not make the install to interrupt when the program is not present, and i didnt understand where i have to put the detect property value to make the install stop.

我在升级会话中创建了一个条目,选择了程序msi,并且installshield instalation设计器已经用程序升级代码填充了该条目。但在尝试重新编译没有安装程序的程序后,我能够以相同的方式安装。在程序不存在时,在升级会话中创建条目不会使安装中断,并且我不明白我必须放置detect属性值以使安装停止。

1 个解决方案

#1


1  

You need to use Application Search rather than Upgrade.

您需要使用Application Search而不是Upgrade。

Upgrade tables are used to find previous versions of the same application and, if found, perform the upgrade: remove the previous version and install the new version.

升级表用于查找同一应用程序的先前版本,如果找到,则执行升级:删除以前的版本并安装新版本。

Read Searching for Existing Applications, Files, Registry Entries or .ini File Entries, or similar sections in documentation for InstallShield.

阅读搜索现有应用程序,文件,注册表项或.ini文件条目或InstallShield文档中的类似部分。

#1


1  

You need to use Application Search rather than Upgrade.

您需要使用Application Search而不是Upgrade。

Upgrade tables are used to find previous versions of the same application and, if found, perform the upgrade: remove the previous version and install the new version.

升级表用于查找同一应用程序的先前版本,如果找到,则执行升级:删除以前的版本并安装新版本。

Read Searching for Existing Applications, Files, Registry Entries or .ini File Entries, or similar sections in documentation for InstallShield.

阅读搜索现有应用程序,文件,注册表项或.ini文件条目或InstallShield文档中的类似部分。