anchor.diff:  call npm install
   if errorlevel 1 goto linking-failed
   rmdir "%SHIELDBATTERY_PATH%\js"
  -mklink /D "%SHIELDBATTERY_PATH%\js" "%~dp0\js"
  +mklink /D "%SHIELDBATTERY_PATH%\js" "%scriptroot%\js"
   echo JS modules linked.
   goto exit
   
  
positive.code: 
  @rem Ensure environment properly setup
  if not defined SHIELDBATTERY_PATH goto env-error
  
  @rem Process arguments.
  set config=Release
  
negative.code: goto link-modules
  
  :create-msvs-files-failed
  echo Failed to create VS project files for Shieldbattery.
  goto exit
  
  :link-modules
  @rem Link up the native modules inside the js directory
  cd "%scriptroot%\node-psi"
  call npm install
  call npm link
  if errorlevel 1 goto linking-failed
  cd "%scriptroot%\node-bw"
  call npm install
  call npm link
  if errorlevel 1 goto linking-failed
  cd "%scriptroot%\forge"
  call npm install
  call npm link
  if errorlevel 1 goto linking-failed
  cd "%scriptroot%\js"
  call npm link shieldbattery-psi
  if errorlevel 1 goto linking-failed
  call npm link shieldbattery-bw
  