Discussion:
[WiX-users] Deferred vs Immediate custom action
Sean Farrow
2010-12-28 10:47:02 UTC
Permalink
Hi:
I'm currently using the QuietExec custom action to run a command line tool which itself creates extra files.
Given that this creates files is this considered changing the state of the system? If so should I run this as a Deferred action? Or can I get away with an immediate action?
Also does the custom action in wixUtil clear the properties used after executing?
Cheers
Sean.
Rob Mensching
2010-12-28 16:30:54 UTC
Permalink
Certainly sounds like you are modifying machine state.

If the user clicks cancel after the custom action runs, should the files be
removed (probably "Yes" unless they are temp files in the temp folder)? If
so, then you must be deferred and you need a rollback custom action.

Which custom action in WixUtil (there are several)? Which properties? I
expect the answer is no since it usually doesn't matter.
On Tue, Dec 28, 2010 at 2:47 AM, Sean Farrow
Post by Sean Farrow
I'm currently using the QuietExec custom action to run a command line tool
which itself creates extra files.
Given that this creates files is this considered changing the state of the
system? If so should I run this as a Deferred action? Or can I get away with
an immediate action?
Also does the custom action in wixUtil clear the properties used after executing?
Cheers
Sean.
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment,
and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
virtually, Rob Mensching - http://RobMensching.com LLC
Sean Farrow
2010-12-28 18:33:48 UTC
Permalink
Hi Rob:
I'm thinking the QAQuiet custom action, and the CustomActionData property.
Also, how do I distinguish between a rollback and a standard custom action, is it just in the xml authoring or do I have to do something special in the ca itself.
Cheers
Sean.

-----Original Message-----
From: Rob Mensching [mailto:***@robmensching.com]
Sent: 28 December 2010 16:31
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Deferred vs Immediate custom action

Certainly sounds like you are modifying machine state.

If the user clicks cancel after the custom action runs, should the files be removed (probably "Yes" unless they are temp files in the temp folder)? If so, then you must be deferred and you need a rollback custom action.

Which custom action in WixUtil (there are several)? Which properties? I expect the answer is no since it usually doesn't matter.
On Tue, Dec 28, 2010 at 2:47 AM, Sean Farrow
Post by Sean Farrow
I'm currently using the QuietExec custom action to run a command line
tool which itself creates extra files.
Given that this creates files is this considered changing the state of
the system? If so should I run this as a Deferred action? Or can I get
away with an immediate action?
Also does the custom action in wixUtil clear the properties used after executing?
Cheers
Sean.
----------------------------------------------------------------------
-------- Learn how Oracle Real Application Clusters (RAC) One Node
allows customers to consolidate database storage, standardize their
database environment, and, should the need arise, upgrade to a full
multi-node Oracle RAC database without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
virtually, Rob Mensching - http://RobMensching.com LLC
Rob Mensching
2010-12-29 01:30:48 UTC
Permalink
1. No, quiet exec CA doesn't clear the property. If you have sensitive stuff
in there, mark it hidden.

2. Typically, the WiX custom actions schedule (via WcaDoAction()) the
rollback custom actions by name.

Have you looked at how the WiX custom actions work? I think you'll learn a
lot.

On Tue, Dec 28, 2010 at 10:33 AM, Sean Farrow
Post by Sean Farrow
I'm thinking the QAQuiet custom action, and the CustomActionData property.
Also, how do I distinguish between a rollback and a standard custom action,
is it just in the xml authoring or do I have to do something special in the
ca itself.
Cheers
Sean.
-----Original Message-----
Sent: 28 December 2010 16:31
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Deferred vs Immediate custom action
Certainly sounds like you are modifying machine state.
If the user clicks cancel after the custom action runs, should the files be
removed (probably "Yes" unless they are temp files in the temp folder)? If
so, then you must be deferred and you need a rollback custom action.
Which custom action in WixUtil (there are several)? Which properties? I
expect the answer is no since it usually doesn't matter.
On Tue, Dec 28, 2010 at 2:47 AM, Sean Farrow
Post by Sean Farrow
I'm currently using the QuietExec custom action to run a command line
tool which itself creates extra files.
Given that this creates files is this considered changing the state of
the system? If so should I run this as a Deferred action? Or can I get
away with an immediate action?
Also does the custom action in wixUtil clear the properties used after executing?
Cheers
Sean.
----------------------------------------------------------------------
-------- Learn how Oracle Real Application Clusters (RAC) One Node
allows customers to consolidate database storage, standardize their
database environment, and, should the need arise, upgrade to a full
multi-node Oracle RAC database without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment,
and, should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment,
and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
WiX-users mailing list
https://lists.sourceforge.net/lists/listinfo/wix-users
--
virtually, Rob Mensching - http://RobMensching.com LLC
Continue reading on narkive:
Loading...