Video Screencast Help
Search Video Help Close Back
to help
New in the Rewards Catalog: Vouchers for "Symantec Technical Specialist" and "Symantec Certified Specialist" exams.

Why Custom Action Type 51 is Required

Updated: 19 Aug 2008 | 1 comment
piyushnasa's picture
0 0 Votes
Login to vote

If you have always wondered why we need to anSet Property Custom action when there is already a Property table to handle it, then this is for you.

Suppose we have to create a property based on the value of another property - in that case we cannot use the Property table to handle this. There will be a circular reference in which one property would be based on the other.

In this scenario we use Set Property Custom Action. To affect a property used in a condition on a component or feature, the custom action must come before the CostFinalize action in the action sequence.

Comments

R-Vijay's picture
19
Aug
2008
0 Votes 0
Login to vote

Example scenario...

One example scenario for this implementation is when we need a machine reboot to happen only after installation.
In this case, when we use REBOOT=Force property in the property table, it will show the restart dialog in every phases. (advertised installation, installation, repair and un-installation).

To avoid this, we can write a custom action which runs only while installation.

ie., If NOT Installed
Set property "REBOOT" with value "Force"
End
(just an algorithm)

Cheers'
Vijay

Microsoft MVP [Setup-Deploy]
Weblog: www.msigeek.com