loueradun / GamestreamLauncher

An application launcher for Gamestream that can handle stopping/starting miners through Awesome Miner, Enable/Disable multiple monitors, and run custom scripts before/after a Gamestream session
10 stars 2 forks source link

NvContainerRestart service is not installed #7

Open spikewj opened 3 years ago

spikewj commented 3 years ago

I'm using Windows 11 and NVIDIA geforce experience 3.23.0.74

Using GamestreamLauncherConfig.bat, NvContainerRestart service is not installed. Thus, I tried to install it manually in the cmd with admin priv using the following command but it failed.

D:\GamestreamLauncher-1.3.1\Binaries>InstallUtil.exe NvContainerRestart.exe Microsoft (R) .NET Framework Installation utility Version 4.7.2556.0 Copyright (C) Microsoft Corporation. All rights reserved.

Exception occurred while initializing the installation: System.IO.FileLoadException: Could not load file or assembly 'file:///D:\GamestreamLauncher-1.3.1\Binaries\NvContainerRestart.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

so that, nvcontainer doesn't restart after gamestream session ends.

In the end, I can install the service with the following command. SC create "NvContainerRestart" binpath="D:\GamestreamLauncher-1.3.1\Binaries\NvContainerRestart.exe"

then, sc sdset NvContainerLocalSystem D:(A;;RP;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RPWPCR;;;BU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

somehow it works but sometimes gamestreamlauncher hangs during running shutting down script.

Is the above commands using "sc create .." equivalent to the command using InstallUtil.exe?

Is there any way to resolve the installation failure using GamestreamLauncherConfig.bat?

loueradun commented 3 years ago

I am not at my desk but that command above looks very similar to what I am doing now. It should run an elevated command prompt (which will prompt for admin access) when saving the config. Simply opening the config and saving the settings does this for me.

Another user had mentioned that the service didn't seem to want to install either, and it may be related to the cmd lines to uninstall any old service first (I think that fails, so it doesn't continue).

Thanks for the bug report, I will take a look at it when I can.

On Sat, Sep 18, 2021, 7:01 AM Spike @.***> wrote:

I'm using Windows 11 and NVIDIA geforce experience 3.23.0.74

Using GamestreamLauncherConfig.bat, NvContainerRestart service is not installed. Thus, I tried to install it manually in the cmd with admin priv using the following command but it failed.

D:\GamestreamLauncher-1.3.1\Binaries>InstallUtil.exe NvContainerRestart.exe Microsoft (R) .NET Framework Installation utility Version 4.7.2556.0 Copyright (C) Microsoft Corporation. All rights reserved.

Exception occurred while initializing the installation: System.IO.FileLoadException: Could not load file or assembly 'file:///D:\GamestreamLauncher-1.3.1\Binaries\NvContainerRestart.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

so that, nvcontainer doesn't restart after gamestream session ends.

In the end, I can install the service with the following command. SC create "NvContainerRestart" binpath="D:\GamestreamLauncher-1.3.1\Binaries\NvContainerRestart.exe"

then, sc sdset NvContainerLocalSystem D:(A;;RP;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)(A;;RPWPCR;;;BU)S:(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)

somehow it works but sometimes gamestreamlauncher hangs during running shutting down script.

Is the above commands using "sc create .." equivalent to the command using InstallUtil.exe?

Is there any way to resolve the installation failure using GamestreamLauncherConfig.bat?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/loueradun/GamestreamLauncher/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALQIC2QU4WGJRX7RQ5GQKDUCRWQNANCNFSM5EJC2PCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

spikewj commented 3 years ago

Thank you for your quick reply!

I read the issue you mentioned, and I see that uninstall && install && sdset .. && sdset will fail when running GamestreamLauncherConfig.bat first time since an exception is thrown during uninstallation.

This issue is regarding the failure of installation command using InstallUtil.exe, which might be due to my environment or windows10, etc.

loueradun commented 3 years ago

Yeah I believe I added the && in order to make less calls on the command line, the uninstall probably shouldn't prefix the statement but should be its own, as it would continue with the next step if it fails written that way. Small change probably, unfortunately I'm underwater with other tasks atm.

On Sat, Sep 18, 2021, 8:22 AM Spike @.***> wrote:

Thank you for your quick reply!

I read the issue you mentioned, and I see that uninstall && install && sdset .. && sdset will fail when running GamestreamLauncherConfig.bat first time since an exception is thrown during uninstallation.

This issue is regarding the failure of installation command using InstallUtil.exe, which might be due to my environment or windows10, etc.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/loueradun/GamestreamLauncher/issues/7#issuecomment-922268650, or unsubscribe https://github.com/notifications/unsubscribe-auth/AALQIC3Y5Y5BIJJ4JX7FOO3UCR763ANCNFSM5EJC2PCQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.