使用installshield LE升级时如何保留某些文件? [英] how to keep certain files when upgrading using installshield LE?

查看:56
本文介绍了使用installshield LE升级时如何保留某些文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用C#和VS 2010开发Winforms应用程序.该应用程序将使用SQLite数据库,该数据库将在该应用程序的初始安装时进行部署.

I am developing a Winforms app using C# and VS 2010. This app will use a SQLite database that will be deployed with the initial installation of the app.

当我有新版本的应用程序时,如何告诉Installshield不要触摸此文件?

When I have new releases of the app, how do I tell Installshield not to touch this file?

如果用户卸载了该应用程序,则可以删除此文件,但是当他们从1.0升级到1.1等时,我无法覆盖此文件.

If the user uninstalls the app, it is ok to remove this file, but when they are upgrading from 1.0 to 1.1 etc, I can't overwrite this file.

推荐答案

这通常是通过备份和还原自定义操作完成的,InstallShield LE不支持此操作.基本上,一个自定义操作会在卸载旧版本之前创建一个备份,而另一个自定义操作会在安装后还原它.

This is usually done through backup and restore custom actions and it's not supported by InstallShield LE. Basically, a custom action creates a backup before the old version is uninstalled and another custom action restores it after install.

另一种解决方案是移动 RemoveExistingProducts 操作.这种方法有很多局限性,InstallShield LE也不支持这种方法.

Another solution is to move RemoveExistingProducts action towards the installation end. This approach has many limitations and is also not supported by InstallShield LE.

基本上,您可以尝试使用InstallShield LE自定义操作支持以某种方式配置备份和还原自定义操作.但是很可能您将需要使用其他设置创作工具,该工具可以提供对安装程序操作的更多控制.

Basically, you can try using the InstallShield LE custom action support to somehow configure backup and restore custom actions. But most likely you will need to use a different setup authoring tools which offers more control over installer actions.

这篇关于使用installshield LE升级时如何保留某些文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆