File tree 1 file changed +26
-0
lines changed 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 49
49
<ComponentRef Id =" AppData" />
50
50
<ComponentGroupRef Id =" Product.Generated" />
51
51
52
+ <Feature Id =" NodeAlias"
53
+ Level =" 1"
54
+ Title =" Alias node to iojs"
55
+ Description =" Create node.exe as an alias for iojs.exe." >
56
+ <ComponentRef Id =" NodeAlias" />
57
+ </Feature >
58
+
52
59
<Feature Id =" NodePerfCtrSupport"
53
60
Level =" 1"
54
61
Title =" Performance counters"
117
124
<File Id =" iojs.exe" KeyPath =" yes" Source =" $(var.SourceDir)\iojs.exe" />
118
125
</Component >
119
126
127
+ <Component Id =" NodeAlias" Guid =" fde09cce-a503-4409-a3c4-61ae2a5a5906" >
128
+ <!-- Always remove node.exe. The hard link will be recreated by the
129
+ `LinkNodeExeToIojsExe` custom action whenever needed. -->
130
+ <RemoveFile Id =" node.exe" Name =" node.exe" On =" both" />
131
+ </Component >
132
+
120
133
<Component Id =" NodeVarsScript" >
121
134
<File Id =" nodevars.bat" KeyPath =" yes" Source =" $(var.RepoDir)\tools\msvs\nodevars.bat" />
122
135
</Component >
249
262
</Component >
250
263
</DirectoryRef >
251
264
265
+ <CustomAction Id =" LinkNodeExeToIojsExe"
266
+ FileKey =" iojs.exe"
267
+ ExeCommand =" -e " require('fs').linkSync(process.execPath, require('path').resolve(process.execPath, '../node.exe')); " "
268
+ Impersonate =" no"
269
+ Execute =" deferred"
270
+ Return =" check" />
271
+
272
+ <InstallExecuteSequence >
273
+ <Custom Action =" LinkNodeExeToIojsExe" After =" InstallFiles" >
274
+ $NodeAlias = 3
275
+ </Custom >
276
+ </InstallExecuteSequence >
277
+
252
278
<UI Id =" NodeInstallUI" >
253
279
<TextStyle Id =" WixUI_Font_Normal" FaceName =" Tahoma" Size =" 8" />
254
280
<TextStyle Id =" WixUI_Font_Bigger" FaceName =" Tahoma" Size =" 12" />
You can’t perform that action at this time.
0 commit comments