I have an ant script to manage out build process. For WiX I need to produce a new guid when we produce a new version of the installer. Anyone have any idea how to do this in ANT? Any answer that uses built-in tasks would be preferable. But if I have to add another file, that’s fine.
Share
I’d use a
scriptdeftask to define simple javascript task that wraps the Java UUID class, something like this:Result:
If you have a reasonably up-to-date Ant install, this should work out of the box.