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

New Post: Conditionally creating SqlDatabase only by initial Installation, not by Major Upgrade

$
0
0
The condition element for SqlDatabase is not available directly so you need to insert it in the final XML:
project.WixSourceGenerated += document =>
{
    document.Root.FindSingle("SqlDatabase")
                 .Parent
                 .AddElement("Condition")
                 .SetValue("INSTALLING=\"yes\" AND UPGRADING=\"no\"");
};
In the code above I used dummy condition names INSTALLING and UPGRADING but you will need to find the real condition expression that constitutes "initial Installation, not by Major Upgrade"

Viewing all articles
Browse latest Browse all 1354

Trending Articles



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