OK...the merge module's file is plugin.wxs:

<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
   <Module Id='NHActPlugin' Guid='B18E84EC-2B44-435c-9EE7-A35DEB1EFF51'
Language='1033' Version='1.0.0.0'>
      <Package Id='B18E84EC-2B44-435c-9EE7-A35DEB1EFF51' Description='NH Act
Plugin Merge Module'
                Comments='This merge module installs the Act! plugin that
allows the NH Core PIM library
                                        to communicate and retrieve data from 
Act! 2005 and Act!
2006'
                Manufacturer='NH Software Corporation'
InstallerVersion='200' Compressed='yes' />
      <Directory Id='ACTPATH' Name='ActDir'>
         <Directory Id='PluginsDir' Name='Plugins'>
            <Component Id='Plugin'
Guid='31A99920-6E0A-4e31-B569-180D46439930'>
               <File Id='NHPlugindll' Name='NHPlugin.dll' src='NHPlugin.dll'
/>
            </Component>
         </Directory>
      </Directory>

        <Property Id="ACTPATH">
          <RegistrySearch Id='ActInstallDir' Type='raw'
            Root='HKLM' Key='SOFTWARE\ACT\Install' Name='InstallPath' />
        </Property>
   </Module>
</Wix>

The tester app looks like:

<?xml version='1.0'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2003/01/wi'>
   <Product Id='12345678-1234-1234-1234-123456789012' Name='Test Package'
Language='1033' 
            Version='1.0.0.0' Manufacturer='Microsoft Corporation'>
      <Package Id='12345678-1234-1234-1234-123456789012'
               Description='My first Windows Installer package'
               Comments='This is my first attempt at creating a Windows
Installer database'
               Manufacturer='Microsoft Corporation' InstallerVersion='200'
Compressed='yes' />

      <Media Id='1' Cabinet='product.cab' EmbedCab='yes' />
 
      <Directory Id='TARGETDIR' Name='SourceDir'>
         <Directory Id='ProgramFilesFolder' Name='PFiles'>
            <Directory Id='MyDir' Name='TestProg' LongName='Test Program'>
               <Component Id='MyComponent'
Guid='12345678-1234-1234-1234-123456789012'>
                  <File Id='readme' Name='readme.txt' DiskId='1'
src='readme.txt' />
               </Component>
               <Merge Id='NHActPlugin' Language='1033' src='plugin.msm'
DiskId='1' />
            </Directory>
         </Directory>
      </Directory>

      <Feature Id='MyFeature' Title='My 1st Feature' Level='1'>
         <ComponentRef Id='MyComponent' />
         <MergeRef Id='NHActPlugin' />
      </Feature>
   </Product>
</Wix>

The registry key that is being searched for is:

HKEY_LOCAL_MACHINE\SOFTWARE\ACT\Install and the name of the value is
"InstallPath"

Thanks
-- 
View this message in context: 
http://www.nabble.com/merge-module-installation-location-tf1955504.html#a5365298
Sent from the wix-users forum at Nabble.com.



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to