Skip to content

Instantly share code, notes, and snippets.

@pyeremenko
Last active August 29, 2015 14:21
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 pyeremenko/891eceb779197e4be240 to your computer and use it in GitHub Desktop.
Save pyeremenko/891eceb779197e4be240 to your computer and use it in GitHub Desktop.
Sample.wxs
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
<Product Name='my_test 0.1' Id='77777777-8888-4a44-acd8-95fa050ba96f' UpgradeCode='77777777-8888-42c6-bdfb-538e9d189f59'
Language='1033' Codepage='1252' Version='0.1.2' Manufacturer='test.com'>
<Package Id='*' Keywords='Installer' Description="my_test 0.1 Installer"
Comments='my_test is a tool ...' Manufacturer='test.com'
InstallerVersion='200' Languages='1033' Compressed='yes' SummaryCodepage='1252'
/>
<Media Id='1' Cabinet='Sample.cab' EmbedCab='yes' DiskPrompt="CD-ROM #1" />
<Property Id='DiskPrompt' Value="my_test 0.1 Installation [1]" />
<Property Id="INSTALLDIR">
<IniFileSearch Id='my_testIniFile' Type='directory' Name='my_test.ini' Section='Sample' Key='InstallDir' Field='1' />
</Property>
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='ProgramFilesFolder' Name='PFiles'>
<Directory Id='test' Name='test'>
<Directory Id='INSTALLDIR' Name='my_test'>
<Component Id='EnvVariable' Guid='77777777-8888-892f-4fb0-8d9f1d62571b'>
<Environment Id='UpdateTest' Name='TEST' Action='set' Permanent='yes' System='yes' Part='all' Value='TestTestTest' />
</Component>
<Component Id='MainExecutable' Guid='77777777-8888-4fb0-892f-d62579f11b8d'>
<File Id='my_testexe' Name='hello.exe' DiskId='1' Source='hello.exe' KeyPath='yes' />
</Component>
</Directory>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder" Name="Programs">
<Directory Id="ProgramMenuDir" Name="test.com">
<Component Id="ProgramMenuDir" Guid="77777777-8888-4ec8-8f01-30727f616f63">
<RemoveFolder Id='ProgramMenuDir' On='uninstall'/>
<RegistryValue Root='HKCU' Key='Software\[Manufacturer]\[ProductName]' Type='string' Value='' KeyPath='yes' />
</Component>
</Directory>
</Directory>
<Directory Id="DesktopFolder" Name="Desktop" />
</Directory>
<Feature Id='Complete' Level='1'>
<ComponentRef Id='MainExecutable' />
<ComponentRef Id='ProgramMenuDir' />
</Feature>
<!--Icon Id="hello.exe" SourceFile="hello.exe" /-->
</Product>
</Wix>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment