How to run a dll on system reboot
-
Hi, I would like to know one thing. On installation some applications restart the machine and automatically run some dlls on system reboot. But this dll will not run on every reboot. It runs only on this application installation process. Can this be done in C#? Any one please put some light on this... Thanks in advance: Rakesh
Rakesh
-
Hi, I would like to know one thing. On installation some applications restart the machine and automatically run some dlls on system reboot. But this dll will not run on every reboot. It runs only on this application installation process. Can this be done in C#? Any one please put some light on this... Thanks in advance: Rakesh
Rakesh
dlls cannot be run, without a host program to run them. To run an app on reboot, put an entry in the 'runonce' key in the registry.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
dlls cannot be run, without a host program to run them. To run an app on reboot, put an entry in the 'runonce' key in the registry.
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Thanks a lot for the Idea. This runonce concept definetly solves my purpose. But I am facing some issue here. I have placed a string value "E:\test\runtoadd.bat". And this batch file consists of a command which runs a registry file which inturn resets a registry key. Then I reboot my machine and observed that the batch file and .reg are running on the reboot but the the thing is the registry key is not getting effected. Can you please let me know what is mistake here. Thanks: Rakesh
Rakesh
-
Thanks a lot for the Idea. This runonce concept definetly solves my purpose. But I am facing some issue here. I have placed a string value "E:\test\runtoadd.bat". And this batch file consists of a command which runs a registry file which inturn resets a registry key. Then I reboot my machine and observed that the batch file and .reg are running on the reboot but the the thing is the registry key is not getting effected. Can you please let me know what is mistake here. Thanks: Rakesh
Rakesh
perhaps your batch file does not have permission to make the change ? What if yuo run it from the command line, does it change then ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
perhaps your batch file does not have permission to make the change ? What if yuo run it from the command line, does it change then ?
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
As Christian says it may be a permissions problem, which registry key are you trying to change ?
Jonathan Wilkes Darka[Xanya.net]