Wait, after re-reading Blair's email 2-4 times, I realized what he is suggesting. Correct me if I'm wrong...
I don't need to bother with ARPINSTALLLOCATION at all, instead I should use AppSearch/ComponentSearch at startup (during uninstall/upgrade) for a "well-known" component (mostly one in MYROOTDIR) and somehow (this is where I'm a bit unclear) use the search results to set MYROOTDIR. That sounds like a great idea. I'll need to look into AppSearch/ComponentSearch a bit more to determine how I would leverage it to obtain the currently installed "well-known" component's install directory. Thanks. On Fri, Nov 22, 2013 at 10:00 AM, Blair Murri <os...@live.com> wrote: > You would need to set either MYROOTDIR or FEAT1DIR (whichever is the most > parent you are using) from an AppSearch of some sort. Best is to use a > component search if you have a component using the parent-most directory > you are using. You could use a registry search to retrieve > ARPINSTALLLOCATION if you don’t have a component handy. > > > > > > > Blair > > > > > > From: Tony > Sent: Friday, November 22, 2013 5:26 AM > To: General discussion for Windows Installer XML toolset. > > > > > > So, how best can I resolve this issue? Given the directory structure > below... > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="MYROOTDIR" Name="Company"> <!-- we don't install under > program files, by default --> > <Directory Id="FEAT1DIR" Name="Feature1"/> > </Directory> > </Directory> > > I allow the installer to change MYROOTDIR during the UI sequence, so some > time _after_ the UI sequence I'll need to set ARPINSTALLLOCATION (during > install only). During uninstall/upgrade how do I retreive the > InstallLocation value? Will it be set to ARPINSTALLLOCATION by Windows > Installer? Or do I need to read the registry myself with a > AppSearch/RegLocator? > > > > On Thu, Nov 21, 2013 at 11:58 PM, Blair Murri <os...@live.com> wrote: > > > And that is part of the reason for the best practice advice to not use > > TARGETDIR for anything except the "parent" of directories that are > defined > > by well known system paths. > > > > -Blair > > > > > From: r...@robmensching.com > > > To: wix-users@lists.sourceforge.net > > > Date: Fri, 22 Nov 2013 00:32:25 +0000 > > > Subject: Re: [WiX-users] InstallLocation (reg value) vs TARGETDIR vs > > Volume free space... > > > > > > Depends how you defined InstallLocation in your Directory tree. The > > TARGETDIR behavior you noted is the Windows Installer documented > behavior. > > > > > > -----Original Message----- > > > From: Tony [mailto:yellowjacketl...@gmail.com] > > > Sent: Friday, November 22, 2013 2:04 AM > > > To: WiX Users > > > Subject: [WiX-users] InstallLocation (reg value) vs TARGETDIR vs Volume > > free space... > > > > > > We have couple of environments in which C: has less free space than E:. > > > During install we select C:\... for installation and the product > > installs and runs fine. However, during uninstall, TARGETDIR is set to > E: > > which causes the uninstall to fail. We have worked around this issue by > > explicitly setting TARGETDIR on the command line when we uninstall. This > > is far from ideal. > > > > > > I noticed today in the Uninstall registry tree entry for our product, > > that InstallLocation value is not set. If this were correctly set to > C:\... > > > would this fix our issue? How exactly do I make sure WiX sets > > InstallLocation? > > > > > > -- > > > Tony > > > > > > ------------------------------------------------------------------------------ > > > Shape the Mobile Experience: Free Subscription Software experts and > > developers: Be at the forefront of tech innovation. > > > Intel(R) Software Adrenaline delivers strategic insight and > > game-changing conversations that shape the rapidly evolving mobile > > landscape. Sign up now. > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > WiX-users mailing list > > > WiX-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > Shape the Mobile Experience: Free Subscription > > > Software experts and developers: Be at the forefront of tech > innovation. > > > Intel(R) Software Adrenaline delivers strategic insight and > game-changing > > > conversations that shape the rapidly evolving mobile landscape. Sign up > > now. > > > > > > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > > > _______________________________________________ > > > WiX-users mailing list > > > WiX-users@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > ------------------------------------------------------------------------------ > > Shape the Mobile Experience: Free Subscription > > Software experts and developers: Be at the forefront of tech innovation. > > Intel(R) Software Adrenaline delivers strategic insight and game-changing > > conversations that shape the rapidly evolving mobile landscape. Sign up > > now. > > > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > > _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > -- > Tony > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Shape the Mobile Experience: Free Subscription > Software experts and developers: Be at the forefront of tech innovation. > Intel(R) Software Adrenaline delivers strategic insight and game-changing > conversations that shape the rapidly evolving mobile landscape. Sign up > now. > http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Tony ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users