Joel Peterson wrote: > I propose that we switch to PowerShell for all automation tips. > Unfortunately, I don't have the equivalent PowerShell command handy.
That sounds like using a hammer for what is just a simple task with regexes and a competent text editor - I suggested vim because I find it to be the most competent :-). The original poster contacted me and I gave him the following instructions for doing the find/replace with regexes in VS 2008. Hopefully someone on the list or searching the archives will find this useful. ---- Open up the WiX file in VS 2008 with all the ShortNames in it. Go to Edit -> Find and Replace -> Replace in Files Change "Look in" to "Current Document" Expand "Find Options", check the box next to "Use" and choose "Regular Expressions" from the drop down list. In the "Find What" box, type ShortName=["'][^'"]+['"] You want to have a single space character before ShortName because I'm assuming that all of your ShortName attributes have this space before them. That regular expression literally means: Match the string " ShortName=", then either a quote or double quote, followed by one or more characters that are NOT (^) a quote or double quote, followed by a quote or double quote. Leave the "Replace with" box empty. To test the search, click "Find Next" and you should see your ShortName attributes and their contents become highlighted. If you're satisfied, click "Replace All" and all of your ShortName attributes will be gone. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users