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
415 views
in Technique[技术] by (71.8m points)

.net - Update an existing installation using InstallShield LE

We've got a a quite simple WinForms application. I've created an installation using InstallShield LE which works fine on the first install. I'd like that users will be able to run the installation also for updating an existing copy. The problem is that I can't figure out what is the right way to create this update package. I've tried:

Changing the Product Code - the installation works but a new entry is being created in Add/Remove programs and the old entry is not removed.

Keeping the Product Code - Windows installer shouts: "another version of this product is already installed"

Tried to play with other codes (Upgrade Code / Product Version) - doesn't help

Is there any easy way to create this? Maybe something to tell the installer to remove its previous version if exist?

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

In your InstallShield setup project, you should do the following:

  • select branch: Organize your setup -> Upgrade Paths
  • add new upgrade path and than press the cancel button
  • the default properties of the new upgrade path should not be changed if you do not plan to change the Product version from the following branch: Organize your setup -> General Information. If you plan to change the Product version, than you should play with the following upgrade path properties: Min Version/_Include Min Version_, Max Version/_Include Max Version_.
  • every time you need to create a new setup, change the Product code from the following branch: Organize your setup -> General Information.
  • please be aware that the Upgrade Code should NEVER be changed.

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

...