1

I have been googling and read through the WiX tutorial (http://www.tramontana.co.hu/wix/), but I am unable to see a simple way to create an MD5 hash of a string/property. Does anyone know of any built in WiX Installer methods to do this or is my only option a custom action?

I am currently using WiX version 3.5.

Josh Danko
  • 123
  • 9

1 Answers1

3

There's nothing in WiX or MSI to hash a string.

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47
  • Do you know of a good way to achieve this? Just create a custom action dll? – Josh Danko Jun 07 '11 at 19:22
  • Yes, you need custom code for this. If it's a custom action or some EXE which modifies the installer depends on what you need to do with the hash. – Cosmin Jun 07 '11 at 20:03
  • Also realize that if you end up using .NET for your custom action that MD5 is not FIPS compliant and can throw an exception if a policy setting is enabled to enforce compliance. Use something else like SHA. – Christopher Painter Jun 08 '11 at 00:35
  • Sorry, it was actually a SHA1 hash i was trying to do. I had to create a .NET DLL to accomplish this. – Josh Danko Jun 13 '11 at 19:11