is there any way to make a software , so if the user reinstall windows or format disk drive , the software will run without installing automatically .
I do not mean a software that do not require installation .
think a user install this software , this software automatically run . one 开发者_运维技巧day user format hard disk and install a new windows . that software run automatically without installing .
Theoretically yes, but the question to ask is, "where is the executable for this program stored?"
Normally programs are stored on the hard disk, so if the user formats it, the program is gone[*]. So the question is, "where else can code be stored?"
The answer is that, in theory, you can replace the machine's BIOS. This is a very abnormal thing to do, though, it requires all the admin privileges in the world, and the BIOS program can't be very big.
It also can't be written in C# or C++ in the usual Windows-y ways. Firstly the BIOS runs before Windows is running, that's the point. Secondly removing the OS removes the libraries that Windows programs rely on, so if the system drive has been formatted and Windows not re-installed, there's no way to launch Windows and hence no way to start your Windows program.
[*] Boot sector viruses are way out of fashion.
If the user formats his hard drive and powers off his computer, there is no software left on the system that could be run.
No, this cannot be done (unless you re-flash the BIOS).
You can make it portable. Thus you can copy executable on non-system partition and it will still work.
But I dont think there is any way to register this application in fresh windows instalation without modifying the instalation process itself. But registration for autorun is easy and can be done when user first runs application manualy.
精彩评论