There is a kind of built-in way, and that's to set the ARPINSTALLLOCATION property (with a type 51 set property CA) after you know the folder location. The good part about this is that it exposes the location to the standard APIs such as using MsiGetProductInfo (....INSTALLPROPERTY_INSTALLLOCATION... ) and the equivalents in script etc. The bad part about it is that retrieving it requires code because the registry search to find it is awkward. --------------- Phil Wilson
On Fri, Apr 18, 2014 at 9:45 AM, Neil Sleightholm <n...@x2systems.com> wrote: > Does that persist across an upgrade? (Last time I checked, admittedly in > v3.6, it didn't.) > > Neil > > -----Original Message----- > From: Phill Hogland [mailto:phogl...@rimage.com] > Sent: 18 April 2014 17:16 > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Preserving install directory on upgrade > > If your msi package will always be launched by a burn bundle, then you could > initialize and set Persisted=yes" on the burn string variable, which is then > passed as a MsiProperty to the package. But if the msi package will be > launched by on-demand msiexec install due to advertising or a repair issue, > or if the user would ever launch the msi directly, then the value of > properties used in the initial install should be saved and initialized the > next time the package is launched, as indicated previously. > > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Preserving-install-directory-on-upgrade-tp7594198p7594206.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the > definitive new guide to graph databases and their applications. Written by > three acclaimed leaders in the field, this first edition is now available. > Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/NeoTech _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users