Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '------------------------------------------------------------------------------------------
- ' Notice of My Copyright and Intellectual Property Rights
- '
- ' Any intellectual property contained within the program by Joseph L. Bolen remains the
- ' intellectual property of the Joseph L. Bolen. This means that no person may distribute,
- ' publish or provide such intellectual property to any other person or entity for any
- ' reason, commercial or otherwise, without the express written permission of Joseph L. Bolen.
- '
- ' Copyright © 2017. All rights reserved.
- ' All trademarks remain the property of their respective owners.
- '-------------------------------------------------------------------------------------------
- ' Program Name: Wix Toolset Deployment Example
- '
- ' Author: Joseph L. Bolen
- ' Date Created: 16 AUG 2017
- '
- ' Description: An example of the Bundle.wxs and Product.wxs files used to
- ' deploy a program called, "VB Is Fun", using the Wix Toolset.
- '
- ' This document is at: https://pastebin.com/Z169466f
- '
- '-------------------------------------------------------------------------------------------
- ' Bundle.wxs
- '-------------------------------------------------------------------------------------------
- <?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="VB Is Fun" Version="1.0.0.0" Manufacturer="Bolen Computers" UpgradeCode="c998859f-fac2-44f0-9f79-610b87457fab">
- <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkLicense">
- <bal:WixStandardBootstrapperApplication
- LicenseUrl=""
- LogoFile="BolenLogo50.png"
- xmlns:bal="http://schemas.microsoft.com/wix/BalExtension" />
- </BootstrapperApplicationRef>
- <Chain>
- <!-- TODO: Define the list of chained packages. -->
- <!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
- <!-- If needed, install .Net Framework 4.6.2 -->
- <PackageGroupRef Id="NetFx462Redist"/>
- <RollbackBoundary />
- <!-- Call the VBIsFun installer msi -->
- <MsiPackage SourceFile="$(var.VBIsFunInstaller.TargetDir)VBIsFunInstaller.msi" DisplayInternalUI="yes" Vital="yes" />
- </Chain>
- </Bundle>
- </Wix>
- '-------------------------------------------------------------------------------------------
- ' Product.wxs
- '-------------------------------------------------------------------------------------------
- <?xml version="1.0" encoding="UTF-8"?>
- <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <?define VBIsFun_TargetDir=$(var.VBIsFun.TargetDir)?>
- <Product Id="ade2108f-0992-4e88-9342-b81cce9ced0d" Name="VB Is Fun" Language="1033" Version="1.0.0.0" Manufacturer="Bolen Computers" UpgradeCode="f86289ee-286a-42e3-9eef-5723f07c2ce2" >
- <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" Description="Fun Date and Time Display" />
- <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
- <MediaTemplate EmbedCab="yes" />
- <!-- Icon for the Installer package -->
- <Icon Id="MyShortcutIcon" SourceFile="$(var.ProjectDir)Bolen.ico" />
- <Property Id="ARPPRODUCTICON" Value="MyShortcutIcon" />
- <!-- EULA -->
- <WixVariable Id="WixUILicenseRtf" Value="$(var.ProjectDir)BolenEULA.rtf" />
- <WixVariable Id="WixUIDialogBmp" Value="BolenWixBackground.jpg"/>
- <WixVariable Id="WixUIBannerBmp" Value="BolenWixBanner.jpg"/>
- <!-- Installation Types
- <UIRef Id="WixUI_Minimal" />
- <UIRef Id="WixUI_InstallDir" />
- <UIRef Id="WixUI_FeatureTree" />
- <UIRef Id="WixUI_Mondo" />
- <UIRef Id="WixUI_Advanced" />
- -->
- <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
- <UIRef Id="WixUI_InstallDir" />
- <UIRef Id="WixUI_ErrorProgressText" />
- <Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Thank you for installing this Bolen product." />
- <Feature Id="ProductFeature" Title="VB Is Fun" Level="1">
- <ComponentGroupRef Id="ProductComponents" />
- <ComponentRef Id="ApplicationShortcut" />
- <ComponentRef Id="ApplicationDesktopShortcut"/>
- </Feature>
- <!-- NET Framework Prerequiste Check -->
- <PropertyRef Id="WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED"/>
- <Condition Message="This application requires .NET Framework 4.6.2 or later. Please install the .NET Framework then run this installer again.">
- <![CDATA[Installed OR WIX_IS_NETFRAMEWORK_462_OR_LATER_INSTALLED]]>
- </Condition>
- </Product>
- <Fragment>
- <Directory Id="TARGETDIR" Name="SourceDir">
- <Directory Id="ProgramFilesFolder">
- <Directory Id="ManufacturerFolder" Name="!(bind.property.Manufacturer)">
- <Directory Id="INSTALLFOLDER" Name="!(bind.property.ProductName)" />
- </Directory>
- </Directory>
- <!-- Add this folder to define the Start Menu Folder -->
- <!-- This will be used to define the Application shortcut -->
- <Directory Id="ProgramMenuFolder">
- <Directory Id="MfgStartMenuFolder" Name="!(bind.property.Manufacturer)" />
- </Directory>
- <!-- Add this folder to define the Desktop Folder -->
- <!-- This will be used to define the Desktop shortcut -->
- <Directory Id="DesktopFolder" Name="Desktop" />
- </Directory>
- </Fragment>
- <!-- Define Program objects -->
- <Fragment>
- <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
- <Component Id="VBIsFun.exe" Guid="53ecd85f-538c-47e6-af42-88b20a653aed">
- <File Id="VBIsFun.exe" Name="VBIsFun.exe" Source="$(var.VBIsFun_TargetDir)VBIsFun.exe" KeyPath="yes" />
- </Component>
- <Component Id="VBIsFun.exe.config" Guid="11f80d41-ae6a-46ac-9841-32fe4ddb40d0">
- <File Id="VBIsFun.exe.config" Name="VBIsFun.exe.config" Source="$(var.VBIsFun_TargetDir)VBIsFun.exe.config" KeyPath="yes" />
- </Component>
- </ComponentGroup>
- </Fragment>
- <!-- Define Start Menu Folder objects -->
- <Fragment>
- <DirectoryRef Id="MfgStartMenuFolder" >
- <Component Id="ApplicationShortcut" Guid="62166298-fd48-4585-8555-3d9130d16a7c" >
- <Shortcut Id="ApplicationStartMenuShortcut"
- Name="!(bind.property.ProductName)"
- Description="Fun with Date and Time Display"
- Directory="MfgStartMenuFolder"
- Target="[INSTALLFOLDER]VBisFun.exe"
- WorkingDirectory="INSTALLFOLDER"
- Icon="MyShortcutIcon" />
- <RemoveFolder Id="RemoveMfgStartMenuFolder"
- Directory="MfgStartMenuFolder"
- On="uninstall" />
- <RegistryValue Root="HKCU"
- Key="Software\Bolen Computers\VB Is Fun\ProgramMenuShortcut"
- Name="installed"
- Type="integer"
- Value="1"
- KeyPath="yes" />
- </Component>
- </DirectoryRef>
- </Fragment>
- <!-- Define Desktop Shortcut objects -->
- <Fragment>
- <DirectoryRef Id="DesktopFolder" >
- <Component Id="ApplicationDesktopShortcut" Guid="a0f7ac24-b020-4573-9147-1536102ea8a1" >
- <Shortcut Id="MyDesktopShortcut"
- Name="!(bind.property.ProductName)"
- Description="Fun with Date and Time Display"
- Directory="DesktopFolder"
- Target="[INSTALLFOLDER]VBisFun.exe"
- WorkingDirectory="INSTALLFOLDER"
- Icon="MyShortcutIcon" />
- <RegistryValue Root="HKCU"
- Key="Software\Bolen Computers\VB Is Fun\DesktopShortcut"
- Name="installed"
- Type="integer"
- Value="1"
- KeyPath="yes" />
- </Component>
- </DirectoryRef>
- </Fragment>
- </Wix>
Advertisement
Add Comment
Please, Sign In to add comment