I'm very new to WiX and installers/msi in general. I'm trying to setup an msi
product that will consist of multiple merge modules.

The way I have my project setup is I have a merge module project (named: MM
- CRM Admin Tool) with the main application files; several other merge
modules for other components (libraries, plugins, etc); a main package
project which will combine all the other merge modules. Right now I'm just
trying to get the main package to pick up a single merge module with ALL the
data and throw that together. 

Everything builds correctly, but when I run the msi, nothing gets installed.
See below for contents of my wxs files. 

As a side note I'm trying to build this using SharpSetup which integrates
with WiX to provide an easier way of doing the GUI portion of the installer.
This fact really should not impact this issue though.

------ Main Package -------
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"; 
                 xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension";>
        <?define AppCode = "CRM Admin Tool" ?>
        <?define AppProductCode = "{7c710300-5ce2-4ecb-ac02-609620aa28e2}" ?>
        <?define AppVersionMajor = "0" ?>
        <?define AppVersionMinor = "1" ?>
        <?define AppVersionPatch = "0" ?>
        <?define AppVersionBuild = "0" ?>
        <?define AppVersion =
"$(var.AppVersionMajor).$(var.AppVersionMinor).$(var.AppVersionPatch).$(var.AppVersionBuild)"
?>
        <?define AppManufacturer = "Pareto Systems" ?>
        <?define DefaultCulture = "en-US" ?>
        <Product Id="$(var.AppProductCode)"
                                         Name="$(var.AppCode)" 
                                         Language="!(loc.LANGUAGE)" 
                                         Version="$(var.AppVersion)" 
                                         Manufacturer="$(var.AppManufacturer)" 
                                         
UpgradeCode="83348404-f1ce-4ac9-941d-d507cf9a97bf">
                <Package Id="*" InstallerVersion="405" Compressed="yes" />
                <Media Id="1" Cabinet="media1.cab" EmbedCab="no" />
                <Property Id="INSTALLLEVEL" Value="100" />
                <Property Id="ALLUSERS" Value="1" />
                <Property Id="TEST" Value="NO" />
                <Icon Id="icon.ico" 
SourceFile="..\ProductBuild\CRMAdminTool.exe" />

                <PropertyRef Id="NETFRAMEWORK40FULL"/>
                <Condition Message='This setup requires the .NET Framework 4.0
installed.'>
                        <![CDATA[Installed OR NETFRAMEWORK40FULL]]>
                </Condition>
                
                
                <Directory Id="TARGETDIR" Name="SourceDir" DiskId="1">
                        <Directory Id="ProgramMenuFolder" Name="Programs">
                                <Directory Id="ProgramMenuDir" 
Name="!(loc.APPNAME)">
                                        <Component Id="pmd" 
Guid="{a06d1213-f6a7-4467-b979-e07718c12c4b}">
                                                <RegistryValue Root="HKCU"
Key="SOFTWARE\$(var.AppCode)\ProgramMenuDir" Type="string"
Value="ProgramMenuDir" KeyPath="yes" />
                                                <RemoveFolder 
Id="ProgramMenuDirRF" On="uninstall" />
                                        </Component>
                                </Directory>
                        </Directory>
                        <Directory Id="DesktopFolder" Name="Desktop" />
                </Directory>

                <?include Product.Uninstaller.wxi ?>
                <DirectoryRef Id="TARGETDIR">
                        <Directory Id="ProgramFilesFolder">
                                <Directory Id="INSTALLLOCATION" 
Name="$(var.AppCode)">
                                        <Merge Id="CRMAdminToolModule" 
Language="1033" SourceFile="$(var.MM -
CRM Admin Tool.TargetPath)" DiskId="1" />
                                </Directory>
                        </Directory>
                </DirectoryRef>

                <Feature Id='MainFeature' Level='1'
Title='!(loc.FEATURE.MAINFEATURE.TITLE)'
Description='!(loc.FEATURE.MAINFEATURE.DESCRIPTION)' Display='collapse'>
                        <ComponentRef Id='pmd' />
                        <MergeRef Id='CRMAdminToolModule'/>
                </Feature>
        </Product>
</Wix>

------ Merge Module -------
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <?define AppCode = "CRM Admin Tool" ?>
        <?define AppProductCode = "{7c710300-5ce2-4ecb-ac02-609620aa28e2}" ?>
        <?define AppVersionMajor = "0" ?>
        <?define AppVersionMinor = "1" ?>
        <?define AppVersionPatch = "0" ?>
        <?define AppVersionBuild = "0" ?>
        <?define AppVersion =
"$(var.AppVersionMajor).$(var.AppVersionMinor).$(var.AppVersionPatch).$(var.AppVersionBuild)"
?>
        <?define AppManufacturer = "Pareto Systems" ?>
        <?define DefaultCulture = "en-US" ?>
        <Module Id="MM___CRM_Admin_Tool" Language="!(loc.LANGUAGE)"
Version="$(var.AppVersion)">
                <Package Id="eb2b3b59-5460-4b4d-b8fd-539350fa28c0"
Manufacturer="$(var.AppManufacturer)" InstallerVersion="200" />

                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="INSTALLDIR">
                        </Directory>
                </Directory>
        </Module>
        <Fragment>
                <DirectoryRef Id="INSTALLDIR">
                        <Directory Id="dir4B33A04EB3BF537AE1AC117FA41FAF08" 
Name="Plugins" />
                </DirectoryRef>
                <ComponentGroup Id="ProductBuild">
                        <Component Id="cmpC0BAC01B4A68CA0AE8599BEAE64276A1"
Directory="INSTALLDIR" Guid="{89037832-B97E-4197-BBD5-90A086D42DB8}">
                                <File Id="filB2E933FE162CE3ABF473F998B483B5FD" 
KeyPath="yes"
Source="..\ProductBuild\CRMAdminTool.exe" />
                        </Component>
                        <!-- all the rest of the files -->
                <DirectoryRef Id="dir4B33A04EB3BF537AE1AC117FA41FAF08" />
        </Fragment>
</Wix>

-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Problem-with-Merge-Module-tp5519280p5519280.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to