to start up automatically. I know about the startup folder, but I don't know how to copy files or how to check for different versions of windows and make it copy a file by using an if statement. The code needs to work for C++/CLI.
As for file copying, study the System::IO namespace.
For the registry, use the classes in the Microsoft::Win32 namespace.
Finally, a clarification: This forum has been traditionally for unmanaged C++; I recommend you to post @ MSDN Online (http://social.msdn.microsoft.com/forums) for speedier and more accurate answers about C++/CLI and the .Net framework.
The fact that you CAN click Run as administrator tells me that you are running in Vista or 7. If that's the case that account is actually disabled by default, you should make sure it's enabled before you try to use it.
With a bit more information about exactly what may happen should the calls fail with exceptions. IMO example code shouldn't be ambiguous in any aspect, that includes lumping exceptions into their base class to hide them.