neo4j-devtools / neo4j-desktop

The Neo4j Graph Platform, on your desktop OS.
19 stars 1 forks source link

Install Stuck at "Please choose path ..." on [Windows 11 dev build] #116

Open wisehackermonkey opened 2 years ago

wisehackermonkey commented 2 years ago

Neo4j Version

Expected behavor

Error

Debugging:

image

running wmic.exe command manually

image

Windows 11 has removed this feature:

Microsoft removed the WMIC tool from Windows 11 Dev builds

What I tried

About my system

Host Name: AVIATRIX OS Name: Microsoft Windows 11 Home Insider Preview OS Version: 10.0.22489 N/A Build 22489 OS Manufacturer: Microsoft Corporation OS Configuration: Standalone Workstation OS Build Type: Multiprocessor Free Registered Owner: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Registered Organization: N/A Product ID: 00325-82139-34229-AAOEM Original Install Date: 10/31/2021, 8:06:24 AM System Boot Time: 11/1/2021, 2:10:04 PM System Manufacturer: ASUSTeK COMPUTER INC. System Model: ROG Strix G513QC_G513QC System Type: x64-based PC Processor(s): 1 Processor(s) Installed. 01: AMD64 Family 25 Model 80 Stepping 0 AuthenticAMD ~3201 Mhz BIOS Version: American Megatrends International, LLC. G513QC.308, 9/3/2021 Windows Directory: C:\WINDOWS System Directory: C:\WINDOWS\system32 Boot Device: \Device\HarddiskVolume1 System Locale: en-us;English (United States) Input Locale: en-us;English (United States) Time Zone: (UTC-08:00) Pacific Time (US & Canada) Total Physical Memory: 15,776 MB Available Physical Memory: 4,891 MB Virtual Memory: Max Size: 19,872 MB Virtual Memory: Available: 3,323 MB Virtual Memory: In Use: 16,549 MB Page File Location(s): C:\pagefile.sys Domain: WORKGROUP Logon Server: \AVIATRIX Hotfix(s): 1 Hotfix(s) Installed.

Network Card(s): 3 NIC(s) Installed. 01: Realtek PCIe GbE Family Controller Connection Name: Ethernet Status: Media disconnected [02]: MediaTek Wi-Fi 6 MT7921 Wireless LAN Card Connection Name: Wi-Fi DHCP Enabled: Yes DHCP Server: 192.168.1.254 IP address(es)

                       [03]: Bluetooth Device (Personal Area Network)
                             Connection Name: Bluetooth Network Connection
                             Status:          Media disconnected

Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.



# Logs for neo4j
[log.log](https://github.com/neo4j-devtools/neo4j-desktop/files/7469934/log.log)
wisehackermonkey commented 2 years ago

Any thoughts?

wisehackermonkey commented 2 years ago

Does anyone else have this issue?

feckardt commented 2 years ago

Does anyone else have this issue?

Yes, same issue with _Windows 11 Pro Insider Preview Build 22504.rsprerelease.211112-1650. As wmci is no longer supported on newer Windows 11 releases and has been removed, the installer should use a different approach to get logical disk information.

As a workaround, I compiled a c++-Program named wmci.exe and stored at C:\Windows\System32\wbem with the following content:

int main()
{
    std::cout << "Caption  FreeSpace    Size\n";
    std::cout << "C:       23770869760  63758659584\n";
}

After pressing Confirm in the dialog, the installer runs smoothly and the installation can be finished.

wisehackermonkey commented 2 years ago

Does anyone else have this issue?

Yes, same issue with _Windows 11 Pro Insider Preview Build 22504.rsprerelease.211112-1650. As wmci is no longer supported on newer Windows 11 releases and has been removed, the installer should use a different approach to get logical disk information.

As a workaround, I compiled a c++-Program named wmci.exe and stored at C:\Windows\System32\wbem with the following content:

int main()
{
    std::cout << "Caption  FreeSpace    Size\n";
    std::cout << "C:       23770869760  63758659584\n";
}

After pressing Confirm in the dialog, the installer runs smoothly and the installation can be finished.

I love how hacky this solution is! love it!

ill post my attempt later

wisehackermonkey commented 2 years ago

update: 20211230 added delete instructions

npm install -g pkg

image

echo 'console.log("Caption  FreeSpace    Size");
console.log("C:       23770869760  63758659584");' > wbem.js
pkg -t  win  wbem.js

image image C:\Windows\System32\wbem.exe image

image

works! image image

that didnt work ;/

I tried swithcing to wmic instead

pkg -t  win  wmic.js

image

image

image

try number 2

image image

WOW IT WORKED!

thanks @feckardt

how to uninstall wmic-fix

image

option 1

image

 del "C:\Windows\System32\wmic.exe"

image image

option 2

delete it manually

image

To future people: warning this wmic is used by other system stuff, and you could bork some shit, you have been warned! :)


my exe's for the lazy

https://github.com/wisehackermonkey/wmic-fix

or if your a good parionid dev, you can replicate my stuff.....:)

wisehackermonkey commented 2 years ago

For more deep dive and other issues related to wmic stuff https://oransblog.com/wmic-fix/

wisehackermonkey commented 2 years ago

alternate option

Update: 20211230 not recommended

not recommended

only works with my version of windows 😔, as @hacba98 said this would only work on my version of windows

use this older "untested" copy of wmic that I copied from my new windows 10 box. https://drive.google.com/drive/folders/1yFU5rD3kMROAL_kY3Vd93GwRHWrfLCPw?usp=sharing please update here if it works.

hacba98 commented 2 years ago

I have tried the "untested" copy of wmic but the old version seems cannot be run on the windows 11 prebuilt. But the file from your repo works, thanks a lot for the fix!

wisehackermonkey commented 2 years ago

@hacba98 your welcome! Glad it could help out some!