what I would do is create 3 components for your 3 certs. Condition each of your components with a valid condition such as
PROD="true" TESt="true" etc then using an Immediate CA chop up the computer name or domain name env var's then use the results to set the desired conditions to match the components conditions. alternatively you can use the built in regular expression techniques such as [%computername] >> PROD Excerpt from SDK Substring Operators The following table shows the substring operators used in conditional expressions. Substring operators can occur between two string values. Operator Meaning >< TRUE if left string contains the right string. << TRUE if left string starts with the right string. >> TRUE if left string ends with the right string. Operator Meaning >< Bitwise AND, TRUE if the left and right integers have any bits in common. << True if the high 16-bits of the left integer are equal to the right integer. >> True if the low 16-bits of the left integer are equal to the right >> integer. Nicholas Piper-14 wrote: > > I'm trying to write a WiX based installer for a set of Apache > configuration. > > I wrote a VBScript Custom Action that is run after InstallFiles/commit > in order to 'token replace' the httpd.conf, so we can customise that > at install time based on properties. I'm probably going to try and get > it to use a different properties.txt files depending on ComputerName > or another single property. > > One part I don't see a clean way for yet is installing the SSL > certificates. Production/test/development/etc. etc. will all use a > different certificate. I'd like to include > test/development/etc. certificates in the MSI file, and have the one > installed be based on ComputerName. I'd also like the MSI to be able > to use one placed into the current working directory, or use a dialog > to ask for a path to it, etc. > > What is the best practice for WiX 2 here? Can we get the cabinet file > to pack all the certificates, then use a transform to change which is > installed? Maybe a VBScript which uses a function of ComputerName to > help select which set? > > Many thanks for any pointers! > > Regards, > > Nick > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/Installing-different-files-depending-on-ComputerName-%28Wix-2%29-tp18277612p18309375.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users