Joe
As you can see below, I actually use WixUI_Common but I have customised
it with a slightly different sequence that includes an additional dialog
I added. My UI section includes all the customisation code as well as
the property.
<UIRef Id="WixUI_Common" />
<UI>
....
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
....
</UI>
Pally is right though (and he is far more experienced than I when it
comes to doing this!), it look like you have everything correct. I had
a quick glance at Nick Ramirez's book and it/he also does the same thing
as you albeit with a slightly different name so the verbose log may be
the way to go.
Chris
BTW, I am using Wix 3.0. One of these days, perhaps I'll get round to
updating to V3.5 but if it 'ain't broke.....
On 08/04/2011 12:09 PM, Joe Tilley wrote:
> Chris,
>
> I'll give that a shot. You're adding the Property element directly to the UI
> element, not as a child of the UIRef element?
>
> Thanks
> _____________________________________
> Joe Tilley
> FW Murphy
> Software Engineer
> Office
> (918) 317-4130
> Email
> [email protected]
>
>
>
> -----Original Message-----
> From: Chris Lord [mailto:[email protected]]
> Sent: Thursday, August 04, 2011 10:15 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] WixUI_InstallDir always installs to the same
> directory
>
> Joe,
>
> My setup has INSTALLDIR property inside the UI section itself rather
> than on own, like this....
>
> <UI>
> ...
> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
> ...
> <\UI>
>
>
> And this works fine for me. Can't hurt to try it.
>
> Chris
>
>
> On 08/04/2011 10:57 AM, Joe Tilley wrote:
>> I'm using WixUI_InstallDir as the installer UI, and it pops up with my
>> INSTALLDIR as the default directory as it should, but when I type in a
>> different directory name into the text box, or browse to a different
>> directory, it doesn't seem to accept it. Even though it looks like you're
>> changing the install directory, it will always install to the default
>> INSTALLDIR directory.
>>
>> Here is my directory definition:
>> !--Define directory structure-->
>> <Directory Id="TARGETDIR" Name="SourceDir">
>> <Directory Id="ProgramFilesFolder">
>> <Directory Id="ManufacturerDirectory"
>> Name="$(var.ManufacturerDirectoryName)">
>> <Directory Id="INSTALLDIR" Name="$(var.ProductName)">
>> <Directory Id="ExtensionsDirectory" Name="Extensions" />
>> <Directory Id="MultiConfigDirectory" Name="MultiConfig" />
>> <Directory Id="UpgraderDirectory" Name="Upgrader" />
>> </Directory>
>> </Directory>
>> </Directory>
>>
>> <Directory Id="DesktopFolder" />
>>
>> <Directory Id="ProgramMenuFolder" />
>> </Directory>
>>
>> And the UI definition:
>> <!--Define a UI-->
>> <UIRef Id="WixUI_InstallDir" />
>> <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
>> <WixVariable Id="WixUIBannerBmp" Value="Resources\banner.bmp" />
>> <WixVariable Id="WixUIDialogBmp" Value="Resources\dialog.bmp" />
>>
>>
>> It doesn't seem like there's a lot that can go wrong there. Am I missing
>> something?
>>
>> Thanks
>> _____________________________________
>>
>> Joe Tilley
>>
>> FW Murphy
>>
>> Software Engineer
>>
>> Office
>>
>> (918) 317-4130
>>
>> Email
>>
>> [email protected]
>>
>>
>>
>>
>>
>>
>>
>> “This message and any attachments may contain FW Murphy information
>> that is highly confidential, privileged, and exempt from
>> disclosure. Any recipient other than the intended recipient is
>> advised that dissemination, distribution, copying, or other use of
>> this message is strictly prohibited. If you have received this
>> message in error, please notify the sender immediately, plus delete
>> the message and any backups.”
>> ------------------------------------------------------------------------------
>> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
>> The must-attend event for mobile developers. Connect with experts.
>> Get tools for creating Super Apps. See the latest technologies.
>> Sessions, hands-on labs, demos& much more. Register early& save!
>> http://p.sf.net/sfu/rim-blackberry-1
>> _______________________________________________
>> WiX-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos& much more. Register early& save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
> The must-attend event for mobile developers. Connect with experts.
> Get tools for creating Super Apps. See the latest technologies.
> Sessions, hands-on labs, demos& much more. Register early& save!
> http://p.sf.net/sfu/rim-blackberry-1
> _______________________________________________
> WiX-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users