Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I make a Wissharp MSI always remove a previous version? #32

Closed
skroche opened this issue Mar 1, 2017 · 1 comment
Closed

How do I make a Wissharp MSI always remove a previous version? #32

skroche opened this issue Mar 1, 2017 · 1 comment

Comments

@skroche
Copy link

skroche commented Mar 1, 2017

I am looking for a solution where the MSI always uninstalls the previous version and installs a new one, irrespective a of an upgrade.(without showing the dialogue which says -- "Another version of this product is already installed. Installation of this version cannot continue.
To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel. ") I found the link to solve this using Wix (http://stackoverflow.com/questions/11732290/how-do-i-make-a-wix-msi-always-remove-a-previous-version).

I am looking for doing the same using Wix#. I am not sure how to generate a new GUID each time the program is built and MSi is generated. Is there a way that this could be done? please help me with this.

@oleg-shilo
Copy link
Owner

I cannot comment on the quality of that work around. If it works for you, then go for it,

Bu as for the GUID generation you can do this as below:

project.ProductId = Guid.NewGuid();
project.UpgradeCode = new Guid("6f330b47-2577-43ad-9095-1861ba25889b");

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants