codecrafting-io / asus-setup-tool

An PowerShell script tool that manages the setup installation for the legacy Aura Sync, LiveDash, AiSuite3
60 stars 3 forks source link

Cannot find a process with the process identifier 4704 #6

Open arthurcruz1 opened 2 months ago

arthurcruz1 commented 2 months ago

I am experiencing the an error during the Install ASUS Setup step

Get-Process : Cannot find a process with the process identifier 4704.
At C:\Users\adm_cruz\Downloads\Asus-Setup-Tool\Asus Setup Tool\Source\setup.psm1:601 char:18
+         $Setup = Get-Process -Id $Setup.Id
+                  ~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (4704:Int32) [Get-Process], ProcessCommandException
    + FullyQualifiedErrorId : NoProcessFoundForGivenId,Microsoft.PowerShell.Commands.GetProcessCommand

Cannot bind argument to parameter 'Id' because it is null.

asus_setup_tool_v0 8 1_issue

codecrafting-io commented 2 months ago

This is related to AiSuite3 quick setup initialization. It seems that the process doesn't run long enough (fails or is prevented from starting?) causing this error, which I couldn't reproduce until now. Does this persist after a reboot? Can you run the AiSuite3 setup? Just launching it will install basic services and drivers that is required for a proper AuraSync, and you don't need to install AiSuite3. Meanwhile, I will make a patch to handle this situation to fail properly.

codecrafting-io commented 2 months ago

I made some changes to the Set-ASUSServices. Replace the files below inside Source folder, by downloading them (right click and save link as)

This may not fix your issue, but at least will have better handling when AiSuite3 stops unexpectedly

arthurcruz1 commented 2 months ago

The error persists after a reboot.

After replacing the files:

Failed to set Asus service. AiSuite3 quick setup failed to launch

asus_setup_tool_v0 8 1_issue2

I don't need AiSuite3 but was able to run the setup in the Apps folder. As I workaround I ran the AuraSync setup in the folder.

codecrafting-io commented 2 months ago

Sorry, but I really can't reproduce the situation. Through PowerShell it seems that AiSuite3 setup does not start or is killed earlier. Not sure why. AiSuite3 is used to install ASUS basic services before installing AuraSync, which is done by simply running AiSuite3 setup. It doesn't install AiSuite3 itself. For now, unfurtonatatly, I will mark this as "wontfix"

codecrafting-io commented 2 months ago

I made another small tweak in the setup.psm1 file to improve the Start-Process failures and detection when the AiSuite3 window appears (indicating that ASUS basic services have been successfully set up). Still, it probably won't fix your problem 😔, just tighten up the handling of AiSuite3 startup. You can try it anyway.

If you could attach the most recent log file, it may help to understand why AiSuite3 Setup does not start with PowerShell

codecrafting-io commented 2 months ago

All of these changes have been fully integrated into v0.9.0

codecrafting-io commented 1 month ago

For those still having the issue, try version v0.7.1 and see if it works. This may be related to newer ASUS services introduced in 0.8.0. Still investigating

ExtremeFiretop commented 11 hours ago

I just had this issue. Was related to having Windows Defender Device Security enabled. Specifically "Core isolation" settings . Once I disabled memory integrity and kernel-mode enforced stack protection the error went away.

ExtremeFiretop commented 11 hours ago

Sorry; correction, the reason the error went away was because i opted to try to install AiSuite3 just to see what it did. I tried again just now with Defender Security disabled, and still got the same error as long as I selected to not install AiSuite 3.

If I select to install it, no errors are shown.