Creating a GUID is very easy using Visual Studio. Tools->Create GUID shows the following Window:
Here it is possible to create a GUID represented in different formats. Typically I use option 5. when working on WiX installation projects and option 4. for any other type of project.