How to generate a GUID in Oracle?

You can use the SYS_GUID() function to generate a GUID in your insert statement: insert into mytable (guid_col, data) values (sys_guid(), ‘xxx’); The preferred datatype for storing GUIDs is RAW(16). As Gopinath answer: select sys_guid() from dual union all select sys_guid() from dual union all select sys_guid() from dual You get 88FDC68C75DDF955E040449808B55601 88FDC68C75DEF955E040449808B55601 88FDC68C75DFF955E040449808B55601 As … Read more

Wix generate single component id for entire tree

Use one file per component – this avoids all sorts of problems (except .NET assemblies spanning multiple files). See the following thread: One file per component or several files per component? Wix is a great framework for creating installers, but it has a steep learning curve. I strongly recommend you read a few sections of … Read more

How to get friendly device name from DEV_BROADCAST_DEVICEINTERFACE and Device Instance ID

Well, as noted above I found out how to get dbcc_name to populate correctly. I found that this was the easiest way to get the device name: private static string GetDeviceName(DEV_BROADCAST_DEVICEINTERFACE dvi) { string[] Parts = dvi.dbcc_name.Split(‘#’); if (Parts.Length >= 3) { string DevType = Parts[0].Substring(Parts[0].IndexOf(@”?\”) + 2); string DeviceInstanceId = Parts[1]; string DeviceUniqueID = … Read more

WIX Autogenerate GUID *?

Product/@Id=”*” randomly generates a new GUID, which is sufficient for product codes. Component/@Guid=”*” calculates a GUID that stays the same as long as your target path stays the same, which is necessary to comply with component rules.

Guid Byte Order in .NET

It appears that MS are storing the five parts in a structure. The first 4 parts are either 2 or 4 bytes long and are therefore probably stored as a native type (ie. WORD and DWORD) in little endian format. The last part is 6 bytes long and it therefore handled differently (probably an array). … Read more