I assume Property

-----Original Message-----
From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] 
Sent: Wednesday, July 21, 2010 9:51 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Passing Values from the ProductModule to a
MergeModule

Even after simplifying, the data was not passed to the merge module.  

I am working on the configuration/substitution nodes now. 

Any idea what the table name would be for the substitution for what I am
trying to do?  

-----Original Message-----
From: bpackard [mailto:bill.pack...@kepware.com] 
Sent: Wednesday, July 21, 2010 8:34 AM
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Passing Values from the ProductModule to a
MergeModule


I think you can simplify what you have:

    <Property Id="SERVICEUSER" SuppressModularization="yes"/>
    <Property Id="SERVICEPASSWORD" SuppressModularization="yes"/>

    <Directory Id="TARGETDIR" Name="SourceDir">
       <Directory Id="MergeRedirectFolder">

        <Component Id="ServiceInstaller" Guid="*" DiskId="1">
          <ServiceInstall Id="ServiceInstaller" Name="XPedientServiceHost" 
                          Start="auto" ErrorControl="normal"
Type="ownProcess"
                          Account="[SERVICEUSER]"
Password="[SERVICEPASSWORD]">
          </ServiceInstall>
        </Component>

      </Directory>
   </Directory>

Then simply pass in on the command line SERVICEUSER and SERVICEPASSWORD. You
should not need the custom actions and multiple properties for the same
elements. You may need to mark the properties as secure to get them to the
execute sequence.

As for using the module configuration, I didn't find it trivial. Here is an
example that reparents an entry in the merge module's directory table with a
property from the msi:

in the merge module you would have:

    <Configuration Name="SMPRODNAME" Format="Key" Type="Identifier"
DefaultValue="SMPRODNAME"
                   Description="Start Menu Path" DisplayName="Start Menu
Folder"/>
    <Substitution Table="Directory" Column="Directory_Parent" Row="SMHelp"
Value="[=SMPRODNAME]"/>

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="SMHelp" Name="Help Documentation" ShortName="HELPDOC"
/>
       ...
    </Directory>

The configuration updates the directory table changing the parent of the
SMHelp to be the SMPRODNAME property. This happens when the merge module is
imported by the msi. The SMPRODNAME property does not have to be defined
anywhere in the merge module.

hope this helps

--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-Values
-from-the-ProductModule-to-a-MergeModule-tp5318970p5321075.html
Sent from the wix-users mailing list archive at Nabble.com.

----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint What will you do first with EVO,
the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to