Hello!
I am running into a problem when using the code provided from this discussion.
I see there in the function a parameter missing when calling Registry.SetValue:
Registry.SetValue takes 5 parameters, but the provided code from the discussion uses only 4. How can this code work with the missing parameter??
Shouldn't be the TYPE given?
My problem is, that I need to change the code for the WOW64 alternative for 64 bit OS.
In this case I only have to add Wow64.KEY64 as 6th parameter. But in the original code above, a whole parameter is missing.... I don't know which one and I don't know how this code should even work.
Thank you in advance!
I am running into a problem when using the code provided from this discussion.
I see there in the function a parameter missing when calling Registry.SetValue:
Code:
function File.SetAssocation64(cExt, cExe, cIcon, cShort,cLong) -- Set the file association for the given file. Registry.SetValue(HKEY_CLASSES_ROOT, cExt, "", cKey); Registry.SetValue(HKEY_CLASSES_ROOT, cKey, "",cLong); Registry.SetValue(HKEY_CLASSES_ROOT, cKey.."\\DefaultIcon","",File.GetShortName(cIcon)..",0"); Registry.SetValue(HKEY_CLASSES_ROOT, cKey.."\\shell\\open\\command", "", "\""..cExe.."\" \"%1\""); end
Registry.SetValue takes 5 parameters, but the provided code from the discussion uses only 4. How can this code work with the missing parameter??

Shouldn't be the TYPE given?
My problem is, that I need to change the code for the WOW64 alternative for 64 bit OS.
In this case I only have to add Wow64.KEY64 as 6th parameter. But in the original code above, a whole parameter is missing.... I don't know which one and I don't know how this code should even work.
Thank you in advance!
Comment