Archive: FindProc and Run as...


FindProc and Run as...
I noticed a small problem with FindProc plugin:

I wrote an installer that requires the user to be an administrator of the machine, so it uses UserInfo to check for this on init. As this installer can update an application if it's already installed, it also checks (using FindProc) on init if the installed program is currently running and warns for that event.

If the logged user is not an administrator, and has the application running, when I run the installer using "Run as.." option from the context menu (right-clicking over the installer) to give an administrator account, it seems that FindProc doesn't find the running application.

I guess that this plugin only searches inside current user's programs list, not the machine's one.

Is there a workaround or fix available?

Thanks...

++Vitoco


I would guess the problem is occurring because of access rights limitations imposed by the OpenProcess function.
The source code is distributed along with the plugin, so you can try playing around with it to see if you can get it to work.


Has anyone got a clue on this? I am running into the same deal here, except I am using the LSRUNASE program to launch an MSI and the FindProc plug-in will not find the process b/c it is being launched as the admin and not the user that is logged in.