/
Vs2008_Shell.wxs
109 lines (90 loc) · 5.31 KB
/
Vs2008_Shell.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="UTF-8"?>
<?define VsVersion2008Shell = "BEEF"?>
<?define VsVersion = "dummy"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Fragment>
<ComponentGroup Id="CompGroup_NemerleStudio">
<!-- Nemerle Studio (bin folder) -->
<ComponentRef Id="Comp_NemerleStudio" />
<ComponentRef Id="Comp_NemerleStudioPkgdef" />
<ComponentRef Id="Comp_NemerleStudioUI" />
<ComponentRef Id="VisualStudioPackage2008" />
<!-- Templates -->
<ComponentRef Id="Comp_ItemTemplates$(var.VsVersion2008Shell)" />
<ComponentRef Id="Comp_ProjectTemplates$(var.VsVersion2008Shell)" />
<ComponentRef Id="Comp_WebSiteProjectTemplates$(var.VsVersion2008Shell)" />
<ComponentRef Id="Comp_WebSiteItemTemplates$(var.VsVersion2008Shell)" />
</ComponentGroup>
<DirectoryRef Id="Dir_Nver">
<Directory Id="Dir_NemerleStudio" Name="NemerleStudio" FileSource="$(var.DistPath)\vs-shell\">
<Component Id="Comp_NemerleStudio" DiskId="1" Guid="fb2682e1-5194-4577-adf5-1c43b2a52ff8">
<File Id="File_NemerleStudio.exe" Name="NemerleStudio.exe" KeyPath="yes" >
<Shortcut Id="Shortcut_NemerleStudio.exe" Directory="ProgramMenuDir" Name="Nemerle Studio" Advertise="yes" Icon="NemerleStudio.ico">
<Icon Id="NemerleStudio.ico" SourceFile="$(var.DistPath)\vs-shell\NemerleStudio.ico" />
</Shortcut>
</File>
<File Id="File_NemerleStudio.exe.config" Name="NemerleStudio.exe.config" />
<File Id="File_NemerleStudio.bmp" Name="NemerleStudio.bmp" />
<File Id="File_NemerleStudio.ico" Name="NemerleStudio.ico" />
<File Id="File_NemerleStudio.prf" Name="NemerleStudio.prf" />
</Component>
<Directory Id="Dir_PackagesToLoad" Name="PackagesToLoad" FileSource="$(var.DistPath)\vs-shell\PackagesToLoad" >
<Component Id="Comp_NemerleStudioPkgdef" DiskId="1" Guid="fb2682e2-5194-4577-adf5-1c43b2a52ff8">
<File Id="File_NemerleStudio.pkgdef" Name="NemerleStudio.pkgdef" />
<File Id="File_NemerleStudio.pkgundef" Name="NemerleStudio.pkgundef" />
<File Id="File_Nemerle.VisualStudio.pkgdef" Name="Nemerle.VisualStudio.pkgdef" Source="$(var.DistPath)\vs-plugin\Nemerle.VisualStudio.pkgdef"/>
</Component>
<Directory Id="Dir_NemerleStuioUI" Name="1033" FileSource="$(var.DistPath)\vs-shell\PackagesToLoad\1033" >
<Component Id="Comp_NemerleStudioUI" DiskId="1" Guid="fb2682e3-5194-4577-adf5-1c43b2a52ff8">
<File Id="File_NemerleStudioUI.dll" Name="NemerleStudioUI.dll" />
</Component>
</Directory>
</Directory>
<Directory Id="Dir_ShellTemplates" Name="Templates">
<Directory Id="Dir_ShellItemTemplates" Name="ItemTemplates" FileSource="$(var.DistPath)\vs-plugin\Templates">
<?undef VsVersion?>
<?define VsVersion = $(var.VsVersion2008Shell) ?>
<?include ..\Includes\Vs2008_ItemTemplates.wxi ?>
<Directory Id="Dir_ShellItemTemplatesWeb" Name="Web" FileSource="$(var.DistPath)\vs-plugin\Templates">
<?undef VsVersion?>
<?define VsVersion = $(var.VsVersion2008Shell) ?>
<?include ..\Includes\Vs2008_WebSiteItemTemplates.wxi ?>
</Directory>
</Directory>
<Directory Id="Dir_ShellProjectTemplates" Name="ProjectTemplates" FileSource="$(var.DistPath)\vs-plugin\Templates">
<?undef VsVersion?>
<?define VsVersion = $(var.VsVersion2008Shell) ?>
<?include ..\Includes\Vs2008_ProjectTemplates.wxi ?>
<Directory Id="Dir_ShellProjectTemplatesWeb" Name="Web" FileSource="$(var.DistPath)\vs-plugin\Templates">
<?undef VsVersion?>
<?define VsVersion = $(var.VsVersion2008Shell) ?>
<?include ..\Includes\Vs2008_WebSiteProjectTemplates.wxi ?>
</Directory>
</Directory>
</Directory>
</Directory>
</DirectoryRef>
</Fragment>
<Fragment>
<Property Id="VS90SHELL" Secure="yes">
<RegistrySearch Id="VS90ShellSearch" Root="HKLM" Key="SOFTWARE\Microsoft\AppEnv\9.0" Name="AppenvStubDLLInstallPath" Type="raw" />
</Property>
<CustomAction Id="SET_VS90SHELLENV" Return="check" Execute="immediate" Property="VS90SHELLENV" Value="[APPLICATIONFOLDER]\$(var.NVer)\NemerleStudio\NemerleStudio.exe" />
<CustomAction Id="VS90ShellSetup" Property="VS90SHELLENV" ExeCommand="/setup" Execute="deferred" Impersonate="no" />
<!--
<CustomAction Id="VS90ShellRemove" Property="VS90SHELLENV" ExeCommand="/remove" Execute="deferred" Impersonate="no" />
-->
<FeatureRef Id="Feature_NemerleStudio2008" />
<InstallExecuteSequence>
<Custom Action="SET_VS90SHELLENV" After="ValidateProductID">VS90SHELLENV=""</Custom>
<Custom Action="VS90ShellSetup" Before="InstallFinalize"><![CDATA[&Feature_NemerleStudio2008 > 1]]></Custom>
<!--
<Custom Action="VS90ShellSetup" After="MsiPublishAssemblies" Overridable="yes">VS90SHELL</Custom>
<Custom Action="VS90ShellRemove" Before="MsiUnpublishAssemblies" Overridable="yes">VS90SHELL</Custom>
-->
</InstallExecuteSequence>
<UI>
<ProgressText Action="VS90ShellSetup" Template="[1]">Updating Nemerle Studio registration</ProgressText>
</UI>
</Fragment>
</Wix>