I have a basic msi project where i want to create a new guid every time an installation is done. I want to do this in a custom action in installscript but could not find any related function. could someone pl guide me on the options available to accomplish this.

The guid i want to generate has nothing to do with the installation project related guids (product id, comp id etc). It is going to be used primariliy by my application.