Regenerate UUIDs in an input file

I work with InstallShield a lot, as my employer has dozens of installers that need to be maintained. I also often need to base a new installer on an existing one. The simplest way to do this is to simply copy the old InstallShield project and change project-specific settings. Unfortunately, this necessitates changing a bunch of GUIDs in the project file so that they don’t clash with the old installation. Doing so from the InstallShield UI is a pain, so I wrote a quick script to take care of it. If using this with InstallShield projects, make sure they’re saved in XML format (rather than binary; but if you’re using binary format with a source control system you have my sympathy anyway).

The script just scans through the input file looking for UUIDs and maintains a map from the UUIDs it’s found to the ones it’s generated. Simple enough, but it should come in handy — I’m only embarrassed that it took me over a year to write this!

Posted via email from Chris’s posterous | Comment »

Cran-raspberry mead, day 4.

Cran-raspberry mead, day 4.


Brewing corner; the empty carboy taunts me.

Brewing corner; the empty carboy taunts me.


Every time I try to do x^2 + y^2, I just end up with an L1 epsilon-ball.  Guess I’m no dancer …

Every time I try to do x^2 + y^2, I just end up with an L1 epsilon-ball.  Guess I’m no dancer …

(via )


Testing sharing from Plastic Bullet OSX with … a PHOTO of a CAT in a BAG.

Testing sharing from Plastic Bullet OSX with … a PHOTO of a CAT in a BAG.