Use the WiX "remember property" pattern if you want to preserve the value
of INSTALLFOLDER from the original install.

Phil Wilson


On Tue, Oct 22, 2013 at 10:53 AM, Dror, Tomer <tomer.d...@intergraph.com>wrote:

> Some of my registry keys use values from the Directory structure:
>
>
> <Directory Id="TARGETDIR" Name="SourceDir">
>         <Directory Id="INSTALLFOLDER" Name="Intergraph PPM SDKs">
>           <Directory Id="MA" Name="SDK">
>             <Directory Id="Documents" Name="Documents"/>
>            </Directory>
>         </Directory>
> </Directory>
>
>  <RegistryKey Root="HKLM" Key="SOFTWARE">
>           <RegistryKey Key="Intergraph">
>             <RegistryKey Key="SDK">
>               <RegistryValue Name="Path" Type="string" Value="[Documents]>
>             </RegistryKey>
>           </RegistryKey>
>         </RegistryKey>
>
> When applying a patch i am loosing the value of the Documents folder in
> the Path registry value.
> because i only asked for a path in the RTM which is passed to
> INSTALLFOLDER msi property
>
>
>
> Tomer Dror
> Intergraph Corporation.
> Intergraph Israel.
> P: +972 (4) 8779191-1222
>
> Skype:tomer.dee
> http://www.intergraph.com
>
>
>
> .
>
> ________________________________________
> From: Phil Wilson [phildgwil...@gmail.com]
> Sent: Tuesday, October 22, 2013 7:15 PM
> To: General discussion about the WiX toolset.
> Subject: Re: [WiX-users] Patching with BURN-how a patch knows about
> original install folder?
>
> A patch that is an update to installed components doesn't need to know
> folder locations unless you need to specify them for some other reason. For
> an update of component C-Guid of product code P-Guid it can locate the path
> to any component (as can any program) by calling MsiGetComponentPath
> (P-Guid, C-Guid...). This is one of the reasons that a having each file be
> the key of its component is a good thing.
>
> Phil Wilson
>
>
> On Tue, Oct 22, 2013 at 7:40 AM, tom <tomer.d...@intergraph.com> wrote:
>
> >
> > I wonder when running a patch bundle how the  patch bundle (acatually the
> > MSP) knows what is the install folder used by the RTM?
> > Looks like we are missing this values in the MSP and many of the
> > registration we do use  a directory defined
> > in wix msp project
> >
> > Thanks in advance
> >
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Patching-with-BURN-how-a-patch-knows-about-original-install-folder-tp7589894.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> >
> >
> ------------------------------------------------------------------------------
> > October Webinars: Code for Performance
> > Free Intel webinars can help you accelerate application performance.
> > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> > from
> > the latest Intel processors and coprocessors. See abstracts and register
> >
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to