The current set of samples on how to use the new opportunity to run the increased process through the engine is very scarce if it exists in everything. From the WIP documents and schema, I see that I need at least the following:
<?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="..." Version="1.0.0.0" Manufacturer="..." UpgradeCode="*">
<BootstrapperApplicationRef
Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:WixStandardBootstrapperApplication
LaunchTargetElevatedId="LaunchElevatedInstallProc"
LaunchArguments="/myarg=1"
LicenseFile="license.rtf" />
</BootstrapperApplicationRef>
<ApprovedExeForElevation
Id="LaunchElevatedInstallProc"
Key="SOFTWARE\Company\Product"
Value="PathToExeDeliveredByMSI" />
<Chain>
<MsiPackage SourceFile="Setup.msi" Compressed="yes" />
</Chain>
</Bundle>
</Wix>
The attribute Key <ApprovedExeForElevation>makes sense; this is the registry path to the entry that was created in my msi. The attribute Valueis the ValueName in the registry that I created, containing the path to the .exe that I set in my installation:
<Component Id="Comp_Client_Service.exe" Guid="PUT-GUID-HERE">
<File Id="my.exe" Name="my.exe" Source="my.exe" KeyPath="yes" />
<RegistryValue
Root="HKLM"
Key="SOFTWARE\Company\Product"
Name="PathToExeDeliveredByMSI"
Value="[INSTALLFOLDER]my.exe"
Type="string"/>
</Component>
However, this does not seem to work. My .exe never starts, and the .log file does not provide any information that it even tries to run it.
What is this code missing?
EDIT
, , , :
'LaunchTargetElevatedId' 'LaunchElevatedInstallProc'
'LaunchArguments' '/s'