diff options
author | Peter Foley <pefoley2@verizon.net> | 2012-08-22 16:00:11 -0400 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2012-10-07 01:56:38 +0000 |
commit | ecfabb66f421ef07f52a655117f047aa75d54a01 (patch) | |
tree | c1a7d5d0cf37202ce2b3d9d7c43b636b081771fe /oowintool | |
parent | 701db391b3d3b689af4ca5ab9d67c35b2459c1b3 (diff) |
add support for Windows 8 SDK
Change-Id: I941ce196917cad307d9de03030c4b23ff4e1b249
Reviewed-on: https://gerrit.libreoffice.org/785
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'oowintool')
-rwxr-xr-x | oowintool | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/oowintool b/oowintool index e418ae410037..9c6bdc664e29 100755 --- a/oowintool +++ b/oowintool @@ -99,11 +99,15 @@ sub print_windows_sdk_home() { my ($value, $key); - $value = reg_get_value ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/CurrentInstallFolder'); - + $value = reg_get_value ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Windows Kits/Installed Roots/KitsRoot'); + + if (!defined $value) { + $value = reg_get_value ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/Windows/CurrentInstallFolder'); + } if (!defined $value) { $value = reg_get_value ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/Directories/Install Dir'); } + if (!defined $value) { $key = reg_find_key ('HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install Dir'); |