The data contained in this repository can be downloaded to your computer using one of several clients.
Please see the documentation of your version control software client for more information.
Please select the desired protocol below to get the URL.
This URL has Read-Only access.
main_repo / tools / msvs / msi / product.wxs @ 0604d9ab
History | View | Annotate | Download (11.3 KB)
1 |
<?xml version="1.0" encoding="UTF-8"?> |
---|---|
2 |
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" |
3 |
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"> |
4 |
|
5 |
<?define ProductName = "Node.js" ?> |
6 |
<?define ProductDescription = "Node.js" ?> |
7 |
<?define ProductAuthor = "Joyent, Inc. and other Node contributors" ?> |
8 |
|
9 |
<?define RepoDir="$(var.ProjectDir)..\..\..\" ?> |
10 |
<?define SourceDir="$(var.RepoDir)\$(var.Configuration)\" ?> |
11 |
|
12 |
<Product Id="*" |
13 |
Name="$(var.ProductName)" |
14 |
Language="1033" |
15 |
Version="$(var.ProductVersion)" |
16 |
Manufacturer="$(var.ProductAuthor)" |
17 |
UpgradeCode="1d60944c-b9ce-4a71-a7c0-0384eb884baa"> |
18 |
|
19 |
<Package InstallerVersion="200" Compressed="yes" /> |
20 |
|
21 |
<Media Id="1" Cabinet="media1.cab" EmbedCab="yes" /> |
22 |
|
23 |
<MajorUpgrade AllowSameVersionUpgrades="yes" |
24 |
DowngradeErrorMessage="A later version of node.js is already installed. Setup will now exit." /> |
25 |
|
26 |
<Icon Id="node.exe" SourceFile="$(var.RepoDir)\src\res\node.ico"/> |
27 |
<Property Id="ARPPRODUCTICON" Value="node.exe" /> |
28 |
<Property Id="ApplicationFolderName" Value="nodejs" /> |
29 |
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /> |
30 |
|
31 |
<Property Id="INSTALLDIR"> |
32 |
<RegistrySearch Id='InstallPathRegistry' Type='raw' |
33 |
Root='HKCU' Key='SOFTWARE\Joyent\Node.js\Installer' Name='PreviousPath' /> |
34 |
</Property> |
35 |
|
36 |
<Feature Id="nodejs" Title="node.js engine" Level="1" Description="$(var.ProductDescription)" Absent="disallow"> |
37 |
<ComponentGroupRef Id="allfiles" /> |
38 |
<ComponentGroupRef Id="Product.Generated" /> |
39 |
</Feature> |
40 |
|
41 |
<Feature Id="nodejs.shortcuts" Title="node.js shortcuts" Level="1" Description="$(var.ProductDescription) Shortcuts"> |
42 |
<Feature Id="nodejs.shortcuts.application" Title="Application Shortcuts" Level="1" Description="$(var.ProductDescription) standard application shortcuts"> |
43 |
<ComponentGroupRef Id="application.shortcuts"/> |
44 |
</Feature> |
45 |
<Feature Id="nodejs.shortcuts.internet" Title="Internet Shortcuts" Level="1" Description="$(var.ProductDescription) internet shortcuts to the project's website and online documentation for this version"> |
46 |
<ComponentGroupRef Id="internet.shortcuts"/> |
47 |
</Feature> |
48 |
</Feature> |
49 |
|
50 |
<Directory Id="TARGETDIR" Name="SourceDir"> |
51 |
|
52 |
<Directory Id="ProgramMenuFolder"> |
53 |
<Directory Id="ApplicationProgramsFolder" Name="Node.js ($(var.Platform))"/> |
54 |
</Directory> |
55 |
|
56 |
<Directory Id="$(var.ProgramFilesFolderId)"> |
57 |
<Directory Id="INSTALLDIR" Name="nodejs"> |
58 |
<Directory Id="NodeModulesFolder" Name="node_modules"> |
59 |
<Directory Id="NPMFolder" Name="npm"> |
60 |
<Component Id="npmrc" Guid="55B2B03F-8F32-4D62-A54A-FA428615591D"> |
61 |
<File Id="filenpmrc" KeyPath="yes" Source="$(var.RepoDir)\tools\msvs\npm\npmrc" /> |
62 |
</Component> |
63 |
</Directory> |
64 |
</Directory> |
65 |
<Component Id="nodeexe" Guid="AEC0F08E-89B3-4C35-A286-8DB8598597F2"> |
66 |
<File Id="filenodeexe" KeyPath="yes" Source="$(var.SourceDir)\node.exe" /> |
67 |
<?if $(var.NoETW) != 1 ?> |
68 |
<File Id="node_etw_provider_man" Name="node_etw_provider.man" Source="$(var.RepoDir)\src\res\node_etw_provider.man" > |
69 |
<util:EventManifest MessageFile="[INSTALLDIR]node.exe" ResourceFile="[INSTALLDIR]node.exe"/> |
70 |
</File> |
71 |
<?endif?> |
72 |
<?if $(var.NoPerfCtr) != 1 ?> |
73 |
<File Id="node_perfctr_provider_man" Name="node_perfctr_provider.man" Source="$(var.RepoDir)\src\res\node_perfctr_provider.man" > |
74 |
<util:PerfCounterManifest ResourceFileDirectory="[INSTALLDIR]"/> |
75 |
</File> |
76 |
<?endif?> |
77 |
<Environment Id="npm_env" |
78 |
Action="set" |
79 |
Name="PATH" |
80 |
Part="last" |
81 |
System="no" |
82 |
Value="[AppDataFolder]npm\" /> |
83 |
<Environment Id="node_env" |
84 |
Action="set" |
85 |
Name="PATH" |
86 |
Part="last" |
87 |
System="yes" |
88 |
Value="[INSTALLDIR]" /> |
89 |
</Component> |
90 |
<Component Id="npmcmd" Guid="31e9986d-74cd-44e1-878c-194d3e997d32"> |
91 |
<File Id="filenpmcmd" KeyPath="yes" Source="$(var.NPMSourceDir)\bin\npm.cmd" /> |
92 |
</Component> |
93 |
<Component Id="npmsh" Guid="57754e12-9269-4198-a38c-2c098bf5276e"> |
94 |
<File Id="filenpmsh" KeyPath="yes" Source="$(var.NPMSourceDir)\bin\npm" /> |
95 |
</Component> |
96 |
<Component Id="nodejsvars" Guid="*"> |
97 |
<File Id="filenodejsvars" KeyPath="yes" Source="$(var.RepoDir)\tools\msvs\nodejsvars.bat" /> |
98 |
</Component> |
99 |
<Component Id="noderegistry" Guid="*" > |
100 |
<RegistryKey Root="HKCU" Key="Software"> |
101 |
<RegistryKey Key="Joyent"> |
102 |
<RegistryKey Key="Node.js"> |
103 |
<RegistryKey Key="Installer"> |
104 |
<RegistryValue Name="PreviousPath" Type="string" Value="[INSTALLDIR]" KeyPath="yes" /> |
105 |
</RegistryKey> |
106 |
</RegistryKey> |
107 |
</RegistryKey> |
108 |
</RegistryKey> |
109 |
</Component> |
110 |
</Directory> |
111 |
</Directory> |
112 |
</Directory> |
113 |
|
114 |
<DirectoryRef Id="ApplicationProgramsFolder"> |
115 |
<Component Id="ApplicationShortcut" Guid="9b1ab94a-8f54-4f19-a5c4-b890de474162"> |
116 |
<Shortcut Id="ApplicationStartMenuShortcut" Name="Node.js" |
117 |
Description="$(var.ProductDescription)" Target="[INSTALLDIR]node.exe" |
118 |
WorkingDirectory="INSTALLDIR"/> |
119 |
<Shortcut Id="NodePromptStartMenuShortcut" Name="Node.js command prompt" |
120 |
Description="Node.js Command Prompt" Target="[%ComSpec]" |
121 |
Arguments='/k "[INSTALLDIR]nodejsvars.bat"' |
122 |
Show="normal" |
123 |
WorkingDirectory="INSTALLDIR"/> |
124 |
<Shortcut Id="UninstallProduct" |
125 |
Name="Uninstall Node.js" |
126 |
Target="[SystemFolder]msiexec.exe" |
127 |
Arguments="/x [ProductCode]" |
128 |
Description="Uninstalls $(var.ProductName)" /> |
129 |
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall"/> |
130 |
<RegistryValue Root="HKCU" Key="Software\Joyent\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/> |
131 |
</Component> |
132 |
<Component Id="InternetShortcuts" Guid="3351B877-49BA-4BC0-BF5E-21BA623FD07C"> |
133 |
<util:InternetShortcut Id="OnlineWebsiteShortcut" |
134 |
Name="Node.js website" |
135 |
Target="http://nodejs.org" |
136 |
Type="url"/> |
137 |
<util:InternetShortcut Id="OnlineDocumentationShortcut" |
138 |
Name="Node.js documentation" |
139 |
Target="http://nodejs.org/dist/v$(var.ProductVersion)/docs/api/" |
140 |
Type="url"/> |
141 |
<RegistryValue Root="HKCU" Key="Software\Joyent\$(var.ProductName)" Name="installed" Type="integer" Value="1" KeyPath="yes"/> |
142 |
</Component> |
143 |
</DirectoryRef> |
144 |
|
145 |
<ComponentGroup Id="allfiles"> |
146 |
<ComponentRef Id="nodeexe"/> |
147 |
<ComponentRef Id="npmcmd"/> |
148 |
<ComponentRef Id="npmsh"/> |
149 |
<ComponentRef Id="npmrc" /> |
150 |
<ComponentGroupRef Id="NPMFiles" /> |
151 |
<ComponentRef Id="nodejsvars" /> |
152 |
<ComponentRef Id="noderegistry" /> |
153 |
</ComponentGroup> |
154 |
|
155 |
<ComponentGroup Id="application.shortcuts"> |
156 |
<ComponentRef Id="ApplicationShortcut" /> |
157 |
</ComponentGroup> |
158 |
|
159 |
<ComponentGroup Id="internet.shortcuts"> |
160 |
<ComponentRef Id="InternetShortcuts"/> |
161 |
</ComponentGroup> |
162 |
|
163 |
<UI Id="NodeInstallUI"> |
164 |
<TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" /> |
165 |
<TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" /> |
166 |
<TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9" Bold="yes" /> |
167 |
|
168 |
<Property Id="DefaultUIFont" Value="WixUI_Font_Normal" /> |
169 |
<Property Id="WixUI_Mode" Value="FeatureTree" /> |
170 |
|
171 |
<DialogRef Id="ErrorDlg" /> |
172 |
<DialogRef Id="FatalError" /> |
173 |
<DialogRef Id="FilesInUse" /> |
174 |
<DialogRef Id="MsiRMFilesInUse" /> |
175 |
<DialogRef Id="PrepareDlg" /> |
176 |
<DialogRef Id="ProgressDlg" /> |
177 |
<DialogRef Id="ResumeDlg" /> |
178 |
<DialogRef Id="UserExit" /> |
179 |
<DialogRef Id="WelcomeDlg" /> |
180 |
<DialogRef Id="LicenseAgreementDlg"/> |
181 |
<DialogRef Id="InstallDirDlg"/> |
182 |
<DialogRef Id="BrowseDlg"/> |
183 |
<DialogRef Id="InvalidDirDlg"/> |
184 |
|
185 |
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="LicenseAgreementDlg">NOT Installed</Publish> |
186 |
<Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">Installed AND PATCH</Publish> |
187 |
<Publish Dialog="LicenseAgreementDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg">1</Publish> |
188 |
<Publish Dialog="LicenseAgreementDlg" Control="Next" Event="NewDialog" Value="InstallDirDlg">LicenseAccepted = "1"</Publish> |
189 |
<Publish Dialog="InstallDirDlg" Control="Back" Event="NewDialog" Value="LicenseAgreementDlg">1</Publish> |
190 |
<Publish Dialog="InstallDirDlg" Control="Next" Event="NewDialog" Value="CustomizeDlg" Order="20">1</Publish> |
191 |
<Publish Dialog="InstallDirDlg" Control="Next" Event="SetTargetPath" Value="[WIXUI_INSTALLDIR]" Order="10">1</Publish> |
192 |
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Property="_BrowseProperty" Value="[WIXUI_INSTALLDIR]" Order="10">1</Publish> |
193 |
<Publish Dialog="InstallDirDlg" Control="ChangeFolder" Event="SpawnDialog" Value="BrowseDlg" Order="20">1</Publish> |
194 |
<Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog" Value="Return" Order="999">1</Publish> |
195 |
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="CustomizeDlg" Order="1">NOT Installed OR WixUI_InstallMode = "Change"</Publish> |
196 |
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="2">Installed AND NOT PATCH</Publish> |
197 |
<Publish Dialog="VerifyReadyDlg" Control="Back" Event="NewDialog" Value="WelcomeDlg" Order="3">Installed AND PATCH</Publish> |
198 |
<Publish Dialog="MaintenanceTypeDlg" Control="ChangeButton" Event="NewDialog" Value="CustomizeDlg">1</Publish> |
199 |
<Publish Dialog="MaintenanceWelcomeDlg" Control="Next" Event="NewDialog" Value="MaintenanceTypeDlg">1</Publish> |
200 |
<Publish Dialog="MaintenanceTypeDlg" Control="RepairButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
201 |
<Publish Dialog="MaintenanceTypeDlg" Control="RemoveButton" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
202 |
<Publish Dialog="MaintenanceTypeDlg" Control="Back" Event="NewDialog" Value="MaintenanceWelcomeDlg">1</Publish> |
203 |
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="MaintenanceTypeDlg" Order="1">Installed</Publish> |
204 |
<Publish Dialog="CustomizeDlg" Control="Back" Event="NewDialog" Value="InstallDirDlg" Order="2">NOT Installed</Publish> |
205 |
<Publish Dialog="CustomizeDlg" Control="Next" Event="NewDialog" Value="VerifyReadyDlg">1</Publish> |
206 |
|
207 |
<Property Id="ARPNOMODIFY" Value="1" /> |
208 |
<Property Id="WIXUI_EXITDIALOGOPTIONALTEXT" Value="Node.js has been succesfully installed. To run Node.js open command prompt (cmd.exe), and run 'node'." /> |
209 |
</UI> |
210 |
|
211 |
<UIRef Id="WixUI_Common" /> |
212 |
<WixVariable Id="WixUIBannerBmp" Value="..\..\..\doc\thin-white-stripe.jpg" /> |
213 |
<WixVariable Id="WixUIDialogBmp" Value="..\..\..\doc\full-white-stripe.jpg" /> |
214 |
<WixVariable Id="WixUILicenseRtf" Value="$(var.SourceDir)\LICENSE.rtf" /> |
215 |
</Product> |
216 |
|
217 |
</Wix> |