Changes

Jump to: navigation, search

Nvm

160 bytes added, 14:08, 19 May 2016
no edit summary
The path variable points to where nvm creates the Link it uses to switch between different node versions.
= XML =
 
<source lang="xml">
<package id="nvm" name="nvm" revision="12" priority="0" reboot="false" >
</package>
 
</source>
After installation of the Package it is necessary to reboot the Computer or use this Powershell script which forces Windows to reread all System environment Variables because the SETX does not work exactly as intended with WPKG:
 
= Powershell =
 
<source lang="xml">
if (-not ("win32.nativemethods" -as [type])) {
[win32.nativemethods]::SendMessageTimeout($HWND_BROADCAST, $WM_SETTINGCHANGE,
[uintptr]::Zero, "Environment", 2, 5000, [ref]$result);
 
</source>
Whenever i tried to execute this Script with wpkg it would go into a endless loop and i had to force quit powershell to continue, maybe someone knows a way to achieve this so this can be used without needing a reboot
 
[[Category: Silent Installers]]
[[Category: nodejs]]
[[Category: nvm]]
2
edits

Navigation menu