summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2013-06-11 16:31:10 +0200
committerAndoni Morales Alastruey <ylatuya@gmail.com>2013-06-11 17:40:30 +0200
commit74ab63fd236713a8d5bc87d3e83c0bbd9012d4b7 (patch)
tree3752142d5863f63ae655d5f21a813b525dc8e56f /data
parent681e21b633a607b60423054d584abfdf5de8e9ed (diff)
wix: add support for installing VS templates
Diffstat (limited to 'data')
-rw-r--r--data/wix/utils.wxs57
1 files changed, 57 insertions, 0 deletions
diff --git a/data/wix/utils.wxs b/data/wix/utils.wxs
new file mode 100644
index 00000000..951ba8ca
--- /dev/null
+++ b/data/wix/utils.wxs
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
+ <Fragment>
+ <Property Id="VS2010_PROJECTTEMPLATES_DIR">
+ <RegistrySearch Id="VS2010DevEnvForProjectTemplatesSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS" Name="EnvironmentDirectory" Type="raw">
+ <DirectorySearch Id="VS2010ProjectTemplatesPathSearch" Path="ProjectTemplates" Depth="1" />
+ </RegistrySearch>
+ </Property>
+ <Property Id="VS_PROJECTTEMPLATES_DIR">
+ <RegistrySearch Id="VC2010DevEnvForProjectTemplatesSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\SxS\VC7" Name="10.0" Type="directory">
+ <DirectorySearch Id="VS2010ProjectsExpress" Path="Express" Depth="1">
+ <DirectorySearch Id="VS2010ProjectTemplatesPathSearch" Path="VCProjects" Depth="1" />
+ </DirectorySearch>
+ </RegistrySearch>
+ </Property>
+ </Fragment>
+
+ <Fragment>
+ <Property Id="VS_WIZARDS_DIR">
+ <RegistrySearch Id="VS2010DevEnvForWIzardsSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\SxS\VC7" Name="10.0" Type="directory">
+ <DirectorySearch Id="VS2010WizardsPathSearch" Path="VCWizards" Depth="1" />
+ </RegistrySearch>
+ </Property>
+ </Fragment>
+
+ <Fragment>
+ <Property Id="VS2010DEVENV">
+ <RegistrySearch Id="VS2010DevEnvSearch" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS" Name="EnvironmentPath" Type="raw" />
+ </Property>
+ </Fragment>
+
+ <Fragment>
+ <Property Id="VC2010EXPRESS_IDE">
+ <ComponentSearch Id="SearchForVcExpressIde2010Component" Guid="B455E8D3-90CB-47F6-AB7B-9B31E5DE6266" Type="file">
+ <FileSearch Id="VcExpressIde2010" Name="vcexpress.exe"/>
+ </ComponentSearch>
+ </Property>
+ </Fragment>
+
+ <Fragment>
+ <CustomAction Id="VS2010InstallVSTemplates" Property="VS2010DEVENV" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" />
+ <PropertyRef Id="VS2010DEVENV" />
+
+ <InstallExecuteSequence>
+ <Custom Action="VS2010InstallVSTemplates" Before="InstallFinalize" Overridable="yes">VS2010DEVENV</Custom>
+ </InstallExecuteSequence>
+ </Fragment>
+
+ <Fragment>
+ <CustomAction Id="VC2010InstallVSTemplates" Property="VC2010EXPRESS_IDE" ExeCommand="/InstallVSTemplates" Execute="deferred" Return="ignore" Impersonate="no" />
+ <PropertyRef Id="VC2010EXPRESS_IDE" />
+
+ <InstallExecuteSequence>
+ <Custom Action="VC2010InstallVSTemplates" Before="InstallFinalize" Overridable="yes">VC2010EXPRESS_IDE</Custom>
+ </InstallExecuteSequence>
+ </Fragment>
+</Wix>