On Mon, Dec 22, 2008 at 10:11 PM, Jim Williams <jimwilliam...@comcast.net>wrote:
> Do you have Appsearch in the InstallExecute sequence? Also, you could > check > the log file and see what is happening. > > Jim Williams > I've checked the log file (using msiexec /L*v) but there really isn't anything in there to help. All it says is that INSTALLDIR gets set to D:\ - no mention of my registry search at all. I don't know what AppSearch is, or what the InstallExecute sequence is. I haven't seen any mention of those in the examples or tutorials. > > -----Original Message----- > From: Colin Fox [mailto:greenene...@gmail.com] > Sent: Monday, December 22, 2008 9:46 PM > To: wix-users > Subject: [WiX-users] Install location based on registry key > > I really hate to be a broken record, but there is only one issue stopping > me > from getting my installer working. > > I just need to be able to read a location out of a registry key and then > store 3 files there. > > None of the examples really fit the bill, and the one example linked to in > the big tutorial doesn't actually work. > > > The relevant portion of my wix file is this: > > <Media Id="1" Cabinet="Product.cab" EmbedCab="yes" /> > <Property Id="INSTALLDIR"> <RegistrySearch > Id='SharepointRegistry' Type='raw' > Root='HKLM' Key='SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\' > Name='SharePoint' /> > </Property> > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="INSTALLDIR"> > <Directory Id="INSTALLLOCATION" Name="ml"> > > <Component Id="ProductComponent" > Guid="89C02981-D751-411f-9616-A202547F9D5F"> > > <File Id="MLSP_asmx"...> > > > >From the docs, and tutorial, and samples, it LOOKS like the setting of > INSTALLDIR in the property should work - it should set the INSTALLDIR value > to be whatever was retrieved from the registry key. I just need to install > my files in a subdirectory called "ml" under SharePoint's ISAPI directory. > > However, INSTALLDIR always gets set to d:\ instead for some reason. So > INSTALLLOCATION always ends up d:\ml. > > Can someone PLEASE show me a working example of grabbing some location from > a registry key and storing a file there? > > I'll give you a million billion dollars. Or at least my endless gratitude. > > Thanks, Colin ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users