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

Reply via email to