Skip to content

Instantly share code, notes, and snippets.

@coltfinger
Created September 13, 2017 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coltfinger/5eda0768fcfd07239fc244089d436226 to your computer and use it in GitHub Desktop.
Save coltfinger/5eda0768fcfd07239fc244089d436226 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Product Id="*" Name="UMRCH" Language="1033" Version="1.0.0.0" Manufacturer="Sample" UpgradeCode="ee45fb60-6741-4424-8136-dfc0d679629a">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
</Product>
<!-- Defining Office14 directories -->
<Fragment>
<Directory Id="ProgramFilesFolder" Name="Programfiles">
<Directory Id="MSOFFICEFOLDER" Name="Microsoft Office">
<Directory Id="OFFICE14FOLDER" Name="Office14" />
<Directory Id="LIBRARY" Name="Library">
<Directory Id="MAKRO" Name="Makro">
</Directory>
</Directory>
</Directory>
</Directory>
</Fragment>
<!-- Defining Company directories-->
<Fragment>
<Directory Id="WindowsVolume" Name="WindowsVolume">
<Directory Id="!(bind.property.Manufacturer)" Name="!(bind.property.Manufacturer)">
<Directory Id="UMRCH" Name="!(bind.property.ProductName)" />
<Directory Id="DATA" Name="data">
<Directory Id="VERSION" Name="version" />
</Directory>
</Directory>
</Directory>
</Fragment>
<!-- Adding files to Office14 folders -->
<Fragment>
<DirectoryRef Id="OFFICE14FOLDER">
<Component Id="umrch.hlp" Guid="{0935ABA2-527F-40B2-9090-C7BB5DD9816F}">
<File Id="umrch.hlp" Source="MySourceFiles\UMRCH.HLP" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="LIBRARY">
<Component Id="umrch.xla" Guid="{D2E4DCA4-1CEE-4468-9516-64B404E472D8}">
<File Id="umrch.xla" Source="MySourceFiles\umrch.xla" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="MAKRO">
<Component Id="umrch.xla" Guid="{ECF43E0D-421E-484C-80A5-219680DC26A3}">
<File Id="umrch.xla" Source="MySourceFiles\umrch.xla" KeyPath="yes" Checksum="yes"/>
</Component>
</DirectoryRef>
<!-- Adding files to Company folders-->
<DirectoryRef Id="DATA">
<Component Id="DATAfiles" Guid="{216E9C7F-F04A-4237-A447-8DEB5C9A515F}">
<File Id="defumrch.dat" Source="MySourceFiles\defumrch.dat" KeyPath="yes" Checksum="yes"/>
<File Id="LL_UMRCH.DAT" Source="MySourceFiles\LL_UMRCH.DAT" KeyPath="no" Checksum="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="VERSION">
<Component Id="VERSIONfiles" Guid="{1354B320-409E-43D0-AAA1-B54754FEFF1A}">
<File Id="umrch_Readme.doc" Source="MySourceFiles\umrch_Readme.doc" KeyPath="yes" Checksum="yes"/>
<File Id="umrch_Version.txt" Source="MySourceFiles\umrch_Version.txt" KeyPath="no" Checksum="yes"/>
</Component>
</DirectoryRef>
<!-- Adding files to Windows folder-->
<DirectoryRef Id="WindowsFolder">
<Component Id="WINDOWSfiles" Guid="">
<File Id="umrch.dll" Source="MySourceFiles\umrch.dll" KeyPath="yes" Checksum="yes"/>
<File Id="umrch.lib" Source="MySourceFiles\umrch.lib" KeyPath="no" Checksum="yes"/>
<File Id="umrch.mif" Source="MySourceFiles\umrch.mif" KeyPath="no" Checksum="yes"/>
</Component>
</DirectoryRef>
</Fragment>
<Fragment>
<!-- Tell WiX to install the files -->
<Feature Id="xlahelp" Title="XLA and help files" Level="1">
<ComponentRef Id="umrch.hlp" />
<ComponentRef Id="umrch.xla" />
</Feature>
<Feature Id="COMPANYfiles" Title="Company files" Level="1">
<ComponentRef Id="DATAfiles" />
<ComponentRef Id="VERSIONfiles" />
</Feature>
<Feature Id="WindowsFiles" Title="Windows files" Level="1">
<ComponentRef Id="WINDOWSfiles" />
</Feature>
<Feature Id="Registry" Title="umrch" Level="1">
<ComponentGroupRef Id="Registry"/>
</Feature>
</Fragment>
</Wix>
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Fragment>
<ComponentGroup Id="Registry">
<!-- LoadlistFile entry -->
<Component Id="Registry_LoadlistFile" Directory="TARGETDIR" Guid="{A290D508-16B8-4A49-830B-701363015449}">
<RegistryKey Root="HKLM" Key="SOFTWARE\!(bind.property.Manufacturer)_VA\DYSCO\!(bind.property.ProductName)">
<RegistryValue Type="string" Name="LoadlistFile" Value="C:\company\Umrch\data\ll_umrch.dat" KeyPath="yes"/>
</RegistryKey>
</Component>
<!-- ModlistFile entry -->
<Component Id="Registry_ModlistFile" Directory="TARGETDIR" Guid="{FA8F8EDE-AA39-46D2-85CD-0F2411A769FB}">
<RegistryKey Root="HKLM" Key="SOFTWARE\!(bind.property.Manufacturer)_VA\DYSCO\!(bind.property.ProductName)">
<RegistryValue Type="string" Name="ModlistFile" Value="" KeyPath="yes"/>
</RegistryKey>
</Component>
<!-- ProgramKey entry -->
<Component Id="Registry_ProgramKey" Directory="TARGETDIR" Guid="{7AD35830-7091-44BD-ABDD-5934C104BC9E}">
<RegistryKey Root="HKLM" Key="SOFTWARE\!(bind.property.Manufacturer)_VA\DYSCO\!(bind.property.ProductName)">
<RegistryValue Type="string" Name="ProgramKey" Value="UMRCH" KeyPath="yes"/>
</RegistryKey>
</Component>
<!-- VersionKey entry -->
<Component Id="Registry_VersionKey" Directory="TARGETDIR" Guid="{4FF3380E-CB71-487B-92AD-F505A1505EE6}">
<RegistryKey Root="HKLM" Key="SOFTWARE\!(bind.property.Manufacturer)_VA\DYSCO\!(bind.property.ProductName)">
<RegistryValue Type="string" Name="VersionKey" Value="1.0-PC" KeyPath="yes"/>
</RegistryKey>
</Component>
</ComponentGroup>
</Fragment>
</Wix>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment