Senthil Babu
Senthil Babu

Reputation: 21

How to set merge Module installation location to Installdirectory

I am creating a merge module for Firebird in Wix 3.6, the merge module default path goes to the window drive, Please guide me how to set permanently the merge module installation directory to the Installation directory selected by the user during installation time. Which ever path the user selects, the merge module need to be installed to the application path.

for example

User selected path\application name\app.exe (Or)

User selected path\application name\mergemodulefolder (Or)

User selected path\app.exe (Or)

User selected path\mergemodulefolder

Actually in installshield this can be done by right clicking the merge module and setting the installation location from the drop down menu

Thanks

Upvotes: 2

Views: 1988

Answers (1)

Rob Mensching
Rob Mensching

Reputation: 35796

To configure the directory the Merge Module is merged into, add the Merge element under the desired Directory element. For example:

<Directory Id='TARGETDIR' Name='SourceDir'>
   <Directory Id='ProgramFilesFolder'>
      <Directory Id='INSTALLFOLDER' Name='Application name'>
         <Merge SourceFile='path\to\fb.msm' />
      </Directory>
   </Directory>
</Directory>

Of course, you also need to add the MergeRef element to the Feature you want to control the install state of the Merge Modules components.

Upvotes: 1

Related Questions