Where in Bundle set InstallPrivileges = "elevated". Bootstrapper Wix - wix

I find to set administration privilages for Wix installer you have to set:
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" InstallPrivileges="elevated"/>
in <Product/>. But where/how set that for Bundle, because I cant create <Package/> ?
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Bundle Name="Bootstrapper13" Version="1.0.0.0" Manufacturer="" UpgradeCode="86064926-b150-448f-aba9-fb0c8f4a83b5">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<!-- TODO: Define the list of chained packages. -->
<!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
</Chain>
</Bundle>

Burn automatically detects when you have a perMachine package; you don't have to tell it.

Related

WIX Uninstall an EXE Package

I am working on a wix installer that Installs WebView2. I have this working. However, when I uninstall WebView2 is left on my system. How do I remove the WebView2 when the uninstaller is ran?
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" >
<Bundle Name="Build.Bootstrap.Installer" Version="1.0.0.0" Manufacturer="Company Name" UpgradeCode="GUID">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense"/>
<Chain>
<ExePackage Id="InvokeBootstrapper" Name="Install WebView2 Runtime" Cache="no" Compressed="no"
PerMachine="yes" Vital="yes" SourceFile="MicrosoftEdgeWebview2Setup.exe"
InstallCommand=" /silent /install" InstallCondition="NOT (REMOVE OR WVRTInstalled)" />
<!-- TODO: Define the list of chained packages. -->
<!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
</Chain>
</Bundle>
</Wix>

Wix Bootstrapper does not display manufacturer name in Programs and Features menu

Wix bootstrapper does not show the manufacturer name in the add/remove programs menu. I am looking to replicate what the following programs have but even though my bootstrapper bundle has it's manufacturer name specified nothing displays at all where there should be a manufacturer/publisher name.
Programs and Features Screenshot
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Name="name" Version="1.0.0.0" Manufacturer="manufacturer" UpgradeCode="84884025-3ff1-4d8e-9fcc-385119a8a322">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication LicenseFile="licence.rtf"
SuppressOptionsUI="yes"/>
</BootstrapperApplicationRef>
<Chain>
<MsiPackage Id="x64" InstallCondition="VersionNT64" SourceFile="$(var.proj.Installer.TargetDir)-Debug-x64.msi"/>
<MsiPackage Id="x86" InstallCondition="NOT VersionNT64" SourceFile="$(var.proj.Installer.TargetDir)\x86\-Debug-x86.msi"/>
</Chain>
</Bundle>
</Wix>

Bundling 3rd party Msi in WiX bootstrapper

I am tying to include a driver MSI in my package chain, but I am not sure how to reference it.
I have the following code the MSI is in my project folder/Resources/DriverInstaller.msi
this is what I have, but I receive this error on build
Undefined preprocessor variable '$(var.InstallerBootstrapper.ProjectDir)'. InstallerBootstrapper
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Name="Installer" Version="4.0.0.0" Manufacturer="Laxus Hipot" UpgradeCode="7cbb781f-c5cc-4805-b599-713357824532">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication LicenseFile="Resources\EULA.rtf" LogoFile="Resources\Icon.png" />
</BootstrapperApplicationRef>
<Chain>
<MsiPackage Id="DriverInstaller" SourceFile="$(var.InstallerBootstrapper.ProjectDir)Resources\DriverInstaller.msi" />
<MsiPackage Id="Installer" SourceFile="$(var.InstallerSetup.TargetPath)" />
</Chain>
</Bundle>
</Wix>
Reference the relevant Project "InstallerBootstrapper" in the wixproj file.
For example
<ProjectReference Include="..\InstallerBootstrapper.csproj">
<Name>InstallerBootstrapper</Name>
<Project>{project guid}</Project>
</ProjectReference>

Wix-downgrade option is not working even when i set "yes" in Major upgrade tag

Please see below bundle file
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Bundle Name="Boot_Demo" Version="2.0.0" Manufacturer="Demo-Product" UpgradeCode="{8B19CAE6-59BD-4001-958B-9D2E9F9A1B4D}">
<Chain>
<!-- TODO: Define the list of chained packages. -->
<!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
<MsiPackage SourceFile="D:\Jayesh\TestProjects\Demo-Product\Demo-Product\bin\Debug\Demo-Product.msi"
DisplayInternalUI="yes"
Visible="yes"
ForcePerMachine="yes"
Permanent="no"
Vital="yes"
EnableFeatureSelection="yes"
>
</MsiPackage>
</Chain>
</Bundle>
</Wix>
am getting same error while downgrading with different versions .
am used first 2.0.0 in bundle file and product.wxs file. Then I have given 1.0.0.

Wix Burn - custom template

Is there a way to change that redish CD picture in the installer?
Here's the code of the Burn project:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
<Bundle Name="Bootstrapper" Version="1.0.0.0" Manufacturer="VilmosNagy" UpgradeCode="844c755f-f02b-4dd3-8b9c-af2498f3128c">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<MsiPackage SourceFile="..\Setup\bin\Release\Setup.msi" />
</Chain>
</Bundle>
</Wix>
Thanks!
Yes, you can use a custom theme. Here is an example from https://github.com/frederiksen/Classic-WiX-Burn-Theme:
Yes, you will want to set the LogoFile. Inside of BootstrapperApplicationRef add
<WixStandardBootstrapperApplication LogoFile="path to your logo.bmp"/>
More info on WixStandardBootstrapperApplication
To clarify Rick Bowerman's answer above, you need to use the extended XML schema in order to use WixStandardBootstrapperApplication and remove/replace the icon. Here is a more elaborate example:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
...
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
<bal:WixStandardBootstrapperApplication LicenseUrl="" LogoFile="blank.png" />
</BootstrapperApplicationRef>
<Chain>
<MsiPackage SourceFile="$(var.Msi_x86)" />
<MsiPackage InstallCondition='VersionNT64' SourceFile="$(var.Msi_x64)" />
</Chain>
...
</Wix>
Note that you have to specify something for the LogoFile attribute. It cannot be empty, and leaving the attribute out will restore the horror.