This is the code for running a .reg file from c#. Is it possible to encrypt the .reg files so that C# can decrypt before executing from memory"
Process regeditProcess = Process.Start("regedit.exe", "/s " + @"D:\Projects\efe\efe\bin\Debug\test.reg");
regeditProcess.WaitForExit()
how does the above lines change in this case?
Edit:
My question is, I can decrypt the file and write it temporarily in a location and pass it to my code as e.g) test.reg. But Can I execute the reg file in memory using the Process.Start
command without passing an actual file location?
The reason was not to allow any one to mess up with the .reg files. An exe does some tasks and runs .reg files along the way. I dont mind them viewing it later, though they wont identify which entries changed if encrypted.