Arghh, yes, thx! Viv ;)
On 3/26/2010 10:21 AM, ricky sundrani wrote: > Check the spelling INSTALLLOCATION in the value attribute > > > On Fri, Mar 26, 2010 at 2:45 PM, Viv coco<vcotirl...@hotmail.com> wrote: > > >> Hi, >> >> >> >> I want to save the path where my binaries are installed somewhere in the >> registry so I'm doing: >> >> >> >> [code] >> <Directory Id="TARGETDIR" Name="SourceDir"> >> <Directory Id="ProgramFilesFolder"> >> <Directory Id="MyFirstSetup" Name="MyFirstSetup"> >> <Directory Id="INSTALLLOCATION" Name="MyFirstSetup1.0"> >> >> <Component Id="MyExe" >> Guid="9660051E-43CA-4459-AEF1-290BBE3DE544"> >> <File Id="MyMainExe" Name="MyApp.exe" >> Source="..\MyApp\Debug\MyApp.exe" DiskId="1" KeyPath="yes"/> >> </Component> >> >> <!-- Create also a registry entry with the INSTALLLOCATION. For >> now it's getting in the registry as an empty value, probably b/c when this >> is done INSTALLLOCATION was not yet evaluated to it's final value--> >> <Component Id="MyRegistryComponent" >> Guid="7B2F2C2A-9BF3-4D67-BBD6-9C58FFCFB5A1"> >> <RegistryKey Id="MySetupRegKey" Root="HKLM" >> Key="Software\MySetup" Action="createAndRemoveOnUninstall"> >> <RegistryValue Id="MySetupRegValue" Type="string" >> Name="InstallDir" Value="[INSTALLOCATION]"/> >> </RegistryKey> >> </Component> >> >> </Directory> >> </Directory> >> </Directory> >> [/code] >> >> >> >> but the string in the registry is empty. How can I do so that in the >> registry I get the INSTALLLOCATION? What am I doing wrong in the above >> sample? >> >> >> >> TIA, >> Viv >> >> >> _________________________________________________________________ >> Hotmail: Free, trusted and rich email service. >> https://signup.live.com/signup.aspx?id=60969 >> >> ------------------------------------------------------------------------------ >> Download IntelĀ® 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® 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