You have to pass properties to deferred CAs in a particular way. Effectively,
you concatenate their string values together, with some unique separator,
into a property with the same name as your custom action. In the CA you read
that property and parse the values back out. Again there are some wix SDK
functions to make this simpler but it's not too tricky to do yourself either.
The limitations and process are described here
http://msdn.microsoft.com/en-us/library/windows/desktop/aa370543%28v=vs.85%29
.aspx

The choice between immediate and deferred should be based on whether the
action changes the system. Deferred actions run as the system, not as the
installing user. I'd recommend reading this section
http://msdn.microsoft.com/en-us/library/windows/desktop/aa368268%28v=vs.85%29
.aspx


-----Original Message-----
From: Natalie Carr [mailto:natalie.c...@measuresoft.com] 
Sent: 17 October 2012 11:40
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Adding ticks to immediate custom actions

Thanks Peter, I get 4 properties from my MSI in my custom action so that is
why it is immediate. Am I correct in thinking you cannot get properties in
deferred custom actions?

-----Original Message-----
From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
Sent: 17 October 2012 11:27
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Adding ticks to immediate custom actions

You ultimately have to call MsiProcessMessage. The Wix SDK might have some
useful functions to make that easier.  Scheduling a deferred CA with
WcaDoDeferredAction from the Wix SDK is easy because it allows you to specify
the ticks as its 3rd parameter. There might be an equivalent for immediate
actions. Have a read of the code for WcaDoDeferredAction in the wix sources
in wcawrap.cpp if there isn't.

-----Original Message-----
From: Natalie Carr [mailto:natalie.c...@measuresoft.com]
Sent: 17 October 2012 10:42
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Adding ticks to immediate custom actions

I have a few custom actions that run just before InstallFinalize and I am
trying to tidy up my progress bar because at the moment it runs two or three
times and looks empty just before the install completes. They are immediate
custom actions and I have used ProgressText to show text explaining what they
do for the user but I would like to know how to give them ticks so that they
are displayed correctly in the progress bar. Can anyone help me please?

 

Kind Regards,

 

Natalie Carr

 

 

----------------------------------------------------------------------------
-
-
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
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.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.


----------------------------------------------------------------------------
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-----------------------------------------------------------------------------
-
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free
today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to