Product.wxs 3.33 KB
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
 
	<Product Id="{289E27D1-0F89-4F1A-A2C7-9584091B9950}" Name="Web Test Plugin for Web Service Messages - VS 2012" Language="1033" Version="3.0.0.0" Manufacturer="Microsoft IT" UpgradeCode="{BF388820-5266-41AF-BFFE-DC183C37D624}">
		<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
    <Media Id="1" Cabinet="WebServicePlugins1.cab" EmbedCab="yes" />
    
		<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

		<Feature Id="ProductFeature" Title="Web Test Plugin for Web Service Messages" Level="1">
			<ComponentRef Id="WebTestMessageEditor" />
      <ComponentRef Id="WebTestResultTab" />
      <ComponentRef Id="WebTestRuntime" />
		</Feature>
    
    <Property Id="VS2012INSTALLFOLDER" Secure="yes">
      <RegistrySearch Id="VS2012InstallationFolderRegistrySearchId" Type="raw"
                      Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\11.0" Name="InstallDir"></RegistrySearch>
    </Property>

    <Condition Message="Visual Studio 2012 not found.">
      Installed OR VS2012INSTALLFOLDER
    </Condition>
  </Product>
  
  <Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="VS2012INSTALLFOLDER">
        <Directory Id="PrivateAssemblies" Name="PrivateAssemblies">
          <Directory Id="WebTestPlugins" Name="WebTestPlugins">
            <Component Id="WebTestMessageEditor" Guid="{17E95CD2-6B83-46C9-AEE5-019853FF62EC}">
              <File Source="$(var.WebServicePluginForWebTestMessageEditor.TargetPath)" Vital="yes" DiskId="1"/>
            </Component>
          </Directory>
        </Directory>
        <Directory Id="PublicAssemblies" Name="PublicAssemblies">
          <Component Id="WebTestRuntime" Guid="{854C9BA4-3E3E-4D0A-9DB1-DFF8140E834C}">
            <File Source="$(var.WebServicePluginForWebTestRuntime.TargetPath)" Vital="yes" DiskId="1"/>
          </Component>
        </Directory>
      </Directory>

      <Directory Id="AppDataFolder">
        <Directory Id="MSAppDataDir" Name="Microsoft">
          <Directory Id="VSAppDataDir" Name="VisualStudio">
            <Directory Id="VSAppDataVersionDir" Name="11.0">
              <Directory Id="VSAddins" Name="Addins">
                <Component Id="WebTestResultTab" Guid="{27569640-6946-4E4F-8E55-109E99A79DB9}">
                  <RegistryValue KeyPath="yes" Root="HKCU" Key="SOFTWARE\Microsoft\WebServicePlugin" Name="Installed" Type="integer" Value="1" Action="write" />
                  <File Source="$(var.WebServicePluginForWebTestResultTab.TargetPath)" Vital="yes" DiskId="1"/>
                  <File Source="$(var.WebServicePluginForWebTestResultTab.ProjectDir)WebServicePluginForWebTestResultTab.Addin" Vital="yes" DiskId="1"/>
                  <RemoveFolder Id="RemoveMSAppDataDir" Directory="MSAppDataDir" On="uninstall"/>
                  <RemoveFolder Id="RemoveVSAppDataDir" Directory="VSAppDataDir" On="uninstall"/>
                  <RemoveFolder Id="RemoveVSAppDataVersionDir" Directory="VSAppDataVersionDir" On="uninstall"/>
                  <RemoveFolder Id="RemoveVSAddins" Directory="VSAddins" On="uninstall"/>
                </Component>
              </Directory>
            </Directory>
          </Directory>
        </Directory>
      </Directory>
    </Directory>
  </Fragment>
</Wix>