Closed Bug 950447 Opened 11 years ago Closed 10 years ago

mozillabuild incorrectly detects presence of Windows 8.1 SDK when only some of its features installed

Categories

(Firefox Build System :: MozillaBuild, task)

x86_64
Windows 7
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mz+bugzilla, Assigned: m_kato)

References

Details

Attachments

(1 file, 1 obsolete file)

In case when I have not full SDK installed, but only some minor features of it (only WinDBG in my case), mozbuild thinks that full SDK is present and prefer it over SDK 7.0.
Problem is in guess-msvc.bat file, it uses
SET SDK80KEY=HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Roots
while it should first check 
HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Products
for Windows Software Development Kit value in keys, and only if it finds it then queue Installed Roots for path
Just for clarify, this is happening with the 1.9.0 test build?
Yes, I just finish deploying all stuff to new server and this is happening on 1.9.0 too. One addition: by default, sdksetup doesn't create those keys in case of installing only debuggers, but if you using standalone .msi installers those keys are creating and confusing mozbuild.
Summary: mozbuild incorrectly detects presence of Windows 8.1 SDK when only some of it's features installed → mozillabuild incorrectly detects presence of Windows 8.1 SDK when only some of it's features installed
(In reply to Phoenix from comment #2)
> Yes, I just finish deploying all stuff to new server and this is happening
> on 1.9.0 too. One addition: by default, sdksetup doesn't create those keys
> in case of installing only debuggers, but if you using standalone .msi
> installers those keys are creating and confusing mozbuild.

phoenix, could you know both GUID for SDK 8.0 and 8.1?
Assignee: nobody → m_kato
{5FB4C443-6BD6-1514-2717-3827D65AE6FB} means 8.0 and {5247E16E-BCF8-95AB-1653-B3F8FBF8B3F1} means 8.1
Humm, even if uninstall SDK, registry value into HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Products isn't deleted....

I should check header file (ex. windows.h) finally...
Comment on attachment 8347916 [details] [diff] [review]
Use Installed Prodcuts and file check

registry value into Installed Products key isn't deleted even if uninstalling SDK.  So we check header file also.
Attachment #8347916 - Flags: review?(ryanvm)
Comment on attachment 8347916 [details] [diff] [review]
Use Installed Prodcuts and file check

I should check SDKDIR is empty.
Attachment #8347916 - Attachment is obsolete: true
Attachment #8347916 - Flags: review?(ryanvm)
Attached patch v2Splinter Review
Comment on attachment 8351324 [details] [diff] [review]
v2

even if checking registry into HKLM\SOFTWARE\Microsoft\Windows Kits\Installed Products, it isn't enough.  When uninstalling SDK, this key is still existed.  So I need add check header file
Attachment #8351324 - Flags: review?(ryanvm)
Summary: mozillabuild incorrectly detects presence of Windows 8.1 SDK when only some of it's features installed → mozillabuild incorrectly detects presence of Windows 8.1 SDK when only some of its features installed
Comment on attachment 8351324 [details] [diff] [review]
v2

Review of attachment 8351324 [details] [diff] [review]:
-----------------------------------------------------------------

r+ with the wording changes

::: guess-msvc.bat
@@ +126,5 @@
>    )
>  )
>  
> +REM Even if uninstall SDK, Installed Products key is still existed.
> +REM If not exist header, we shouldn't detect SDK installation

"The Installed Products key still exists even if the SDK is uninstalled. Verify that the Windows.h header exists to confirm that the SDK is installed."

@@ +142,5 @@
>    )
>  )
>  
> +REM Even if uninstall SDK, Installed Products key is still existed.
> +REM If not exist header, we shouldn't detect SDK installation

Same as above.
Attachment #8351324 - Flags: review?(ryanvm) → review+
https://hg.mozilla.org/mozilla-build/rev/6a2f87becc78
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: