Are you sure that the registry key that you are looking for exists on
the target machine?

-----Original Message-----
From: Colin Fox [mailto:greenene...@gmail.com] 
Sent: Tuesday, December 23, 2008 1:39 PM
To: wix-users
Subject: [WiX-users] Setting Install Location

I'm still having no luck setting the location of my install based on a
registry key.

I've tried all the suggestions but nothing works. And there is
definitely an
AppSearch segment in my .msi file.

I've done the steps from the tutorial but they're apparently
insufficient.

Also - when I check my logs, I'm not actually getting even a report of
my
registry search. This is incredibly frustrating.

Here is the entirety of my wxs file. The 3 files are indeed installed in
the
ml directory, but the ml directory is in the wrong place - d:\ instead
of
wherever sharepoint is.

<?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="INSTALLDIR">
      <RegistrySearch Id="SharepointRegistry" Root="HKLM"
Key="SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\"
Name="SharePoint"
Type="raw" />
    </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>
    <Feature Id="ProductFeature" Title="Feature Title" Level="1">
      <ComponentRef Id="ProductComponent" />
    </Feature>
    <Media Id="1" EmbedCab="yes" Cabinet="Product.cab" />
    <UI />
  </Product>
</Wix>


-----------------

I've also tried it by renaming the Property Id of the RegistrySearch to
SPLOCATION and then before the feature defintion adding:

    <CustomAction Id="REDOTARGET" Return="check" Execute="FirstSequence"
        Property="TARGETDIR" Value="[SPLOCATION]" />

This didn't help.

-- 
Regards,
 cf
------------------------------------------------------------------------
------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to