You'll have to forgive Rob for being a man of few words - he's a newlywed
and probably out of breath ;) (Congratulations!). Here's how I passed
multiple properties but I can't take credit for this - I found the example
somewhere else:
<!-- custom action that passes a global property to the 'DoCleanup' custom
action (note the property 'Name' being set is actually the name of the
custom action containing the script!) -->
<CustomAction Id="DoCleanup.SetProperty" Return="check" Property="DoCleanup"
Value="[SITE.ID]|[SITE.NAME]|[SITE.PWD]|IISVERSION|[ComputerName]|[INSTALLDIR]"
/>
<!-- define a deferred custom action and point to the binary resource
that'll be embedded -->
<CustomAction Id="DoCleanup" Return="check" Execute="deferred"
BinaryKey="Cleanup_vbs" VBScriptCall="Execute"/>
<Binary Id="Cleanup_vbs" src="Cleanup.vbs"/>
<InstallExecuteSequence>
<!-- schedule cleanup after files are installed -->
<Custom Action="DoCleanup.SetProperty" After="InstallFiles"/>
<Custom Action="DoCleanup" After="DoCleanup.SetProperty">NOT
Installed</Custom>
</InstallExecuteSequence>
In the above example, several properties are passed separated by the pipe
("|") character which are then parsed into separate values in the VBScript
with: a = Split(Property("CustomActionData"),"|")
Regards,
John
On 11/21/06, Rob Mensching <[EMAIL PROTECTED]> wrote:
No, but your CustomAction can read Properties.
*From:* [EMAIL PROTECTED] [mailto:
[EMAIL PROTECTED] *On Behalf Of *Bahar Shah
*Sent:* Friday, November 03, 2006 06:44
*To:* wix-users@lists.sourceforge.net
*Subject:* [WiX-users] Multiple parameters in CA dll
Is there a way to pass multiple parameter to a function in a CA dll ?
Say I need to pass 3 paramater to a function in my dll ?
Can I pass parameter to CA scheduled for imediate action and not deffered
Regards
Bahar
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users