[wix-users] Elevated CA before GUI?

Phill Hogland phill.hogland at rimage.com
Wed Aug 17 05:23:15 PDT 2016


Have you considered using the Restart Manager:

    <util:RestartResource ServiceName="My_service_Short_Name"/>
    <util:RestartResource ProcessName="MyApp.exe"/>


________________________________
From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Persson, Magnus (SE-TLX) <magnus.persson at assaabloy.com>
Sent: Wednesday, August 17, 2016 2:35:54 AM
To: wix-users at lists.wixtoolset.org
Subject: [wix-users] Elevated CA before GUI?

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/



More information about the wix-users mailing list