Home > Software engineering >  Installer '.msi' Not Working Which Is Created By Using WIX
Installer '.msi' Not Working Which Is Created By Using WIX

Time:01-28

I have one add-in project that uses a WIX tool to create an installer. Previously, I was making '.exe' which was running fine.

But now requirement is changed due to security concerns. Now I want to create '.msi' file.

WIX gives me '.msi' successfully at 'C:/Path/To/MSI/addin.msi'.

But when I try to install the add-in by double-clicking on it, It's giving me an error :

enter image description here

When I try to hit command 'C:/Path/To/MSI/addin.msi' in CMD with administrator privileges, It works fine.

After Sometimes, I have found that created msi doesn't having revision number in properties.

enter image description here

Don't know how to add it & What value should come in this.

CodePudding user response:

Seems like setting elevated privilege, scope admin image can be helpful for you. Better to set all of them as shown, but if you have some restrictions about scope or so, just try different combinations.

 <Package InstallPrivileges="elevated" AdminImage="yes" InstallScope="perMachine"> 

CodePudding user response:

Bootstrapper projects produce bundle .exes. They cannot produce .msi packages. If you must deliver only one .msi, you'll need to combine the MsiPackages in your bundle into one.

  • Related