Feedback

Windows Installer XML – Wix ToolSet

Sprache: C#

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 [b]Windows Installer XML[/b] (SetupProject) - [b]Add Reference[/b] to YourSeptupInstaller, navigate to [b]Projects[/b] tab, click on YourApplication, click [b]Add[/b] button, press [b]OK[/b] - Replace XAML-Code with the following: [b]Info[/b]: 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>
<?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>