I would begin by asking why the bundle needs to know anything more than
the path. If you plan on reading values of a config file in the bundle and
passing this to other packages, you could accomplish the same thing with a
public property and a custom action to read the value with a relative path (and
file name) from the dependent packages. If you intend on modifying machine
state from within your bundle, then you need to find a better solution as your
bundle doesn't run elevated and can't normally accomplish this.
If you are writing your own BA, then there is nothing preventing you
from writing logic to update variables post package installation (but I would
still challenge the need for this).
-----Original Message-----
From: Kristian Jaksch [mailto:[email protected]]
Sent: Monday, February 25, 2013 3:36 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Pass value from msi to bundle
Hmmm... I was thinking about this one more time and it turned out it might not
solve my issue after all. What I needed was actually the full path of a file
and not only the installation directory (actually the application's config
file).
So how can I get out the file name and path of the application's config from
the msi installer to the bundle? As I said earlier I was thinking of letting
the msi installer write the file path and name to the registry and then let the
bootstrapper read that value but I don't understand how I can do a registry
search after the msi package has been installed? Can I trigger a registrysearch
and get hold of the value in the registry in some way in the bootstrapper?
Thanks again!
/Kristian
2013/2/22 Kristian Jaksch <[email protected]>
> I could do that actually. Thanks for the tip!
>
> /Kristian
>
>
> 2013/2/22 Hoover, Jacob <[email protected]>
>
> Are you selecting this location via the BA or the MSI? The best way to
> do
>> this would be via the bundle, and pass it into the MSI as a property.
>> That way you can tell burn to remember the value of the variable for you.
>>
>> <Variable Name="Foo" Value="[ProgramFilesFolder]\Bar"
>> Persisted="yes"/>
>>
>> <MsiPackage ...>
>> <MsiProperty Name="TARGETDIR" Value="[Foo]" /> </MsiPackage>
>>
>> -----Original Message-----
>> From: Kristian Jaksch [mailto:[email protected]]
>> Sent: Friday, February 22, 2013 10:25 AM
>> To: General discussion for Windows Installer XML toolset.
>> Subject: [WiX-users] Pass value from msi to bundle
>>
>> I have a custom managed bootstrapper and I want to get a parameter
>> from the msi package that are installed in the bundle. So, when the
>> msi has been installed I want to get the installation directory out to the
>> bootstrapper.
>> How can this be done in the best way? I read about storing values in
>> the registry but I don't understand how to find that from the
>> bootstrapper since registry searches are done before installations. Other
>> ideas?
>>
>> Thanks!
>>
>> /K
>>
>> ---------------------------------------------------------------------
>> --------- Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics Download AppDynamics Lite
>> for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> WiX-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> ---------------------------------------------------------------------
>> --------- Everyone hates slow websites. So do we.
>> Make your web apps faster with AppDynamics Download AppDynamics Lite
>> for free today:
>> http://p.sf.net/sfu/appdyn_d2d_feb
>> _______________________________________________
>> WiX-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics Download AppDynamics Lite for free
today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users