Hi

The SQLScripts are run when executing ExecuteSQLStrings Custom Action. I would 
like to know if there is any way of overriding this CustomAction to run as No 
Impersonate.

Thanks
Syama

From: Syama Rajendraprasad
Sent: Friday, March 25, 2011 10:33 AM
To: wix-users@lists.sourceforge.net
Cc: Madhan S; Nutesh Garg
Subject: Running SQLScript element as System instead of logged in User

Hi

I am trying to run a SQLScript as part of my msi and I want it to run as SYSTEM 
and not the logged in User.

When I install my msi, I see that the Script is run under the logged in user. 
How to force the script to be run under LocalSystem?

Here is my code:

            <Component Id="cm_abc.sql" Guid="$(GUID)" Win64="yes">
                <SqlScript Id='abc_123.sql' SqlDb='ABCDatabase' 
RollbackOnInstall='yes' Sequence='20' >
                    <Binary Id='ABCSql' src='abc.sql' />
                </SqlScript>
            </Component>

Thanks
Syama
------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to