Having just done this, it will work. Except you have to write the command
line parsing yourself. :) In your Run method, grab the CommandLine from
the Engine and it will have all the options *not* related to Burn.

John
Wintellect
http://www.wintellect.com
+1-877-968-5528



On 4/19/11 5:18 PM, "Stanfield, Albert R" <albert.r.stanfi...@intel.com>
wrote:

>Will the below work for the standard Burn executable?  I.e. using Vadym's
>example below could I run 'bootstrapper.exe -old_db_name="YeOldeName"'
>and have DB_NAME set to "YeOldeName"?
>
>--Albert
>
>-----Original Message-----
>From: Vadym Verba [mailto:vve...@sdl.com]
>Sent: Monday, February 21, 2011 1:38 AM
>To: wix-users@lists.sourceforge.net
>Subject: Re: [WiX-users] Burn: Planning: package customization
>
>Actually Bob Arnson was right.
>I have the following code works:
>1) In Bundle.wxs:
><Variable Name="db_name" Value="old_db_name"/> <Chain>  <MsiPackage
>Id=SomeMsiId SourceFile="some.msi">
>  <MsiProperty Name="DB_NAME" Value="db_name"/>  </MsiPackage> </Chain>
>2) In BA managed code:
>MyBootstrapperApplication.Bootstrapper.Engine.StringVariables["db_name"]
>= "new_db_name"; Now some.msi will be launched something like this:
>msiexec.msi /I some.msi DB_NAME="new_db_name"
>The tip is: Value in MsiProperty values EXPRESSION that can contains
>references to Burn variables (like db_name in my example)
>
>------------------------------------
>From: "Dan Vasilov" <d...@rms.ro>
>Subject: Re: [WiX-users] Burn: Planning: package customization
>To: "'General discussion for Windows Installer XML toolset.'"
>       <wix-users@lists.sourceforge.net>
>Message-ID: <005301cbd195$cdd65860$69830920$@ro>
>Content-Type: text/plain;      charset="us-ascii"
>
>       You can implement the bootstrapper to launch the .msi package using the
>command line msiexec /I {package.msi} PROPERTY1=value1 PROPERTY2=value2.
>       However, if you do this, you have to manually manage all specific
>scenarios (upgrade, uninstall, patch, etc).
>       A better solution is to encapsulate the code to retrieve specific
>information in custom actions and drop the bootstrapper altogether.
>       
>       Dan
>
>SDL PLC confidential, all rights reserved.
>If you are not the intended recipient of this mail SDL requests and
>requires that you delete it without acting upon or copying any of its
>contents, and we further request that you advise us.
>SDL PLC is a public limited company registered in England and Wales.
>Registered number: 02675207.
>Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
>SL6 7DY, UK.
>
>
>--------------------------------------------------------------------------
>----
>The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
>Pinpoint memory and threading errors before they happen.
>Find and fix more than 250 security defects in the development cycle.
>Locate bottlenecks in serial and parallel code that limit performance.
>http://p.sf.net/sfu/intel-dev2devfeb
>_______________________________________________
>WiX-users mailing list
>WiX-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/wix-users
>
>--------------------------------------------------------------------------
>----
>Benefiting from Server Virtualization: Beyond Initial Workload
>Consolidation -- Increasing the use of server virtualization is a top
>priority.Virtualization can reduce costs, simplify management, and
>improve 
>application availability and disaster protection. Learn more about
>boosting 
>the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
>_______________________________________________
>WiX-users mailing list
>WiX-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to