Created
August 5, 2015 21:53
-
-
Save KevM/9fd8950b78bde84da091 to your computer and use it in GitHub Desktop.
Wix Provides and Requires example (non-working)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?define VERSION=!(bind.FileVersion.ChildConsole.exe)?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" | |
xmlns:Dep="http://schemas.microsoft.com/wix/DependencyExtension"> | |
<Product Id="*" Name="ChildInstaller" Language="1033" Version="$(var.VERSION)" Manufacturer="Child Entity" UpgradeCode="6607f3eb-256f-44d8-a7d5-efe6f21f07e4"> | |
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> | |
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | |
<MediaTemplate /> | |
<Feature Id="ProductFeature" Title="ChildInstaller" Level="1"> | |
<ComponentGroupRef Id="ProductComponents" /> | |
</Feature> | |
</Product> | |
<Fragment> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="ProgramFilesFolder"> | |
<Directory Id="INSTALLFOLDER" Name="ChildInstaller" /> | |
</Directory> | |
</Directory> | |
</Fragment> | |
<Fragment> | |
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | |
<Component Id="ProductComponent" Guid="{CD433A90-955C-454A-A883-B12E72C74C11}"> | |
<Dep:Provides Id="tabbedOutProvider"> | |
<Dep:Requires ProviderKey="Provider-Zazzle"/> | |
</Dep:Provides> | |
<File Source="$(var.ChildConsole.TargetPath)" /> | |
</Component> | |
</ComponentGroup> | |
</Fragment> | |
</Wix> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<?define VERSION=1.0.0?> | |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" | |
xmlns:Dep="http://schemas.microsoft.com/wix/DependencyExtension"> | |
<Product Id="*" Name="TabbedOut Provider" Language="1033" Version="$(var.VERSION)" Manufacturer="Parent Company" UpgradeCode="5119e76d-3fbc-44f9-af69-0935f3e1aa41"> | |
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> | |
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." /> | |
<MediaTemplate /> | |
<Feature Id="ProductFeature" Title="SetupProject1" Level="1"> | |
<ComponentGroupRef Id="ProductComponents" /> | |
</Feature> | |
</Product> | |
<Fragment> | |
<Directory Id="TARGETDIR" Name="SourceDir"> | |
<Directory Id="ProgramFilesFolder"> | |
<Directory Id="INSTALLFOLDER" Name="SetupProject1" /> | |
</Directory> | |
</Directory> | |
</Fragment> | |
<Fragment> | |
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> | |
<Component Id="ProductComponent" Guid="{CD433A90-955C-454A-A883-B12E72C74C11}"> | |
<Dep:Provides Id="tabbedOutProvider" Key="Provider-Zazzle"/> | |
<File Source="$(var.ParentConsole.TargetPath)" /> | |
</Component> | |
</ComponentGroup> | |
</Fragment> | |
</Wix> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment