WIX-Installer MSI Publisher Unknown

How do I provide a publisher name for an MSI installer that is developed using the WIX installer?

When installing my .msi installer, it shows an unknown publisher, how do I specify a name for the publisher? Is it possible to do this on WIX? If so kindly help me how to implement this using the WIX installer.

+6
source share
2 answers

I think you want to avoid the security warning that appears when someone installs your installation. To do this, you will need to sign the setting with your certificate and private key. You can try to do this by following the steps described in the following links:

Assuming you're looking for a publisher name in the Programs and Features control panel. You can use the Manufacturer attribute in the Product tag.

 <Product Id="PUT-YOUR-GUID" Manufacturer="PublisherName" Name="ProductName" UpgradeCode="PUT-YOUR-GUID" Version="1.0.0"> 

Strike>

+9
source

Using the built-in WiX insignia tool is pretty straight forward. Here are the steps to make the WiX MSI Sign Code:

  • Configure signtool as a batch file in my PATH so that I can call it and change it easily. I am running Windows 10, so my "signtool.bat" looks like this:
    "c:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe" %*
  • Configure insignia as a batch file in my PATH so you can change it with new WiX assemblies as they become available. My "insignia.bat" is as follows:
    "C:\Program Files (x86)\WiX Toolset v3.10\bin\insignia.exe" %*
  • Sign my MSI in the post-build event (MSI project -> Properties -> Build Events) by calling this:
    signtool sign /f "c:\certificates\mycert.pfx" /p cert-password /d "Your Installer Label" /t http://timestamp.verisign.com/scripts/timstamp.dll /v $(TargetFileName)

Further notes and thoughts:

  • I also signed up the application (I think) by simply doing Project Properties -> Signing and enabling click-once manifests, selecting a certificate and checking the Sign the assembly option.

  • Here's my similar answer on how to do the same, but for the bootstrap package: using signs to sign WiX MSI and bootstrap package

    / li>
+1
source

Source: https://habr.com/ru/post/949203/


All Articles