User Tools

Site Tools

blog:2023-09-27_wix_install



2023-09-27 WiX: Install

  • WiX3 install for Visual Studio 2019

Install

Test Code

  • <?xml version="1.0" encoding="UTF-8"?>
    <?define Name = "Test APP" ?>
    <?define Description = "Test app desktop application." ?>
    <?define Manufacturer = "Test Corp" ?>
    <?define ProductName='My Product Name' ?>
    <?define ProductVersion='0.1.0.1' ?>
    <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    	<Product Id="*" Name="$(var.Name)" Language="1033" Version="$(var.ProductVersion)" Manufacturer="$(var.Manufacturer)" UpgradeCode="3ec8042e-562c-4d43-9555-80b9ef0d4f2d">
    		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    
    		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    		<MediaTemplate />
    
    		<Feature Id="ProductFeature" Title="Test_Install" Level="1">
    			<ComponentGroupRef Id="ProductComponents" />
    		</Feature>
    	</Product>
    
    	<Fragment>
    		<Directory Id="TARGETDIR" Name="SourceDir">
    			<Directory Id="ProgramFilesFolder">
    				<Directory Id="INSTALLFOLDER" Name="Test_Install" />
    			</Directory>
    		</Directory>
    	</Fragment>
    
    	<Fragment>
    		<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
    			<!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
    			<!-- <Component Id="ProductComponent"> -->
    				<!-- TODO: Insert files, registry keys, and other resources here. -->
    			<!-- </Component> -->
    		</ComponentGroup>
    	</Fragment>
    </Wix>
    

TAGS

  • 51 person(s) visited this page until now.

Permalink blog/2023-09-27_wix_install.txt · Last modified: 2023/09/27 14:52 by jethro

oeffentlich