그냥 사는 이야기

RunDll32를 사용한 install driver 본문

Development/System

RunDll32를 사용한 install driver

없다캐라 2008. 11. 10. 10:52
반응형

rundll32.exe를 사용하여 드라이버 파일 설치하기

RunDll32의 문법

RunDll32.exe setupapi,InstallHinfSection <section> <reboot-mode> <inf-name>


reboot mode:

NeverReboot
Set to 0 or 128. Whatever happens, the computer is not restarted. It's up to the client to determine whether the computer should be restarted. For Setup, this means there is a file C:\Windows\Wininit.ini that is not zero bytes in size.

AlwaysSilentReboot
Set to 1 or 129. The user is not prompted to restart the computer, and the computer will always restart.

AlwaysPromptReboot
Set to 2 or 130. The user will always be prompted about whether or not they want to restart the computer. Setup does not attempt to determine if restarting the computer is necessary.

SilentReboot
Set to 3 or 131. If Setup determines that the computer needs to be restarted, there is no user interaction.

PromptReboot
Set to 4 or 132. If Setup determines that the computer needs to be restarted, it prompts the user with a dialog box.

예제

install

rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 0 C:\Driver\test\test.inf

uninstall

rundll32.exe setupapi.dll,InstallHinfSection DefaultunInstall 0 C:\Driver\test\test.inf
Comments