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

New Post: Upgrading program

$
0
0
  • I just tested the GetProductCode and in my environment it works for both CPU types just fine:
class Program
{
    staticpublicvoid Main(string[] args)
    {
        var installed = AppSearch.IsProductInstalled("{1D6432B4-E24D-405E-A4AB-D7E6D088CBC9}");
        Console.WriteLine(installed);
    }
}
As I explained GetProductCode uses native MsiGetProductInfo (from msi.dll) thus troubleshooting CPU type (or environment) implications of msi.dll interop is outside of Wix# scope. It is a generic .NET problem. You have the code (my prev post) so you can create your own interop that works in your conditions. You can even query registry directly if you need to.
 
  • project.GUID is not a product code. But Project.ProductId is. You can assign it explicitly. If you don't then Wix# will auto allocate it for you. It will be derived from project.GUID. After the build Wix# always prints out the all allocated ids:
 ProductName: MyProduct
 Version    : 1.0.0.0
 ProductId  : {6f330b47-2577-43ad-9095-1861ca25889c}
 UpgradeCode: {6f330b47-2577-43ad-9095-1861ba25889b}
You can also retrieve the auto-generated ProductId after the build:
project.BuildMsi();
Console.WriteLine(project.ProductId);
MSI product identity model is described in this Wix# wiki page: https://wixsharp.codeplex.com/wikipage?title=Deployment%20scenarios#_naming

Viewing all articles
Browse latest Browse all 1354

Trending Articles



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