Why not check if node.exe is in the path instead? Also instead of installing an msi you could simply download node.exe (http://nodejs.org/dist/v0.10.28/node.exe) and npm separately (http://nodejs.org/dist/npm/npm-1.4.8.zip) and unzip it instead of executing an msi.