Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
544 views
in Technique[技术] by (71.8m points)

winforms - how to keep certain files when upgrading using installshield LE?

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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...