If you are really serious about simplying setup and making it bulletproof you should push back at your application developers and challenge why they need the hostname to be lower cased. The code that reads the XML should to it's own .ToLower() if it's that important to them.
Otherwise you'll need to write a custom action ( c++ for example ) that gets the computername, lower cases it and sets the property for writing to the XML. I can write code like this in a heartbeat but I know which one makes the install cleaner. ---------------------------------------- From: "Jeff McCune" <j...@puppetlabs.com> Sent: Tuesday, February 14, 2012 8:45 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to downcase a public property? Hi, I'm running into a problem where I need to configure my application with something resembling the computer name. I'm currently doing this using the remember property pattern. Here's the code [1] where I'm setting the public property to the default value of [ComputerName] This works well and I'm writing this value to the configuration file just fine but our application needs this configuration setting to be all lower case. How should I manipulate the string to be lower case? I started to look at a JScript custom action but I've decided to heed Rob's dire warnings [2] against using such scripts because I'd like to play nice with antivirus software. [1] https://github.com/jeffmccune/puppet_for_the_win/blob/96df962532addef2efb398 4e0c738ab4078c3914/wix/puppet.wxs#L187 [2] http://blogs.msdn.com/b/robmen/archive/2004/05/20/136530.aspx Thanks, -- Jeff McCune ---------------------------------------------------------------------------- -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users