Hi,
Thanks for posting. The custom actions in VS.Net Setup Projects are all
"deferred custom actions". You can try passing the data into the custom
action with the "CustomActionData":
CustomActionData Property
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxgrfcustomactiondataproperty.asp
The following walkthrough maybe useful to you:
Walkthrough: Passing Data to a Custom Action
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxwlkwalkthroughpassingdatatocustomaction.asp
In the walkthrough, the public property "EDITA1" is passed into the custom
action.
If you are work with an unmanaged (or managed) EXE file, you can also try
using the Arguments property for the custom action:
Arguments Property (Custom Actions)
http://msdn.microsoft.com/library/de...us/vsintro7/ht
ml/vxgrfargumentspropertycustomactions.asp
The usage of "Arguments" is similar to "CustomActionData" to pass the
properties.
To fail the installation in the custom action, you can try throwing an
Exception if it is an InstallerClass or return a non-zero value in the main
function for the EXE file.
I hope the information is useful to you.
Regards,
Felix Wang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.