flutter_udid
flutter_udid copied to clipboard
Windows 11 wmic error
Hi
I get this error on windows 11 'wmic' is not recognized as an internal or external command, operable program or batch file. flutter: PlatformException(NO_DATA_READ, No data read from wmic command, null, null)
Using this maybe better
Get-WmiObject -Class Win32_Bios | Select SerialNumber
std::string GetBiosSerialNumber() { Wmi::Server server{ L"ROOT\CIMV2" }; Wmi::ObjectEnumerator enumerator = server.Query(L"SELECT SerialNumber FROM Win32_Bios"); for (auto& object : enumerator) { return object.GetString(L"SerialNumber"); } return ""; }
Hey, could you create a PR for this?
fix, https://github.com/GigaDroid/flutter_udid/pull/60
I have manually tested and confirmed that it works. However, I do not have access to a Windows 11 version 24H2 system. Please test it further on actual hardware.
Thanks to @GigaDroid for this excellent, lightweight, and powerful plugin.
This pull request is safe to merge. I've already integrated it into my own branch and successfully implemented it in the Windows version of my application, Gai: Generative-AI Tools For Beginner.
See Gai's listings on the Microsoft Store and Softpedia for reviews:
- Microsoft Store: https://apps.microsoft.com/detail/9p8db38bt66d
- Softpedia (100% Clean Certified): https://www.softpedia.com/get/Artificial-Intelligence-Generative-AI/Gai.shtml
- Gai Official Download: https://webpath.iche2.com/app/gai/download_en.html
Gai's release can also be considered a successful use case for the flutter_udid plugin.