Getting Unknown Error 0xEA61 (60001)

It says it is installing for System, whether or not there is something in the script though, I am not sure but it gets through several steps where it uninstalls things and copies files to the ProgramData folder which would require admin rights. Then it gets to the one step where it is to create a HKLM key and it doesn’t do it. Not sure why it isn’t writing a log though, that would definitely be helpful. the XML file shows that the log is set to write to the correct location. It’s hard in this instance because it only fails when not logged in so I’m unable to monitor it. If it would be helpful to post the whole scrip then I can.