Quantcast
Channel: wixsharp Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1354

New Post: Adding the possibility to migrate Features at upgrade

$
0
0
Hi,
I try to look in the code but didn't found this possibility. When upgrading being able to detect the previous installation and its installed features. i use this to do it :
 private static void Compiler_WixSourceGenerated(XDocument document)
    {
     var docRoot = document.Root;
     var migrate = docRoot.Select("Product/Upgrade/UpgradeVersion");
        migrate.AddAttributes(
              new Dictionary<string, string> 
                    {
                        {"MigrateFeatures","yes"}
                    }
                             ); 
    }
could you add this in the majorUpgrade options or someplace relevant ?

Viewing all articles
Browse latest Browse all 1354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>