Really?

So, it needs to be like this:

<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id='$(var.ProgramFolder)' Name='PFiles'>
<Directory Id='[Manufacturer]' Name='Company'>
<Directory Id='INSTALLDIR' Name='ProgramName'>

followed by the components and then set by

<Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />

I had the Directory Id set to "INSTALLLOCATION", so does this mean my 
installer would actually not install to the folder chosen by the user?



On 28/03/2011 19:58, maksim.vazhe...@emc.com wrote:
> INSTALLDIR has to be defined in this way:
>
> <Directory Id="INSTALLDIR" Name="YourProgramName">
>
> -Maksim
>
> -----Original Message-----
> From: Michel [mailto:mic...@acromania.nl]
> Sent: Monday, March 28, 2011 10:33 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] How to write INSTALLDIR to registry?
>
> INSTALLDIR is defined:
>
> <Property Id='WIXUI_INSTALLDIR' Value='INSTALLDIR' />
>
> But I followed your advice and I've now used "[#FileID]" and that works
> like a charm, thanks!
>
>
> On 28/03/2011 18:39, maksim.vazhe...@emc.com wrote:
>> It seems like INSTALLSIR isn't defined in your project. You can also use 
>> [#FileID] for full path of your file.
>>
>> -Maksim
>>
>> -----Original Message-----
>> From: Michel [mailto:mic...@acromania.nl]
>> Sent: Monday, March 28, 2011 9:03 AM
>> To: General discussion for Windows Installer XML toolset.
>> Subject: [WiX-users] How to write INSTALLDIR to registry?
>>
>> This is probably a very basic question, and if I read it right in the
>> documentation and tutorials online it should all work, but it doesn't...
>>
>> What I'm trying to do is write the full path to a filename in the
>> registry, but [INSTALLDIR] does not get replaced by the actual install dir:
>>
>> <Component Id='SomeEXE' Guid='someguid'>
>> <AppId Description="Some exe" Id="{some other guid}" />
>> <File Id='FileSomeEXE' Name='Some.exe' DiskId='1'
>> Source='..\SomeEXE\Release\$(var.Platform)\Some.exe' KeyPath='yes' />
>> <RegistryKey Id='ProductKey' Action='createAndRemoveOnUninstall'
>> Root='HKLM' Key='Software\[Manufacturer]\[ProductName]'>
>> <RegistryValue Id='SomeEXEValue' Action='write' Name='SomeEXEPath'
>> Type='string' Value='[INSTALLDIR]Some.exe'/>
>> <RegistryValue Id='SomeOtherValue' Action='write' Name='Something else'
>> Type='string' Value=''/>
>> </RegistryKey>
>> </Component>
>>
>> The registry on after installation looks like this:
>>
>> [HKLM\SOFTWARE\MyCompany\MyProduct]
>>       "SomeEXEPath"="Some.exe"
>>       "SomeOtherValue"=""
>>
>> What I want it to be is this:
>>
>> [HKLM\SOFTWARE\MyCompany\MyProduct]
>>       "SomeEXEPath"="C:\Program Files\MyCompany\MyProduct\Some.exe"
>>       "SomeOtherValue"=""
>>
>> or whatever path the user decided to install to.
>>
>> This should just work, or am I missing something?
>>
>>
>> ------------------------------------------------------------------------------
>> Enable your software for Intel(R) Active Management Technology to meet the
>> growing manageability and security demands of your customers. Businesses
>> are taking advantage of Intel(R) vPro (TM) technology - will your software
>> be a part of the solution? Download the Intel(R) Manageability Checker
>> today! http://p.sf.net/sfu/intel-dev2devmar
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>> ------------------------------------------------------------------------------
>> Enable your software for Intel(R) Active Management Technology to meet the
>> growing manageability and security demands of your customers. Businesses
>> are taking advantage of Intel(R) vPro (TM) technology - will your software
>> be a part of the solution? Download the Intel(R) Manageability Checker
>> today! http://p.sf.net/sfu/intel-dev2devmar
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> Enable your software for Intel(R) Active Management Technology to meet the
> growing manageability and security demands of your customers. Businesses
> are taking advantage of Intel(R) vPro (TM) technology - will your software
> be a part of the solution? Download the Intel(R) Manageability Checker
> today! http://p.sf.net/sfu/intel-dev2devmar
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and publish 
your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to