Post your Directory Tree where INSTALLDIR is used (not the entire thing
just a decent snippet) & the Property element you use for
WIXUI_INSTALLDIR.

Your RegistrySearch looks fine but the Custom Action may not be
necessary (also you need a capital C in LaunchConditions).

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer


-----Original Message-----
From: Andy.Kruger [mailto:appr...@gmail.com] 
Sent: 06 May 2010 15:44
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Hide InstallDirDlg during upgrade


Okie I'm clear about the first part, 

This is what I'm doing to retain the old INSTALLDIR

  <Property Id="INSTALLDIR">
      <RegistrySearch Id="Locate_22InstallDir" Root="HKLM"
Key="Software\ABC\productName\1.0" Name="InstallPath" Type="raw"/>
    </Property>

<CustomAction Id="SetInstallDir" Property="WIXUI_INSTALLDIR"
Value="[INSTALLDIR]" Execute="immediate"/>

<InstallUISequence>
<Custom Action="SetInstallDir" After="AppSearch" ></Custom>
</InstallUISequence>

<InstallExecuteSequence>
<Custom Action="SetInstallDir" After="Launchconditions" ></Custom>
</InstallExecuteSequence>

But this doesn't work.
Upgrade always installs to the default path.
any ideas??

-----
Andy
MSI Developer
Schneider Electric
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Hide-Insta
llDirDlg-during-upgrade-tp5014310p5014556.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to