I'm looking to edit a reg key using a .hta file but have run into a couple of issues. I've been using VBScript because I'm most familiar with that, but the problem comes from not being able to use WScript.CreateObject in the .hta file. I'd been using this is other .wsf files:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.RegWrite "HKCU\Software\MyProgram\MyKey", "Value", "REG_SZ"
Has anyone tackled this problem before, or might know an alternative way of interacting with the registry?
Thanks!