使用 installshield LE 升级时如何保留某些文件?
我正在使用 C# 和 VS 2010 开发一个 Winforms 应用程序。该应用程序将使用 SQLite 数据库,该数据库将在应用程序的初始安装中进行部署。
当我有新版本的应用程序时,如何告诉 Installshield 不要触摸此文件?
如果用户卸载应用程序,可以删除此文件,但是当他们从 1.0 升级到 1.1 等时,我无法覆盖此文件。
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.
When I have new releases of the app, how do I tell Installshield not to touch this file?
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这通常是通过备份和恢复自定义操作来完成的,InstallShield LE 不支持它。基本上,自定义操作在卸载旧版本之前创建备份,另一个自定义操作在安装后恢复它。
另一个解决方案是移动 RemoveExistingProducts< /a> 安装结束的操作。这种方法有很多限制,并且 InstallShield LE 也不支持。
基本上,您可以尝试使用 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.
Another solution is to move RemoveExistingProducts action towards the installation end. This approach has many limitations and is also not supported by 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.
在组件属性中:
1) 确保
Permanant = yes
2) 确保
Shared = yes
使用 installshield 时标记为密钥文件的文件未卸载
In component properties:
1) make sure that
Permanant = yes
2) make sure that
Shared = yes
file marked as key file not getting unistalled while using installshield