John that doesn't necessarily generate a UAC prompt. It will simply
check if the user has the permissions necessary to generate a UAC prompt
before the MSI installs.

Sachin is your custom action running during the InstallUISequence or
InstallExecuteSequence? What is the Execute attribute of the
CustomAction?
Generally you won't see an elevation prompt until you start the
InstallExecuteSequence (as in after you click "Install" on the
ProgressDlg) so if it runs before that in the InstallUISequence you
probably want to move it if possible (as always check a verbose log).
You also probably want it to have Execute="deferred" set as per
http://wix.sourceforge.net/manual-wix3/wix_xsd_customaction.htm If it's
set to "immediate" or not at all it's likely this is the cause of the
problem.

This is all assuming your call to GetMsiProperty function really does
requires UAC elevation. I haven't looked at this function myself so I'd
first check if that is the case before you start trying to change your
WiX code as your changes may be unnecessary if the Custom Action itself
is the problem.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer


-----Original Message-----
From: John H. Bergman (XPedient Technologies)
[mailto:john.berg...@xpedienttechnologies.com] 
Sent: 17 November 2009 15:24
To: General discussion for Windows Installer XML toolset.;
v-sad...@microsoft.com
Subject: Re: [WiX-users] GetMsiProperty with UAC enabled!

Add this, maybe it will help in your case...

    <Condition Message="You must be an administrator to install this
application">
      Privileged
    </Condition>

I believe you get the UAC prompt...

-----Original Message-----
From: Sachin Dubey [mailto:sachin.du...@live.com]
Sent: Tuesday, November 17, 2009 1:35 AM
To: wix-users@lists.sourceforge.net; v-sad...@microsoft.com
Subject: [WiX-users] GetMsiProperty with UAC enabled!


Hi All,

 

I am trying to fix a bug in an existing Wix MSI code, the MSI fails on
Windows 2008 with UAC Enabled, if we disable the UAC the MSI runs fine.

During investigation I found, the Wix is calling C++ custom actions
those using method GetMsiProperty to retrieve the properties from MSI.

 

The code fails during calling this method if the UAC is enabled.

 

Does it require specific permissions to call this method or something
else going wrong?

 

Code fails at:

hr = GetMsiProperty(PREREQUISITE1, &pwszCADataPreReq1, &cchDataPreReq1);

 

Appreciate any help on this.

 

Thanks

Sachin!

 
                                          
_________________________________________________________________
Windows 7: It works the way you want. Learn more.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T
:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009v2
------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------
------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day 
trial. Simplify your report design, integration and deployment - and
focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to