Re: [WiX-users] Installing different files depending on ComputerName (Wix 2)

2008-07-07 Thread Nicholas Piper
On Sun, 06 Jul 2008, jmcfadyen wrote:

> 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. 

[..]


Could all of these three components all install files into the same
place on the target system (and then it's up to me to make sure only
one gets fired off at once?)

Or should I install them to different places, an then have a commit CA
move them into the correct place?

 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


[WiX-users] Installing different files depending on ComputerName (Wix 2)

2008-07-04 Thread Nicholas Piper
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