I'd like to detect from a C# application whether the latest Windows 8.1 Update (KB 2919355) is installed
I haven't been able to find anything on any of microsoft's sites or via google that indicates how one might do this.
Thanks!
That update is actually a "rollup" or a collection of other separate smaller updates. If you go to the Knowledge base page for the update and scroll down to the "File information" you can see the update is actually the combination of the following other updates.
KB2919442
KB2919355
KB2932046
KB2937592
KB2938439
KB2934018
You will then need to either check that all of the above listed updates are applied or the single master update is applied. I am not sure how to do that in C# alone but via the commandline you can just do it by the console command
wmic qfe get hotfixid | find "KB2919355"
I installed Windows 8.1 Update from an MSDN download before it went live on Windows Update. It was distributed as a series of MSU files with a ReadMe. The list of updates in the ReadMe may be useful, if you choose to detect their presence.
Windows 8.1, Windows Server 2012 R2, Windows RT 8.1 Update
Recommended Install Order
1. KB2919442
2. KB2919355
3. KB2932046
4. KB2937592
5. KB2938439
6. KB2949621
This may be the culprit:
Operating system version changes in Windows 8.1 and Windows Server 2012 R2
Manifestation
In Windows 8.1, the GetVersion(Ex) APIs have been deprecated. That means that while you can still call the APIs, if your app does not specifically target Windows 8.1, you will get Windows 8 versioning (6.2.0.0).
Solution
In order to target Windows 8.1, you need to either include the app manifest or include _NT_TARGET_VERSION=$ (_NT_TARGET_VERSION_LATEST) in the source file.
Mode details of the required manifest contents are given in the article.
Related
I'm creating a guided troubleshooting so the users can fix configuration issues for an external device. One of the steps for the wizard is to make sure the users has the latest windows version installed on their system.
So, my problem is: is there a way to programmatically (Windows API, Microsoft Webservice, ...) determine if the Windows installation is the latest Windows version, with latest update and/or service pack installed?
I need to know that no matter if users are running Win 7, Win 8.1 or Win 10.
In other words, I have an OSInfo class and I need to have a property like:
OSInfo.IsLatestVersion
Thanks in advance for any help.
I have some trouble getting started with the Universal Windows Platform.
Herefor I've installed the Visual Studio 2015 Community version, and I can succesfully create an App and run it on my Raspberry Pi with Windows 10 IoT Core.
But my problem is that I cannot get the designer visible in the XAML files. Now have I found an answer to this in the following post:
Universal Windows App Visual Studio 2015 Community no designer, no controls in toolbox, no properties
Here I read that I have to set my target version to Windows 10240. This could be correct, because my current Windows 10 version is 10240, but for some reason I cannot set it to 10240. I can set the minimum version to 10240, but on the target version is only 10586 visible. Does anyone know what the reason of this is?
Please find the below screenshot for more information.
I've also tried to get my Windows 10 to update to 10586 (November Update), but this update fails, I guess maybe because my Users directory is on the D: Drive.
Click here for my Windows Version Screen
For this and all related problems, your best bet is to go to the dev center and check there.
In this case, it looks like you are missing the SDK that targets the build 10240 of Windows 10, which can be found on this link.
I'm trying to build an application for windows phone 8 on visual studio 2012 using windows 10 pro - 64-bit.
WP8 SDK with last update and VS2012 update 4 have been installed.
An error appear when i run app:
also an error appear on console: 0x80131500
I checked the hyper-v, and nothing relate to WP8 emulator was there!:
Please follow these steps to make sure the Hyper V service is installed and turn on.
How to Setup and Use Hyper-V in Windows 10 for OS Virtualization
Pay attention when it comes to enabling the service with this picture.
I'm pretty sure a computer reboot is required. If that still doesn't work for you then you have something conflicting with HYPER-V or your hardware does not support it.
I know VM Ware does not play nicely with HYPER-V turn on and vice versa, so you might want to build a separate computer for your Windows Phone development like I did, if you run VM Ware Player or Workstation.
Recently i encounter the same problem, it turns out that you have to install windows phone 8.1 sdk in order to run windows phone 8 app unter windows 10. Surprised ?... me neither :D
In the last updates of Windows 10, is possible that MS pushed one to prevent using the Windows Phone 8.0 SDK (the one that uses VS2012). My recommendation: create a Virtual Machine in VMware with Windows 8 or Windows 8.1 and install the SDK.
This is going to be quite a long question but please bear with me till the end. Before going into the details, below are my PC environments:
Windows 7 Professional x64
Visual Studio Community 2013 Update 4
On top of that, I checked my PC's processor does support virtualization using IntelĀ® Processor Identification Utility.
I also installed all the required SKD 8.1 components required to develop Windows phone 8.1 apps as shown in the picture below.
Now I clearly understands from the visual studio website requirements:-
Windows Phone 8.0 development requires Windows 8.1 (x64) or higher
Windows Phone 8.1 development requires Windows 8.1 (x86) or higher
For the Windows Phone emulators, Windows 8.1 (x64) Professional
edition or higher, and a processor that supports Client Hyper-V and
Second Level Address Translation (SLAT)
But from this SO Q&A it seems like developing windows 8.1 phone apps is still possible. However when I try to open an existing windows phone 8.1 project I got the error as shown in the picture below:
On top of that, in my Add New Project window there are no Windows Store Apps templates showing up.
I later found out from this msdn documentation that the RequiredPlatformVersion Element of the Visual Studio project template is filtering out the templates. However I tried to change the Blank Windows Phone project template element's value to 8 as specified in the documentation and also a few others value smaller than 6.3.0 but still fail to show the template.
Then I tried to install an extension called Windows Phone Template Pack which then adds two window phone project templates in my Add New Project window as shown below.
I created an empty project using that template and surprisingly I am able to open the windows phone 8.1 project as shown in the picture below.
That got me thinking that it should be possible to develop windows phone 8.1 apps but not emulating it but I am out of ideas on how to work around it now. I even tried looking at the denv.exe.config file to try my luck but there's nothing of interest there either.
Is there anyone that successfully build a Windows Phone 8.1 apps in an similar PC environment? A workaround will be sufficient.
Sorry to say this but Windows 8.1 is a requirement for developing as usually emulators on being initialized tries to load the OS into the device like the basic theme etc options.
1) You can try to connect your Windows phone to your PC and select Deploy to Device. (Though it might work and you will be able to debug yet still you would face a problem when you try to create a release build package to be uploaded on windows store. Also even though the fixes might work for short period but with Windows 10 about to be released you would be stuck with waiting for a fix to develop apps for that.)
2) You can try installing windows 8.1 inside VMWARE and deploy it.
I have an application which microsoft is preloading in some devices. I want to give offers to those users who are using these preloaded apps. But how can i distinguish if the app is preloaded or installed from marketplace on that device?
If you use WP Silverlight you can do this by 2 ways:
1. By version: you can parse your application page in store and get current version of your app then compare store version with app's version.
2. By specific file: you can check file which added only in published packages: System.IO.File.Exists("WMAppPRHeader.xml");
Regards.
In Windows Phone Extended properties https://msdn.microsoft.com/library/windows/apps/microsoft.phone.info.deviceextendedproperties(v=vs.105).aspx
There is a property IsApplicationPreInstalled using this one can find if the application is preinstalled or not.