Feedback

C# - Windows Installer XML - Wix ToolSet

Veröffentlicht von am 2/26/2014
(0 Bewertungen)
Tool to create your own Windows installation routine.

Version : v3.8

Download & Install: http://wixtoolset.org/
- Restart Visual Studio
- Add 'New Project' to your Solution
- Choose Windows Installer XML (SetupProject)
- Add Reference to YourSeptupInstaller, navigate to Projects tab, click on YourApplication, click Add button, press OK

- Replace XAML-Code with the following:


Info: Create GUID
Visual Studio > Tools > Create GUID > 4.Registry Format > New GUID > Copy
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    
	<Product Id="*" Name="InstallerName" Language="1033" Version="1.0.0.0" Manufacturer="YourManu" UpgradeCode="NewGUID">
		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
		<MediaTemplate EmbedCab="yes"/>
		<Feature Id="ProductFeature" Title="Installer" Level="1">
			<ComponentGroupRef Id="ProductComponents" />
		</Feature>    
	</Product>
	<Fragment>
		<Directory Id="TARGETDIR" Name="SourceDir">
			<Directory Id="ProgramFilesFolder">
				<Directory Id="INSTALLFOLDER" Name="YourApplication" />
			</Directory>
		</Directory>
	</Fragment>
	<Fragment>
		<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
      <Component Guid="YourGUID">
        <File Source="$(var.YourApplication.TargetPath)" KeyPath="yes">         
        </File>
      </Component>      
		</ComponentGroup>
	</Fragment>  
</Wix>
Abgelegt unter windowsinstallerxml, setup, installer, wix.

Kommentare zum Snippet

 

Logge dich ein, um hier zu kommentieren!