-
Hi all, I'm trying to port a bit of logic where a property's registry key, if existing, must be able to override the default <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs" xmlns:ui="http://wixtoolset.org/schemas/v4/wxs/ui">
<Package Name="MsiPackage" Language="1033" Version="1.0.0.0" Manufacturer="Example Corporation" UpgradeCode="047730a5-30fe-4a62-a520-da9381b8226a" InstallerVersion="200">
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<Feature Id="ProductFeature" Title="MsiPackage">
<ComponentGroupRef Id="ProductComponents" />
</Feature>
<Feature Id="ProductFeature2" Title="MsiPackage2">
<ComponentGroupRef Id="ProductComponents2" />
</Feature>
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
<Component>
<File Source="E:/cerbero/packages/gstreamer-1.0/icon.ico" />
</Component>
</ComponentGroup>
<ComponentGroup Id="ProductComponents2" Directory="INSTALLFOLDER">
<Component>
<File Source="E:/cerbero/packages/gstreamer-1.0/license.rtf" />
</Component>
</ComponentGroup>
<ui:WixUI Id="WixUI_Mondo" InstallDirectory="INSTALLFOLDER" />
<WixVariable Id="WixUILicenseRtf" Value="E:/cerbero/packages/gstreamer-1.0/license.rtf" />
<Property Id="GSTINSTALLDIR">
<RegistrySearch Id="GStreamer1.0" Type="raw" Root="HKLM" Key="Software\GStreamer1.0\x86_64" Name="InstallDir"/>
</Property>
<SetProperty Id="INSTALLFOLDER" Value="[GSTTINSTALLDIR]" Before="CostInitialize" Sequence="both" />
</Package>
<Fragment>
<StandardDirectory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="MsiPackage" />
</StandardDirectory>
</Fragment>
</Wix>
Apart from the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Sure. I did this in an S1 episode of the Deployment Dojo. |
Beta Was this translation helpful? Give feedback.
Sure. I did this in an S1 episode of the Deployment Dojo.