> I want my installer to be silent installation. for that I want to pass
> the
> values to all the properties.
> I can want to give all the values in a text file and read them. But my
> doubt
> is when to shedule this custom action?
> before executing the msi
> msiexec /i /q aa.msi INSTALLDIR= MYPROPERTY=....

A custom action cannot occur before executing the MSI. Custom actions are 
inherently part of the MSI. You could create a custom action that reads the 
text file and sets properties. If you're using Wix 3.0, You could use the DTF 
tools to create that custom action in managed code.

Another option is to use a separate SETUP.exe executable, such as a 
bootstrapper. The executable could read the text file and construct the command 
line that is used to call MSIEXEC. There is a limit, however, to how many 
properties you'll be able to defined on the command line. Windows limits 
commands to 2048 characters.

Here's a link where somebody has done a similar type of thing using a VBScript 
custom action:
http://blog.coretech.dk/section/scripting/vbscript-scripting/automated-windows-installer-properties-from-ini-embedded-vbscript/

- Don Benson -

CONFIDENTIALITY NOTICE: This email and any files transmitted with it are the 
property of Tribute Inc. and/or its affiliates. The contents of this 
communication are confidential and may contain information that is privileged 
and/or exempt from disclosure under applicable law. It is intended solely for 
use of the individual or entity to whom this email is addressed. If you are not 
one of the named recipient(s) or otherwise have reason to believe that you have 
received this message in error, please notify the sender and immediately delete 
this message and any attachments. Any unauthorized use, retention, 
dissemination, forwarding, printing, or copying of this email is strictly 
prohibited.

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to