-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VS2012Express support on windows 8 #149
Conversation
var cp = spawn('reg', ['query', 'HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\VCExpress\\11.0\\Setup\\VC', '/v', 'ProductDir']) | ||
cp.on('exit', function (code) { | ||
hasVC2012Express = (code === 0) | ||
console.log('hasVC2012Express', hasVC2012Express); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to log.verbose()
instead of console.log()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that was just a debug print that I forgot to remove.
@mscdex can you take a look as well if possible? |
I haven't installed VC2012 Express yet, but just from looking over the changes everything seems almost fine. The one issue that has to be addressed yet is a check first for 32-bit VC2012 Express and then 64-bit (like how is currently done for VC2010 Express), because Windows 8 will also have 32-bit editions. |
I'm going to try it here on a clean windows 8 32 bits system and add that check. -----Original Message----- I haven't installed VC2012 Express yet, but just from looking over the changes everything seems almost fine. The one issue that has to be addressed yet is a check first for 32-bit VC2012 Express and then 64-bit (like how is currently done for VC2010 Express), because Windows 8 will also have 32-bit editions. Reply to this email directly or view it on GitHub: |
Is now working on 32bit and 64bit windows 8. Is better to use the VS2012 Express for Windows Desktop because it already contains the proper windows 8 sdk. I tried first with the VS2012 Express for Windows 8 but I was forced to reinstall de windows 8 sdk in other to make it work. |
Hrmm.. if they're offering it both ways, maybe we should add a check for the Windows 8 SDK just in case? |
The problem is that both version install the sdk, on the "VS2012 for windows 8" there was a missing header file "WinSock2.h" after the installation. Should we check for that file to validate the sdk installation? |
According to a reply about this, it seems the "for Windows 8" package is for Metro applications only. Why don't they label it as such then? :-\ Anyway, maybe there is a registry value we can check to differentiate between the Metro and Desktop versions of VS2012 Express and display a helpful error if the Metro version is installed? |
I found it on registry. The problem here is that it also works in a setup with Metro version + sdk. Let me dig a bit more on the registry. |
I think our best shot here is to look for the InstallationFolder on registry and then confirm if the WinSock2.h is there or not. What do you think about this approach? On my 32bit system for example: \Include\um\WinSock2.h |
When you install the "VS2012 Express for Windows Desktop" version, is HKLM\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v8.0 (or v0.8A, etc) set? |
Hello guys, finally I had some time to try those 3 configuration. Windows Software Development Kit (SDK) for Windows 8
Visual Studio 2012 Express for Windows Desktop
Visual Studio Express 2012 for Windows 8
We need "Windows Software Development Kit x86". I'm going do add the check. |
@fredericosilva @mscdex I appreciate you looking into this guys. Let me know when it's ready. I don't yet have Windows 8 to test on so I'm basically just taking your word for now. |
Should we give a error msg when no SDK is detected? |
Absolutely! But perhaps in a second pull request after this one :) The On Tue, Oct 23, 2012 at 9:49 AM, Frederico Silva
|
Ok, I'll make a new pull request after this one :) |
@mscdex do you think is ok merge? |
LGTM |
Thanks @fredericosilva! Merged in 63a3426. |
I run across this problem while compiling node-expat xmppo/node-expat#50, now is compiling well.
The VS2012 Express installs windows 8 SDK, so no need to manual install it.
Can you add this info on the readme?
btw, I thing is also possible to add support for VC2010.
Thank you.