On Tue, Dec 23, 2008 at 10:55 AM, Alexander Shevchuk < alexander.shevc...@microsoft.com> wrote:
> Hi Colin, > > Try this: > > - Use AppSearch to set the value of public property, say - SHAREPOINT > > <Property Id="SHAREPOINT"> > <RegistrySearch ... /> > </Property> > > - Schedule custom action type 35: > > <CustomAction Id="SetInstallDir" Directory="INSTALLDIR" > Value="[SHAREPOINT]" /> > > <InstallExecuteSequence> > <Custom Action="SetInstallDir" After="CostFinalize">NOT Installed</Custom> > </InstallExecuteSequence> > > You should be good to go. Make sure that your custom action is scheduled > after CostFinalize. > > Alex > Ok, I changed it to this, but still no luck: <?xml version="1.0" encoding="utf-8"?> <Wix xmlns="http://schemas.microsoft.com/wix/2003/01/wi"> <Product Manufacturer="My Software Corp." Id="2997E6AB-09BF-446B-A11F-EF40F546BD7C" Language="1033" Name="My Web Service" Version="4.0.0.0"> <Package Id="44F26F48-D493-4C7F-9A30-5496400A0AB0" Keywords="Installer" Description="WebService for stuff" Comments="No Comment" Manufacturer="My Software Corp." InstallerVersion="200" Languages="1033" Compressed="yes" SummaryCodepage="1252" /> <Property Id="SPLOCATION"> <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="MySP_asmx" Name="MySPExt.asm" LongName="MySPExtensions.asmx" Vital="yes" KeyPath="yes" DiskId="1" /> <File Id="MySP_wsdl" Name="MySPwsdl.asp" LongName="MySPExtensionswsdl.aspx" Vital="yes" DiskId="1" /> <File Id="MySP_disco" Name="MySPdsco.asp" LongName="MySPExtensionsdisco.aspx" Vital="yes" DiskId="1" /> </Component> </Directory> </Directory> </Directory> <CustomAction Id="SetInstallDir" Return="check" Execute="firstSequence" Property="INSTALLDIR" Value="[SPLOCATION]" /> <InstallExecuteSequence> <Custom Action="SetInstallDir" After="CostFinalize">NOT Installed</Custom> </InstallExecuteSequence> <Feature Id="ProductFeature" Title="Feature Title" Level="1"> <ComponentRef Id="ProductComponent" /> </Feature> <Media Id="1" EmbedCab="yes" Cabinet="Product.cab" /> <UI /> </Product> </Wix> I can't believe that such a trivial thing is so difficult. This is something right out of the tutorial. Am I just doing something incredibly stupid that I'm overlooking? -- Regards, cf ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users