cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Spdracer
Level 5

Package and Product GUIDS ??

I recently found the vbs script to change guids written by Aaron McLean. We can't run vbs code on our computers so I wrote a c# .net executable that does the same thing.

I managed to run his vbs script on a test computer and compared it to my executable. Both work the same.

My problem is:
With both the vbs script and executable the guid is changed fine, but does not contain the curly brackets. I get
1234-1234-1234
instead of
{1234-1234-1234}

I recall reading somewhere the curly brackets are required?????
Labels (1)
0 Kudos
(3) Replies
girishkatti123
Level 7

guid will start with curly brackets and they are required.
To have a feel of product Guid goto
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Unistall
Under this Key you will find all product that are installed onto your machine.
0 Kudos
Not applicable

I use below vbs code. It gives with brackets.

..........................
Vbs code
..........................

Function Generate_GUID()
Set TypeLib = CreateObject("Scriptlet.TypeLib")
Generate_GUID = TypeLib.Guid
msgbox Generate_GUID
End Function

Generate_GUID()
0 Kudos
Spdracer
Level 5

Thanks, I figured they were so I modified code to include curly brackets
0 Kudos