The other thing you will have to do is to save the path in your MSI (e.g.
In the registry) and then retrieve it in your bundle so that on an upgrade
the previous path is restored e.g.:

<Variable Name="InstallFolder" Type="string"
Value="[ProgramFilesFolder]<company>\<app>" Persisted="yes"
bal:Overridable="yes" />
    <util:RegistrySearch Id="PreviousInstallFolderSearch" Root="HKLM"
Key="SOFTWARE\<company>\<app>" Value="savedPath"
Variable="PreviousInstallFolder" />
    <util:DirectorySearch Path="[PreviousInstallFolder]"
Variable="InstallFolder" After="PreviousInstallFolderSearch"
Condition="PreviousInstallFolder" />


Neil


>You'll have a variable for the path
>        <Variable Name="InstallFolder"
>Value="[ProgramFilesFolder]<companyname>\<productname>" Persisted="yes"
>bal:Overridable="yes" Type="string" />
>
>Which you pass to your MSI using MSIProperty. Assuming you use INSTALLDIR
>as
>your directory Id in your MSI, as is commonly used, it looks like this:
>
><MsiProperty Name="INSTALLDIR" Value="InstallFolder" />
>
>The content of @Value is a burn expression so it is evaluated.
>
>-----Original Message-----
>From: Kelly Graus [mailto:kelly.gr...@toltech.net]
>Sent: 01 October 2012 06:06
>To: General discussion for Windows Installer XML toolset.
>Subject: Re: [WiX-users] Remove Options button from Burn?
>
>A related question: how do you support the option to change the
>installation
>directory? I'm guessing its passed to the msi as a variable? I'm sure it's
>probably easy, but my google skills are failing me :-).
>
>Kelly
>
>On Sep 30, 2012, at 10:02 PM, Rob Mensching <r...@robmensching.com> wrote:
>
>> Yes, see the WixStandardBootstrapperApplication element.
>> 
>> On Sun, Sep 30, 2012 at 3:33 PM, Dave Steckler
><davidsteck...@gmail.com>wrote:
>> 
>>> Looking through the archives, this has been asked a few times, but
>>> not answered yet, so I thought I'd ask again:
>>> 
>>> Is there any relatively simple way to remove the Options button when
>>> creating a Burn install? I'm using
>>> WixStandardBootstrapperApplication.HyperlinkLicense, but with an
>>> empty LicenseUrl to skip the EULA page. I have a simple install, and
>>> want it to be nothing more than: "Install" -> "Done" (everything goes
>>> to a nice default location under Program Files)
>>> 
>>> But it shows the Options button. Knowing my users, g*d only knows
>>> what they might screw up with that...
>>> 
>>> Thanks,
>>> 
>>>    Dave
>>> 
>>> ---------------------------------------------------------------------
>>> --------- Everyone hates slow websites. So do we.
>>> Make your web apps faster with AppDynamics Download AppDynamics Lite
>>> for free today:
>>> http://ad.doubleclick.net/clk;258768047;13503038;j?
>>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> 
>> 
>> 
>> --
>> virtually,
>> 
>>   Rob Mensching
>>   http://RobMensching.com LLC
>> ----------------------------------------------------------------------
>> --------
>> Got visibility?
>> Most devs has no idea what their production app looks like.
>> Find out how fast your code is with AppDynamics Lite.
>> http://ad.doubleclick.net/clk;262219671;13503038;y?
>> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>--------------------------------------------------------------------------
>---
>-
>Got visibility?
>Most devs has no idea what their production app looks like.
>Find out how fast your code is with AppDynamics Lite.
>http://ad.doubleclick.net/clk;262219671;13503038;y?
>http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>_______________________________________________
>WiX-users mailing list
>WiX-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/wix-users
>SDL PLC confidential, all rights reserved.
>If you are not the intended recipient of this mail SDL requests and
>requires that you delete it without acting upon or copying any of its
>contents, and we further request that you advise us.
>SDL PLC is a public limited company registered in England and Wales.
>Registered number: 02675207.
>Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire
>SL6 7DY, UK.
>
>
>--------------------------------------------------------------------------
>----
>Got visibility?
>Most devs has no idea what their production app looks like.
>Find out how fast your code is with AppDynamics Lite.
>http://ad.doubleclick.net/clk;262219671;13503038;y?
>http://info.appdynamics.com/FreeJavaPerformanceDownload.html
>_______________________________________________
>WiX-users mailing list
>WiX-users@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to