[wix-users] Elevated CA before GUI?
Persson, Magnus (SE-TLX)
magnus.persson at assaabloy.com
Wed Aug 17 04:33:29 PDT 2016
Yes you are right, no need for elevated rights to see the active processes. I have a function to terminate the processes too and that requires elevated rights.
However, I may not need to terminate processes. I think I have found another solution.
Regards,
Magnus
On 2016-08-17 09:56, sampat magi wrote:
hi
1. We are also doing the same for visual studio, ( we don't have any issues to fetch all the processes.
string currPrsName = Process.GetCurrentProcess().ProcessName;
//Get the name of all processes having the
//same name as this process name
Process[] allProcessWithThisName
= Process.GetProcessesByName(currPrsName);)
I think, this require the msi to be run from admin cmd prompt.
2. Why cant you user RestartResource or CloseApplication from util extension ?
please let me know if i could be of any help.
Regards
Sampat
On Wed, Aug 17, 2016 at 1:05 PM, Persson, Magnus (SE-TLX) <magnus.persson at assaabloy.com<mailto:magnus.persson at assaabloy.com>> wrote:
I need to call a CustomAction before the GUI part is shown to check if
services or processes that are part of our software suite is running and
if so, tell the user to terminate the running application and restart
the installer when done.
The problem is that the 'process snapshot' APIs do require elevated
rights and I do not know how to do that in the InstallUISequence.
I use the CA to set conditional properties that will trigger the error
message so running the CA as deferred will be too late for that.
Any ideas how to solve it in a better way?
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
Click here<https://www.mailcontrol.com/sr/uC+t%21Nwj+vzGX2PQPOmvUnR5FqKQsdnp%21X0aLlJ+c0Fygr8Xy2MlCjIe0+mkJgOeykPrBhBtXtLX0F9OzBqmnw==> to report this email as spam.
More information about the wix-users
mailing list