I *think* you want to use the following in the same fragment where you define 
your CustomActions:

<Property Id="$(var.PlatformProgramFilesFolder)" SuppressModularization="yes"/>

The documentation says: Use to suppress modularization of this property 
identifier in merge modules. Using this functionality is strongly discouraged; 
it should only be necessary as a workaround of last resort in rare scenarios.

I think it is acceptable to use in this scenario since we are asking that a 
system property not be modularized.

Edwin G. Castro
Software Developer - Staff
Digital Channels
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail


> -----Original Message-----
> From: Steven Ogilvie [mailto:steven.ogil...@titus.com]
> Sent: Thursday, September 13, 2012 9:56 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] define element for ProgramFilesFolder not working
> in include file :(
> 
> I appreciate the help!
> 
> Steve
> 
> -----Original Message-----
> From: Castro, Edwin G. (Hillsboro) [mailto:edwin.cas...@fiserv.com]
> Sent: September-13-12 12:52 PM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] define element for ProgramFilesFolder not working
> in include file :(
> 
> Oh, I see that the properties are getting modularized:
> 
> SetEALNBService.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
> EALNBService.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
> ProgramFilesFolder.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
> 
> There is a way to avoid that but I'm not familiar with the technique as I 
> don't
> use merge modules myself.
> 
> Perhaps somebody with more merge module experience can point us in the
> correct direction.
> 
> Edwin G. Castro
> Software Developer - Staff
> Digital Channels
> Fiserv
> Office: 503-746-0643
> Fax: 503-617-0291
> www.fiserv.com
> P Please consider the environment before printing this e-mail
> 
> 
> > -----Original Message-----
> > From: StevenOgilvie [mailto:sogil...@msn.com]
> > Sent: Thursday, September 13, 2012 9:41 AM
> > To: wix-users@lists.sourceforge.net
> > Subject: Re: [WiX-users] define element for ProgramFilesFolder not
> > working in include file :(
> >
> > Hey Edwin,
> > did as you said and no go...
> >
> > got this in the merge module:
> > SetEALNBService.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7        51
> > EALNBService.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
> >
> """[ProgramFilesFolder.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7]\MyCo
> >
> mpany\MyProduct\Services\EnterpriseAuditLogService\NServiceBus.Host.e
> > xe""
> > /installInfrastructure"
> >
> > code was:
> > <CustomAction Id="SetEALNBService" Property="EALNBService"
> >
> Value="&quot;[$(var.PlatformProgramFilesFolder)]\MyCompany\MyProduc
> > t\Services\EnterpriseAuditLogService\NServiceBus.Host.exe&quot;
> > /installInfrastructure" Execute="immediate" />
> >
> > in include:
> >   <?if $(var.Platform) = x64 ?>
> >   <?define PlatformProductName = "$(var.ProductName) (64 bit)" ?>
> >   <?define Win64 = "yes" ?>
> >   <?define DotNetFramework40Folder
> > ="[%SystemRoot]\Microsoft.NET\Framework64\v4.0.30319\" ?>
> >   <?define PlatformProgramFilesFolder = "ProgramFiles64Folder" ?>
> >   <?else ?>
> >   <?define PlatformProductName = "$(var.ProductName)" ?>
> >   <?define Win64 = "no" ?>
> >   <?define DotNetFramework40Folder
> > ="[%SystemRoot]\Microsoft.NET\Framework\v4.0.30319\" ?>
> >   <?define PlatformProgramFilesFolder = "ProgramFilesFolder" ?>
> >   <?endif ?>
> >
> > Logfile results:
> > PROPERTY CHANGE: Adding
> > EALNBService.CA23A0DC_B2DE_4F2C_9E74_FD373F99E9D7
> > property. Its value is
> >
> '"\MyCompany\MyProduct\Services\EnterpriseAuditLogService\NServiceBu
> > s.Host.exe"
> > /installInfrastructure'.
> >
> > ** Moving that out of the merge module and placing the custom action
> > into the product.wxs it works... **
> >
> > thanks,
> > Steve
> >
> >
> >
> > --
> > View this message in context: http://windows-installer-xml-wix-
> > toolset.687559.n2.nabble.com/define-element-for-ProgramFilesFolder-not
> > - working-in-include-file-tp7580463p7580484.html
> > Sent from the wix-users mailing list archive at Nabble.com.
> >
> > ----------------------------------------------------------------------
> > --------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's security and
> > threat landscape has changed and how IT managers can respond.
> > Discussions will include endpoint security, mobile security and the latest 
> > in
> malware threats.
> > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and threat
> landscape has changed and how IT managers can respond. Discussions will
> include endpoint security, mobile security and the latest in malware threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to