What Alex means is you can set the ARPINSTALLLOCATION property
(http://msdn.microsoft.com/en-us/library/aa367589.aspx) to do that for
you using a type 51 custom action. The following code should work for
you Thomas:

    <CustomAction Id="SetARPInstallLoc" Property="ARPINSTALLLOCATION"
Value="[INSTALLDIR]" />

    <InstallExecuteSequence>
      <Custom Action="SetARPInstallLoc" Before="RegisterProduct" />
    </InstallExecuteSequence>

That will (should) set the "InstallLocation" value under
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{
YOUR-PRODUCT-GUID}

Good Luck.

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: Alex Ivanoff [mailto:alex.ivan...@shavlik.com] 
Sent: 29 March 2010 17:00
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Save and reuse previous InstallDir

ARPINSTALLLOCATION.


-----Original Message-----
From: Thomas Kehl [mailto:t.k...@ppsoftware.ch]
Sent: Monday, March 29, 2010 10:45
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Save and reuse previous InstallDir

Hi.

What does I have to do, that my installer savest he InstallDir which the
user has browse and installed to and reuse it for an update?

Thank you.

Thomas

------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------
------
Download Intel&#174; Parallel Studio Eval Try the new software tools for
yourself. Speed compiling, find bugs proactively, and fine-tune
applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to