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

WixRegisterRestartResources: Fails to register the process name, when process is running in a different session(??) . #4592

Closed
wixbot opened this issue Nov 12, 2014 · 5 comments

Comments

@wixbot
Copy link

wixbot commented Nov 12, 2014

There are more details at:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/RestartManager-Failed-to-register-the-process-name-td7597824.html
And whether the root cause is a "different session" is admittedly an assumption at this point. The scenario is that if several different applications launch a windows tray app (with hidden window) AND if one of those applications is a service running under LOCALSERVICE account, then WixRegisterRestartResources results in a fatal error. If the instance running under LOCALSERVICE is terminated prior to running the bundle then using util:RestartResource with the tray app's process name works with all other instances running. So if RmuAddProcessesByName cannot be changed to detect the instance running under LOCALSERVICE, it would be desirable for this to not be a fatal error. As it is I have to remove util:RestartResource and implement code to support prompting the user to do a reboot. The later is OK, but if we could also use util:RestartResource, then in the scenarios where the LOCALSERVICE instance is not an issue, the Restart Manager could handle the other scenarios without prompting for a reboot.

Added following snippet from verbose log.
MSI (s) (B4:B8) [12:40:57:561]: Doing action: WixRegisterRestartResources
Action ended 12:40:57: MigrateFeatureStates. Return value 1.
MSI (s) (B4:D8) [12:40:57:590]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIC38D.tmp, Entrypoint: WixRegisterRestartResources
MSI (s) (B4:CC) [12:40:57:590]: Generating random cookie.
MSI (s) (B4:CC) [12:40:57:592]: Created Custom Action Server with PID 2184 (0x888).
MSI (s) (B4:64) [12:40:57:611]: Running as a service.
MSI (s) (B4:64) [12:40:57:612]: Hello, I'm your 32bit Impersonated custom action server.
Action start 12:40:57: WixRegisterRestartResources.
MSI (s) (B4!CC) [12:40:57:639]: Note: 1: 2711 2:
WixRegisterRestartResources: Entering WixRegisterRestartResources in C:\Windows\Installer\MSIC38D.tmp, version 3.9.1006.0
WixRegisterRestartResources: Registering process name RmStreaming.exe with the Restart Manager.
WixRegisterRestartResources: Error 0x80070005: Failed to register the process name with the Restart Manager session.
CustomAction WixRegisterRestartResources returned actual error code 1603 (note this may not be 100% accurate if translation happened inside sandbox)
Action ended 12:40:57: WixRegisterRestartResources. Return value 3.
Action ended 12:40:57: INSTALL. Return value 3.

Please let me know how I can help.

Originally opened by phogland

@wixbot
Copy link
Author

wixbot commented Nov 12, 2014

Please post verbose logs around the WixRegisterRestartResources call.

Originally posted by barnson

@wixbot
Copy link
Author

wixbot commented Nov 13, 2014

This shouldn't be an error, just a warning in the log.

@wixbot
Copy link
Author

wixbot commented Nov 13, 2014

AssignedTo set to phogland

@wixbot
Copy link
Author

wixbot commented Nov 13, 2014

Originally changed by phogland
Release changed from v3.9 to v3.10

@wixbot
Copy link
Author

wixbot commented Jan 30, 2015

a8bdfd977b142723e7a28da847b830b45aee7b37

Originally posted by barnson
Resolution set to fixed
Status changed from Open to Resolved

@wixbot wixbot added this to the v3.10 milestone Dec 20, 2015
@wixbot wixbot closed this as completed Dec 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant