felixrieseberg / windows-build-tools

:package: Install C++ Build Tools for Windows using npm
MIT License
3.4k stars 237 forks source link

Is a portable installation possible? #173

Closed cyberpunkbln closed 5 years ago

cyberpunkbln commented 5 years ago

Hello, short question. Is a portable installation possible?

Or is it so easy that i set all enviroments to my portable node.js installation and what envs i need?

thx

refack commented 5 years ago

From my experience the short answer is no. Most parts could be made portable, except for the Windows SDK. It requires some registry keys:

HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Microsoft SDKs\Windows\v10.0
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows Kits\Installed Roots\10.0.17134.0

The environment vars required are Path and whatever vcvarsall.bat sets. I store those with set > devenv.txt and then run FOR /F "tokens=*" %i in (devenv.txt) do set %i in the cmd session I want to use

cyberpunkbln commented 5 years ago

thx good to know;), i hope that the projects that use can use an gnu-ming-env, then;).