Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get msiexec.exe command line options within custom dll ?

14 views
Skip to first unread message

Polaris

unread,
Jun 15, 2006, 4:35:41 PM6/15/06
to
Hi Experts:

Searched hours but could not find answer, so I have to try here:

I have a dll for the Custom Action, just wonder how can I get the command
line parameters (like /q or /passive) within my dll ? I guess I should use
MsiGetProperty, but what should I use for the property name?

Thanks!
Polaris


Luke Surace

unread,
Jun 15, 2006, 6:05:03 PM6/15/06
to
You will need to use MsiGetProperty, and grab that property that the command
line option maps to.
for example, /q is the user interface level, so you need to lookup the
"UILevel" property

"Polaris" <etpo...@hotmail.com> wrote in message
news:evsnMtLk...@TK2MSFTNGP03.phx.gbl...

Polaris

unread,
Jun 15, 2006, 11:07:50 PM6/15/06
to
Thanks for your help.

Looks like it works if I set CustomActionData to [UILevel] and then call
MsiGetProperty (.., "CustomActionData"...).

It did not work if I simply do this: MsiGetProperty (..., "UILevel", ...).
It's a bit strange.

Polaris

"Luke Surace" <luk...@noemail.noemail> wrote in message
news:%23XflCfM...@TK2MSFTNGP05.phx.gbl...

Kalle Olavi Niemitalo

unread,
Jun 16, 2006, 1:27:50 AM6/16/06
to
"Polaris" <etpo...@hotmail.com> writes:

> Looks like it works if I set CustomActionData to [UILevel] and then call
> MsiGetProperty (.., "CustomActionData"...).
>
> It did not work if I simply do this: MsiGetProperty (..., "UILevel", ...).
> It's a bit strange.

Most properties cannot be read in deferred custom actions.
http://msdn.microsoft.com/library/en-us/msi/setup/obtaining_context_information_for_deferred_execution_custom_actions.asp

0 new messages