{"action":"created","issue":{"url":"https://api.github.com/repos/oleg-shilo/wixsharp/issues/342","repository_url":"https://api.github.com/repos/oleg-shilo/wixsharp","labels_url":"https://api.github.com/repos/oleg-shilo/wixsharp/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/oleg-shilo/wixsharp/issues/342/comments","events_url":"https://api.github.com/repos/oleg-shilo/wixsharp/issues/342/events","html_url":"https://github.com/oleg-shilo/wixsharp/issues/342","id":314007032,"number":342,"title":"How to make a WixSharp installation to remove previous versions of the product installed with InstallShield","user":{"login":"marcobeninca71","id":25340312,"avatar_url":"https://avatars2.githubusercontent.com/u/25340312?v=4","gravatar_id":"","url":"https://api.github.com/users/marcobeninca71","html_url":"https://github.com/marcobeninca71","followers_url":"https://api.github.com/users/marcobeninca71/followers","following_url":"https://api.github.com/users/marcobeninca71/following{/other_user}","gists_url":"https://api.github.com/users/marcobeninca71/gists{/gist_id}","starred_url":"https://api.github.com/users/marcobeninca71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcobeninca71/subscriptions","organizations_url":"https://api.github.com/users/marcobeninca71/orgs","repos_url":"https://api.github.com/users/marcobeninca71/repos","events_url":"https://api.github.com/users/marcobeninca71/events{/privacy}","received_events_url":"https://api.github.com/users/marcobeninca71/received_events","type":"User","site_admin":false},"labels":[{"id":312118284,"url":"https://api.github.com/repos/oleg-shilo/wixsharp/labels/question","name":"question","color":"1d76db","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-13T08:03:52Z","updated_at":"2018-04-17T06:10:31Z","closed_at":null,"author_association":"NONE","body":"Dear Oleg\r\nI created a package with WixSharp to install my product and I used the following code to make sure that at each installation the previous version of the product is uninstalled:\r\n\r\n       new ManagedProject(\"Product\" ,\r\n       .........\r\n       project.GUID = new Guid(\"<my_project_guid>\");\r\n        project.ProductId = Guid.NewGuid(); \r\n        project.UpgradeCode = new Guid(\"<upgrade_guid>\");\r\n        project.Version = new Version(\"1.5.7.423\");\r\n        project.MajorUpgradeStrategy = MajorUpgradeStrategy.Default;\r\n        project.MajorUpgradeStrategy.RemoveExistingProductAfter = Step.InstallInitialize;\r\n\r\neverything works fine if I install my product with the package created with WixSharp: increasing the version the installation remove the previous version.\r\n\r\nBefore using WixSharp the installation was made by InstallShield and if I try to install my product on a machine where the previous version was installed by InstallShield that version is not removed.\r\n\r\nThe product name and the upgrade GUID are the same. Is there any other thing that I have to check?\r\n\r\nthanks in advance"},"comment":{"url":"https://api.github.com/repos/oleg-shilo/wixsharp/issues/comments/381857747","html_url":"https://github.com/oleg-shilo/wixsharp/issues/342#issuecomment-381857747","issue_url":"https://api.github.com/repos/oleg-shilo/wixsharp/issues/342","id":381857747,"user":{"login":"marcobeninca71","id":25340312,"avatar_url":"https://avatars2.githubusercontent.com/u/25340312?v=4","gravatar_id":"","url":"https://api.github.com/users/marcobeninca71","html_url":"https://github.com/marcobeninca71","followers_url":"https://api.github.com/users/marcobeninca71/followers","following_url":"https://api.github.com/users/marcobeninca71/following{/other_user}","gists_url":"https://api.github.com/users/marcobeninca71/gists{/gist_id}","starred_url":"https://api.github.com/users/marcobeninca71/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcobeninca71/subscriptions","organizations_url":"https://api.github.com/users/marcobeninca71/orgs","repos_url":"https://api.github.com/users/marcobeninca71/repos","events_url":"https://api.github.com/users/marcobeninca71/events{/privacy}","received_events_url":"https://api.github.com/users/marcobeninca71/received_events","type":"User","site_admin":false},"created_at":"2018-04-17T06:10:31Z","updated_at":"2018-04-17T06:10:31Z","author_association":"NONE","body":"That's a great solution... thanks Oleg"}}
{"actor":{"display_login":"marcobeninca71"}}