Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
- <?define ProductManufacturer = "ACME, Inc." ?>
- <?define ProductName = "Dynamite" ?>
- <?define ProductVersion = "0.0.0.1" ?>
- <?define ProductHomeURL = "http://www.ex-parrot.com/pete/upside-down-ternet.html" ?>
- <?define ProductID = "{01234567-8901-2345-6789-012345678901}" ?>
- <?define ProductUpgradeCode = "{23456789-0123-4567-8901-234567890123}" ?>
- <?define ProductLanguage = "1033" ?>
- <?define ProductPlatform = "x86" ?>
- <?define ProductInstaller = "Dynamite-setup.exe" ?>
- <?define ProductInstallerParams = "/Silent_install_parameters /go_here" ?>
- <?define ProductUninstallerDirectory = "INSTALL_BASE_DIR" ?>
- <?define ProductUninstallerProgram = "uninstall.exe" ?>
- <?define ProductUninstallerParams = "/Silent_uninstall_parameters /go_here" ?>
- <Product Id="$(var.ProductID)" Language="$(var.ProductLanguage)" Manufacturer="$(var.ProductManufacturer)" Name="$(var.ProductName)" UpgradeCode="$(var.ProductUpgradeCode)" Version="$(var.ProductVersion)">
- <Package Compressed="yes" Description="$(var.ProductName) $(var.ProductVersion)" InstallerVersion="400" Keywords="Installer,MSI,Database,$(var.ProductName)" Languages="$(var.ProductLanguage)" Manufacturer="$(var.ProductManufacturer)" Platform="$(var.ProductPlatform)" ReadOnly="no" />
- <Binary Id="APP_SETUP_EXE" SourceFile="$(var.ProductInstaller)" />
- <CustomAction Id="APP_SETUP_EXECUTE" BinaryKey="APP_SETUP_EXE" ExeCommand="$(var.ProductInstallerParams)" Execute="deferred" Impersonate="no" Return="check" />
- <CustomAction Id="APP_UNINS_EXECUTE" Directory="$(var.ProductUninstallerDirectory)" ExeCommand=""[$(var.ProductUninstallerDirectory)]$(var.ProductUninstallerProgram)" $(var.ProductUninstallerParams)" Execute="deferred" Impersonate="no" Return="check">(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</CustomAction>
- <Feature Id="DefaultFeature" Description="Default Feature" Display="hidden" Level="1" Title="$(var.ProductName) $(var.ProductVersion)" />
- <Media Id="1" Cabinet="APP_DATA_1.cab" EmbedCab="yes" CompressionLevel="high" />
- <Property Id="ALLUSERS" Value="1" />
- <Property Id="ARPNOMODIFY" Value="1" />
- <Property Id="ARPNOREPAIR" Value="1" />
- <!-- Property below controls whether the MSI package shows up under Add/Remove Programs / Programs and Features -->
- <Property Id="ARPSYSTEMCOMPONENT" Value="1" />
- <Property Id="ARPURLINFOABOUT" Value="$(var.ProductHomeURL)" />
- <Property Id="LIMITUI" Value="1" />
- <Property Id="NOCOMPANYNAME" Value="1" />
- <Property Id="NOUSERNAME" Value="1" />
- <InstallExecuteSequence>
- <Custom Action="APP_SETUP_EXECUTE" Before="CreateFolders">NOT REMOVE~="ALL"</Custom>
- <Custom Action="APP_UNINS_EXECUTE" Before="RemoveFiles">Installed AND (NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")</Custom>
- <RemoveRegistryValues Sequence="4999" />
- <RemoveExistingProducts Before="InstallInitialize" />
- </InstallExecuteSequence>
- <UI />
- <Upgrade Id="$(var.ProductUpgradeCode)">
- <UpgradeVersion Property="UPGRADE_CURRENT_CODE" Maximum="$(var.ProductVersion)" IncludeMaximum="no" />
- </Upgrade>
- <Directory Id="TARGETDIR" Name="SourceDir">
- <Directory Id="ProgramFilesFolder">
- <Directory Id="INSTALL_BASE_DIR" Name="Dynamite">
- <Component Id="comp.INSTALL_BASE_DIR" KeyPath="yes" Guid="45678901-2345-6789-0123-456789012345" Feature="DefaultFeature">
- <RemoveFolder Id="rf.INSTALL_BASE_DIR" On="uninstall" />
- </Component>
- <Component Id="comp.REMOVE_UNINSTALL_ENTRY" Guid="67890123-4567-8901-2345-678901234567" Location="either" KeyPath="yes" Feature="DefaultFeature">
- <RemoveRegistryKey Action="removeOnInstall" Id="UninstallKey" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Dynamite" Root="HKLM" />
- </Component>
- </Directory>
- </Directory>
- </Directory>
- </Product>
- </Wix>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement