File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 4949 <ComponentRef Id =" AppData" />
5050 <ComponentGroupRef Id =" Product.Generated" />
5151
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+
5259 <Feature Id =" NodePerfCtrSupport"
5360 Level =" 1"
5461 Title =" Performance counters"
117124 <File Id =" iojs.exe" KeyPath =" yes" Source =" $(var.SourceDir)\iojs.exe" />
118125 </Component >
119126
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+
120133 <Component Id =" NodeVarsScript" >
121134 <File Id =" nodevars.bat" KeyPath =" yes" Source =" $(var.RepoDir)\tools\msvs\nodevars.bat" />
122135 </Component >
249262 </Component >
250263 </DirectoryRef >
251264
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+
252278 <UI Id =" NodeInstallUI" >
253279 <TextStyle Id =" WixUI_Font_Normal" FaceName =" Tahoma" Size =" 8" />
254280 <TextStyle Id =" WixUI_Font_Bigger" FaceName =" Tahoma" Size =" 12" />
You can’t perform that action at this time.
0 commit comments