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