For b) might MsiGetMode() with the last 3 parameters help ? Its not
exactly what you asked for but it might be what you really want :)
http://msdn.microsoft.com/en-us/library/aa370125%28VS.85%29.aspx

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: 31 July 2010 21:52
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] From DLL: UI mode and setup mode

a) - from http://msdn.microsoft.com/library/aa368281.aspx - UILevel
property (read from session). Note that you can always safely call
MsiProcessMessage.
If the UI does not allow your message, it will be added to any log AND
some sort of default response will be returned.

b) - Not sure, but you can schedule actions such that they exist in both
sequences yet only run once.

c) - one solution to this is found here:
http://code.dblock.org/ShowPost.aspx?id=42. The "canonical" way is to
wait until after CostFinalize and then use either component or feature
action/status states (pick either a feature or a component that relates
to the action's target, and act based on both the current and the action
state).

-----Original Message-----
From: Lukas Haase [mailto:lukasha...@gmx.at]
Sent: Saturday, July 31, 2010 10:30 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] From DLL: UI mode and setup mode

Hi,

I looked at the docs at
http://msdn.microsoft.com/en-us/library/aa368250%28VS.85%29.aspx but I
could not find any information:

Within a DLL extension for MSI, how can I found out ...

a) In which UI mode I am (full, reduced, simple, no)
b) If I am called in InstallUISequence or InstallExecuteSequence
c) If I am called in setup mode, repair mode or uninstall mode?

I need at least (c) because my function should only be called on a fresh
install.

I need (a) because in case of a full/reduced UI I want to have
MsiProcessMessage, in the other cases I want to do "silent" action.

Regards,
  Luke


------------------------------------------------------------------------
----
--
The Palm PDK Hot Apps Program offers developers who use the Plug-In
Development Kit to bring their C/C++ apps to Palm for a share of $1
Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the Plug-In
Development Kit to bring their C/C++ apps to Palm for a share of $1
Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
</pre>
<BR style="font-size:4px;">
<a href = "http://www.sdl.com";><img src="http://www.sdl.com/images/email 
logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a>
<BR>
<font face="arial"  size="2" "><a href = "http://www.sdl.com"; 
style="color:005740; font-weight: bold">www.sdl.com</a>
<BR>
<BR>
<font face="arial"  size="1" color="#736F6E">
<b>SDL PLC confidential, all rights reserved.</b>
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.<BR>
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.<BR>
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
</font>



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to