Thanks for the comments on the workflow.

My post last night about a potential problem with per-user was speculation. 
This morning I tested the per-machine msi, without using the bundle, and it
shows the same problem I expected for per-user.  So I set aside the per-user
concern and am focused on the per-machine msi only scenario.

The per-machine (and I assume also a per-user) msi implements
<util:RestartResource ProcessName="AppName.exe"/>

The problem is that the WixRegisterRestartResources CA gets a list of all
process IDs and attempts to open any process ID which has the above app
name, without regard to the user context that the process is running under. 
(In my particular situation AppName.exe is a tray app which may have many
instances running under the same or different users, and when there is one
running under a different user, the CA fails at the OpenProcess call.) 
Yesterday I implemented a fix for that problem, which works for my
situation, but which did not consider that the test scenario I was using,
with a bundle, was running the msi elevated.  Today I am refactoring to
consider the situation where the msi is not elevated.  I am beginning to
believe that the WixRegisterRestartResources functionality which does the
registration code (RmuAddProcessesByName), should be in a deferred CA rather
than an immediate CA.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/4592-RestartResource-solution-and-review-tp7598149p7598179.html
Sent from the wix-devs mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
WiX-devs mailing list
WiX-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to