Re: [WiX-users] Passing Values from the ProductModule to a MergeModule - Solved (plus a question for clarification)
That is what I thought, but I was still having problems. I have resolve the issue for what I need, (at least for now). In the main product module, you need to declare the properties as follows: Then, in the Merge Module you have to set it up to receive the configuration, and map it to the properties, this is what I have in my merge module I was able to use the values in my service installer as follows: You also have to declare the properties What I was unable to get working is the code that combines the Domain\User in a custom action, I suppose this has to do with the ordering if the CA, Can someone comment as to when the CA should execute to have access to the imported properties? The location above does not work because the values are still initialized. (Also, Thanks to everyone that provided pointers, this would be a good candidate for the WiX Wiki or tutorial, should someone care to add it). I pruned the rest of the conversation so that this message is uncluttered. -- 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
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
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: 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: ... 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
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: 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: ... 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
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
I think you can simplify what you have: 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: ... 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
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
Sorry to be a bit dense, where/how would the markup look for the substitution element? I get it goes with the Module, (I assume the merge module), but I to get what the values would be in my case. After I have it working, I'll post again so that others can see how this ended up -Original Message- From: Blair [mailto:os...@live.com] Sent: Tuesday, July 20, 2010 8:04 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule You probably also need the Substitution element (to hook the Configuration values into the Property table entries from your module). See the following pages on MSDN: http://msdn.microsoft.com/library/aa368027.aspx http://msdn.microsoft.com/library/aa370045.aspx http://msdn.microsoft.com/library/aa370052.aspx -Original Message- From: Blair [mailto:os...@live.com] Sent: Tuesday, July 20, 2010 5:33 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Try the Configuration element under Module, and use the ConfigurationData element under Merge to "hook it up". -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Tuesday, July 20, 2010 5:17 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule The warning is comforting :-()... Warning 6 The Property/@SuppressModularization attribute has been set to 'yes'. Using this functionality is strongly discouraged; it should only be necessary as a workaround of last resort in rare scenarios. So I updated the MergeModule as follows: But I am still not receiving the values, here is the relevant part of the log... any other ideas? MSI (s) (84:AC) [19:14:54:752]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:752]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Action ended 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Action ended 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetAppDBDatabase MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 6:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
Currently it is internally used, but I expect that this particular merge module will be used by the client to customize their install as well. -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 9:22 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Do you redistribute your merge modules or are they only used inside your organization to assist in distributed development? If the answer is the latter, you can safely ignore this message. I've been doing so for 5 years with no down sides. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 7:16:43 PM Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule The warning is comforting :-()... Warning 6 The Property/@SuppressModularization attribute has been set to 'yes'. Using this functionality is strongly discouraged; it should only be necessary as a workaround of last resort in rare scenarios. So I updated the MergeModule as follows: But I am still not receiving the values, here is the relevant part of the log... any other ideas? MSI (s) (84:AC) [19:14:54:752]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:752]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Action ended 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Action ended 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetAppDBDatabase MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 6:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any fur
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
Do you redistribute your merge modules or are they only used inside your organization to assist in distributed development? If the answer is the latter, you can safely ignore this message. I've been doing so for 5 years with no down sides. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 7:16:43 PM Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule The warning is comforting :-()... Warning 6 The Property/@SuppressModularization attribute has been set to 'yes'. Using this functionality is strongly discouraged; it should only be necessary as a workaround of last resort in rare scenarios. So I updated the MergeModule as follows: But I am still not receiving the values, here is the relevant part of the log... any other ideas? MSI (s) (84:AC) [19:14:54:752]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:752]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Action ended 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Action ended 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetAppDBDatabase MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 6:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar problem quite sometime ago but I did not understand his reply about using .Module/@Property, and have not been able to find any sort of information as to how that would work either. The Product Module looks like this: http://schemas.microsoft.com/wix/2006/w
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
You probably also need the Substitution element (to hook the Configuration values into the Property table entries from your module). See the following pages on MSDN: http://msdn.microsoft.com/library/aa368027.aspx http://msdn.microsoft.com/library/aa370045.aspx http://msdn.microsoft.com/library/aa370052.aspx -Original Message- From: Blair [mailto:os...@live.com] Sent: Tuesday, July 20, 2010 5:33 PM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Try the Configuration element under Module, and use the ConfigurationData element under Merge to "hook it up". -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Tuesday, July 20, 2010 5:17 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule The warning is comforting :-()... Warning 6 The Property/@SuppressModularization attribute has been set to 'yes'. Using this functionality is strongly discouraged; it should only be necessary as a workaround of last resort in rare scenarios. So I updated the MergeModule as follows: But I am still not receiving the values, here is the relevant part of the log... any other ideas? MSI (s) (84:AC) [19:14:54:752]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:752]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Action ended 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Action ended 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetAppDBDatabase MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 6:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar prob
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
Try the Configuration element under Module, and use the ConfigurationData element under Merge to "hook it up". -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Tuesday, July 20, 2010 5:17 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule The warning is comforting :-()... Warning 6 The Property/@SuppressModularization attribute has been set to 'yes'. Using this functionality is strongly discouraged; it should only be necessary as a workaround of last resort in rare scenarios. So I updated the MergeModule as follows: But I am still not receiving the values, here is the relevant part of the log... any other ideas? MSI (s) (84:AC) [19:14:54:752]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:752]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Action ended 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Action ended 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetAppDBDatabase MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 6:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar problem quite sometime ago but I did not understand his reply about using .Module/@Property, and have not been able to find any sort of information as to how that would work either. The Product Module looks like this: http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";>
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
The warning is comforting :-()... Warning 6 The Property/@SuppressModularization attribute has been set to 'yes'. Using this functionality is strongly discouraged; it should only be necessary as a workaround of last resort in rare scenarios. So I updated the MergeModule as follows: But I am still not receiving the values, here is the relevant part of the log... any other ideas? MSI (s) (84:AC) [19:14:54:752]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:752]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Action ended 19:14:54: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText Action start 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (84:AC) [19:14:54:753]: PROPERTY CHANGE: Deleting ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Action ended 19:14:54: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (84:AC) [19:14:54:753]: Doing action: SetAppDBDatabase MSI (s) (84:AC) [19:14:54:753]: Note: 1: 2205 2: 3: ActionText -Original Message- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, July 20, 2010 6:34 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar problem quite sometime ago but I did not understand his reply about using .Module/@Property, and have not been able to find any sort of information as to how that would work either. The Product Module looks like this: http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> <<<< SNIPPED >>>>> -- 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-us
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
As Christopher said: -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Tuesday, July 20, 2010 4:42 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Passing Values from the ProductModule to a MergeModule Slight Mis-post In the MergeModule, I have When I look at the log, I can see that my custom actions inside the merge module are working, however, the data is never received from the Product Module (Here is the snippet of the log)... MSI (s) (F4:C0) [18:32:04:396]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (F4:C0) [18:32:04:396]: Note: 1: 2205 2: 3: ActionText Action start 18:32:04: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (F4:C0) [18:32:04:396]: PROPERTY CHANGE: Modifying ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Its new value: 'DOMAIN/USER'. Action ended 18:32:04: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (F4:C0) [18:32:04:396]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (F4:C0) [18:32:04:396]: Note: 1: 2205 2: 3: ActionText Action start 18:32:04: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (F4:C0) [18:32:04:397]: PROPERTY CHANGE: Modifying ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Its new value: 'PASSWORD'. Action ended 18:32:04: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Tuesday, July 20, 2010 6:27 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar problem quite sometime ago but I did not understand his reply about using .Module/@Property, and have not been able to find any sort of information as to how that would work either. The Product Module looks like this: http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> <<<< SNIPPED >>>>> -- 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
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
Slight Mis-post In the MergeModule, I have When I look at the log, I can see that my custom actions inside the merge module are working, however, the data is never received from the Product Module (Here is the snippet of the log)... MSI (s) (F4:C0) [18:32:04:396]: Doing action: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (F4:C0) [18:32:04:396]: Note: 1: 2205 2: 3: ActionText Action start 18:32:04: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (F4:C0) [18:32:04:396]: PROPERTY CHANGE: Modifying ServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'administrator'. Its new value: 'DOMAIN/USER'. Action ended 18:32:04: SetServiceUser.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. MSI (s) (F4:C0) [18:32:04:396]: Doing action: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F MSI (s) (F4:C0) [18:32:04:396]: Note: 1: 2205 2: 3: ActionText Action start 18:32:04: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. MSI (s) (F4:C0) [18:32:04:397]: PROPERTY CHANGE: Modifying ServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F property. Its current value is 'password'. Its new value: 'PASSWORD'. Action ended 18:32:04: SetServicePassword.06C528FC_89E0_48C7_B32F_50DEAF36899F. Return value 1. -Original Message- From: John Bergman [mailto:john.berg...@xpedienttechnologies.com] Sent: Tuesday, July 20, 2010 6:27 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar problem quite sometime ago but I did not understand his reply about using .Module/@Property, and have not been able to find any sort of information as to how that would work either. The Product Module looks like this: http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> SNIPPED > -- 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
Re: [WiX-users] Passing Values from the ProductModule to a MergeModule
Modules don't exist in an installer. Their components are merged and associated to features and then they go away. That said, you need to define the property elements for ServiceUser and so on in the merge module with no default value and SuppressModularization attribute set to yes. The rows won't get created in the Property table and no property table will likely get created ( unless you define other properties with values ) but the compiler will now understand to not molest your properties with GUIDs. Christopher Painter, Author of Deployment Engineering Blog Have a hot tip, know a secret or read a really good thread that deserves attention? E-Mail Me - Original Message From: John Bergman To: General discussion for Windows Installer XML toolset. Sent: Tue, July 20, 2010 6:26:55 PM Subject: [WiX-users] Passing Values from the ProductModule to a MergeModule This post is a little long, but hopefully it provides enough information to provide some insight into what the problem is that I am having, and when a solution or directions are provided, it will provide enough context to help others who may have the same requirement later. I have been struggling with this for more than a day now. I need to pass some of the parameters received on the command line of the installer to a MergeModule (all in Wix). It is a Merge Module because it will be provided to a customer to embed in their installers as well. Basically The Merge Module consists of a service, as follows (Pruned): http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> I have tried it with and without the custom action and additional properties. I just cannot seem to figure out how to get the information passed into the merge module; all of the googling I did indicated that others had tried, but I was not able to find any further hints than what I have included within this request for help. I did see that Rob had answered a similiar problem quite sometime ago but I did not understand his reply about using .Module/@Property, and have not been able to find any sort of information as to how that would work either. The Product Module looks like this: http://schemas.microsoft.com/wix/2006/wi"; xmlns:util="http://schemas.microsoft.com/wix/UtilExtension";> SNIPPED > -- 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