OSDN Git Service

Add Clone Dlg
[tortoisegit/TortoiseGitJp.git] / src / TortoiseGitSetup / SubWCRev.wxs
diff --git a/src/TortoiseGitSetup/SubWCRev.wxs b/src/TortoiseGitSetup/SubWCRev.wxs
new file mode 100644 (file)
index 0000000..6377270
--- /dev/null
@@ -0,0 +1,106 @@
+<?xml version='1.0' encoding='windows-1252'?>\r
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">\r
+  <?include Includes.wxi?>\r
+  <Product\r
+  UpgradeCode="E973E6F7-CB9B-4f9e-9C04-52FE03F19BF2"\r
+  Name='SubWCRev standalone app'\r
+  Id='*'\r
+  Language='1033'\r
+  Codepage='1252'\r
+  Version='$(var.VersionNumberInternal)'\r
+  Manufacturer='TortoiseSVN'>\r
+\r
+    <Package Id='*'\r
+                       Keywords="Sourcecontrol;Subversion;TortoiseSVN"\r
+                       Description="Subversion revision tool"\r
+                       Comments="Tool to find the global revision of a Subversion working copy"\r
+                       Manufacturer="$(var.PackageManufacturer)"\r
+                       InstallerVersion="100"\r
+                       Platform="$(var.PackagePlatforms)"\r
+                       Languages="1033"\r
+                       Compressed="yes"\r
+                       SummaryCodepage="1252"/>\r
+\r
+    <Upgrade Id="E973E6F7-CB9B-4f9e-9C04-52FE03F19BF2" >\r
+      <!-- flag is set if the install will trigger an upgrade of an existing install -->\r
+      <UpgradeVersion Property="PREVIOUSVERSIONSINSTALLED" Maximum="$(var.VersionNumberInternal)" IncludeMaximum="no" />\r
+    </Upgrade>\r
+\r
+       <Property Id="TSVN">\r
+               <RegistrySearch Id="PreviousInstallLocationRegistrySearch" Root="HKLM" Key="Software\[Manufacturer]" Name="Directory" Type="raw"/>\r
+       </Property>\r
+\r
+       <Property Id="ALLUSERS">1</Property>\r
+\r
+       <Condition Message="TortoiseSVN is installed on this machine. [ProductName] is already part of TortoiseSVN!">TSVN=""</Condition>\r
+\r
+    <Media Id='1' Cabinet='SubWCRev.cab' EmbedCab='yes' CompressionLevel="high" />\r
+\r
+    <Directory Id='TARGETDIR' Name='SourceDir'>\r
+      <Directory Id='ProgramFilesFolder' Name='PFiles'>\r
+        <Directory Id='INSTALLDIR' Name='SubWCRev' >\r
+          <Component Id='Main' Guid='EEE2185B-817B-4482-9D57-2D17291DCAEF'>\r
+\r
+            <File Id='SUBWCREV' Name='SubWCRev.exe' DiskId='1' Source='..\..\bin\releasestatic\bin\SubWCRev.exe' Vital='yes'></File>\r
+            <File Id="SUBWCREVCOM" Name="SubWCRevCOM.exe" DiskId="1" Source="..\..\bin\releasestatic\bin\SubWCRevCOM.exe" />\r
+\r
+            <!-- register the SubWCRev COM-Object -->\r
+            <RegistryKey Root="HKLM" Key="Software\Classes\CLSID\{$(var.GuidSubWCRev)}" Action="createAndRemoveOnUninstall" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\CLSID\{$(var.GuidSubWCRev)}\LocalServer32" Value="[INSTALLDIR]\SubWCRevCOM.exe /automation" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\CLSID\{$(var.GuidSubWCRev)}\ProgID" Value="SubWCRev.object.1" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\CLSID\{$(var.GuidSubWCRev)}\VersionIndependentProgID" Value="SubWCRev.object" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\CLSID\{$(var.GuidSubWCRev)}\TypeLib" Value="{$(var.GuidSubWCRevTypeLib)}" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\CLSID\{$(var.GuidSubWCRev)}" Value="SubWCRev Server Object" Type="string" />\r
+\r
+            <RegistryKey Root="HKLM" Key="Software\Classes\SubWCRev.object" Action="createAndRemoveOnUninstall" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\SubWCRev.object" Value="SubWCRev Server Object" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\SubWCRev.object\CLSID" Value="{$(var.GuidSubWCRev)}" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\SubWCRev.object\CurVer" Value="SubWCRev.object.1" Type="string" />\r
+\r
+            <RegistryKey Root="HKLM" Key="Software\Classes\SubWCRev.object.1" Action="createAndRemoveOnUninstall" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\SubWCRev.object.1" Value="SubWCRev Server Object" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\SubWCRev.object.1\CLSID" Value="{$(var.GuidSubWCRev)}" Type="string" />\r
+\r
+            <RegistryKey Root="HKLM" Key="Software\Classes\TypeLib\{$(var.GuidSubWCRevTypeLib)}" Action="createAndRemoveOnUninstall" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{$(var.GuidSubWCRevTypeLib)}\1.0" Value="LibSubWCRev" Type="string" />\r
+            <RegistryKey Root="HKLM" Key="Software\Classes\TypeLib\{$(var.GuidSubWCRevTypeLib)}\1.0\0" Action="createAndRemoveOnUninstall" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{$(var.GuidSubWCRevTypeLib)}\1.0\0\win32" Value="[INSTALLDIR]\SubWCRevCOM.exe" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{$(var.GuidSubWCRevTypeLib)}\1.0\FLAGS" Value="0" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\TypeLib\{$(var.GuidSubWCRevTypeLib)}\1.0\HELPDIR" Value="[INSTALLDIR]" Type="string" />\r
+\r
+            <RegistryKey Root="HKLM" Key="Software\Classes\Interface\{$(var.GuidSubWCRevInterface)}" Action="createAndRemoveOnUninstall" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\Interface\{$(var.GuidSubWCRevInterface)}" Value="ISubWCRev" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\Interface\{$(var.GuidSubWCRevInterface)}\ProxyStubClsid" Value="{00020424-0000-0000-C000-000000000046}" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\Interface\{$(var.GuidSubWCRevInterface)}\ProxyStubClsid32" Value="{00020424-0000-0000-C000-000000000046}" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\Interface\{$(var.GuidSubWCRevInterface)}\TypeLib" Value="{$(var.GuidSubWCRevTypeLib)}" Type="string" />\r
+            <RegistryValue Root="HKLM" Key="Software\Classes\Interface\{$(var.GuidSubWCRevInterface)}\TypeLib" Name="Version" Value="1.0" Type="string" />\r
+\r
+            <Environment Id="Environment" Name="PATH" Part="last" System="yes" Value="[INSTALLDIR]" Action="set" />\r
+          </Component>\r
+        </Directory>\r
+      </Directory>\r
+\r
+    </Directory>\r
+\r
+       <WixVariable Id="WixUILicenseRtf" Value="include\TSVN_eula.rtf" />\r
+       <WixVariable Id="WixUIBannerBmp" Value="include\BannerStatic.jpg" />\r
+       <WixVariable Id="WixUIDialogBmp" Value="include\DialogStatic.jpg" />\r
+       <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />\r
+       <UIRef Id="WixUI_InstallDir" />\r
+\r
+    <Feature Id='Complete' Title='SubWCRev' Description='SubWCRev, the main component'\r
+      Display='expand' Level='1' ConfigurableDirectory='INSTALLDIR'>\r
+      <Feature Id='Main' Title='Program' Description='SubWCRev, the main component.' Level='1'>\r
+        <ComponentRef Id='Main' />\r
+      </Feature>\r
+    </Feature>\r
+\r
+    <InstallExecuteSequence>\r
+      <!-- AppSearch must be done before RemoveExistingProducts and before FindRelatedProducts -->\r
+      <AppSearch Sequence="1"></AppSearch>\r
+      <LaunchConditions After="AppSearch" />\r
+      <RemoveExistingProducts After="InstallValidate"><![CDATA[PREVIOUSVERSIONSINSTALLED]]></RemoveExistingProducts>\r
+    </InstallExecuteSequence>\r
+\r
+  </Product>\r
+</Wix>\r