Hi,

I'm tring to install msi package with code below:

MSIHANDLE hProduct = NULL;
MsiSetInternalUI(INSTALLUILEVEL(INSTALLUILEVEL_NONE|INSTALLUILEVEL_UACONLY),
hwnd);
ret = MsiOpenPackage(TEXT("PathOfInstaller"), &hProduct);
ret = MsiDoAction(hProduct, TEXT("INSTALL"));
MsiCloseHandle(hProduct);

The process failed because the UAC not working. But if I using another API
MsiInstallProduct(...) to install, the UAC works well. Did I miss used the
MsiDoAction?



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-elevate-installer-privilege-when-using-MsiDoAction-to-install-tp7581936.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to