@@ -106,19 +106,19 @@ namespace Win32Api
106
106
107
107
echo "Installing node.js..."
108
108
Expand-Archive -Path C:\\ vagrant\\ software\\ node.zip -DestinationPath C:\\
109
- netsh advfirewall firewall add rule name="Allow nodejs" dir=in action=allow program="c:\\ node-v12.16.3 -win-x64\\ node.exe" enable=yes
109
+ netsh advfirewall firewall add rule name="Allow nodejs" dir=in action=allow program="c:\\ node-v14.17.6 -win-x64\\ node.exe" enable=yes
110
110
111
111
echo "Installing assistive-playwright-server and text-to-socket-engine..."
112
- \$ p = Start-Process -FilePath c:\\ node-v12.16.3 -win-x64\\ npm.cmd -ArgumentList "install","--scripts-prepend-node-path=true","-g","c:\\ vagrant\\ win10-chromium-nvda-vm-0.0.0.tgz" -Wait -NoNewWindow -PassThru
112
+ \$ p = Start-Process -FilePath c:\\ node-v14.17.6 -win-x64\\ npm.cmd -ArgumentList "install","--scripts-prepend-node-path=true","-g","c:\\ vagrant\\ win10-chromium-nvda-vm-0.0.0.tgz" -Wait -NoNewWindow -PassThru
113
113
if ( \$ p.ExitCode -ne 0 ) { exit \$ p.ExitCode }
114
- \$ p = Start-Process -FilePath c:\\ node-v12.16.3 -win-x64\\ node_modules\\ win10-chromium-nvda-vm\\ node_modules\\ .bin\\ text-to-socket-engine-register.cmd -Wait -NoNewWindow -PassThru
114
+ \$ p = Start-Process -FilePath c:\\ node-v14.17.6 -win-x64\\ node_modules\\ win10-chromium-nvda-vm\\ node_modules\\ .bin\\ text-to-socket-engine-register.cmd -Wait -NoNewWindow -PassThru
115
115
if ( \$ p.ExitCode -ne 0 ) { exit \$ p.ExitCode }
116
116
117
117
echo "Configuring startup and environment..."
118
118
Copy-Item "C:\\ vagrant\\ start.cmd" -Destination C:\\
119
119
Set-ItemProperty -Path 'HKLM:\\ SOFTWARE\\ Microsoft\\ Windows\\ CurrentVersion\\ Run' -Name StartCmd -Type String -Value 'c:\\ start.cmd'
120
120
\$ curPath = Get-ItemPropertyValue -Path 'HKLM:\\ SYSTEM\\ CurrentControlSet\\ Control\\ Session Manager\\ Environment' -Name PATH
121
- Set-ItemProperty -Path 'HKLM:\\ SYSTEM\\ CurrentControlSet\\ Control\\ Session Manager\\ Environment' -Name PATH -Type ExpandString -Value "\$ curPath;c:\\ node-v12.16.3 -win-x64;c:\\ chromedriver_win32;c:\\ chrome-win"
121
+ Set-ItemProperty -Path 'HKLM:\\ SYSTEM\\ CurrentControlSet\\ Control\\ Session Manager\\ Environment' -Name PATH -Type ExpandString -Value "\$ curPath;c:\\ node-v14.17.6 -win-x64;c:\\ chromedriver_win32;c:\\ chrome-win"
122
122
123
123
echo "Setup finished successfully!"
124
124
SHELL
0 commit comments