Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wisehackermonkey opened this issue Nov 3, 2021 · 9 comments

Comments

@wisehackermonkey
Copy link

Neo4j Version

  • version 1.4.9

Expected behavor

  • being abel to click "confirm" and select default location for store application data on first load of application install

Error

  • nothing happens when "confirm" is clicked

Debugging:

  • Issue is window 11 removed wmic.exe command in latest windows 11 dev builds
  • error from dev console
child_process.js:317 Uncaught (in promise) Error: Command failed: wmic logicaldisk get size,freespace,caption
'wmic' is not recognized as an internal or external command,
operable program or batch file.

    at ChildProcess.exithandler (child_process.js:317)
    at ChildProcess.emit (events.js:315)
    at maybeClose (internal/child_process.js:1048)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288)

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

  • quitting and reload
  • installing wmic.exe into C:\Windows\System32\wbem

About my system

  • windows 11 dev channel (Windows 11 Home Insider Preview)
  • build 10.0.22489 N/A Build 22489
PS C:\windows\system32\wbem> systeminfo

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.
                           [01]: KB5007297
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)
                                 [01]: 192.168.1.185
                           [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

@wisehackermonkey wisehackermonkey changed the title Stuck at "Please choose path ..." on [Windows 11 dev build] Install Stuck at "Please choose path ..." on [Windows 11 dev build] Nov 3, 2021
@wisehackermonkey
Copy link
Author

Any thoughts?

@wisehackermonkey
Copy link
Author

Does anyone else have this issue?

@feckardt
Copy link

feckardt commented Dec 2, 2021

Does anyone else have this issue?

Yes, same issue with Windows 11 Pro Insider Preview Build 22504.rs_prerelease.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
Copy link
Author

Does anyone else have this issue?

Yes, same issue with Windows 11 Pro Insider Preview Build 22504.rs_prerelease.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
Copy link
Author

wisehackermonkey commented Dec 7, 2021

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
Copy link
Author

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

@wisehackermonkey
Copy link
Author

wisehackermonkey commented Dec 15, 2021

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
Copy link

hacba98 commented Dec 22, 2021

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants