Jump to content

İnf Dosyasını Çalıştırmak


mrecep38
 Share

Recommended Posts

[quote name='blue_life' date='20 Kasım 2010 - 08:33 ' timestamp='1290242632' post='914488']
Global $INF_FILE = @WindowsDir & "\INF\Deneme.inf"
;Kurmak
RunWait("rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 " & $INF_FILE)
;Kaldırmak
RunWait("rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 " & $INF_FILE)
[/quote]

Üstad, ilginiz için çok teşekkür ediyorum.
Peki inf dosyasını FileInstall ile script içine
almak da mümkün müdür?

Link to comment
Share on other sites

@mrecep38

FileInstall ile autoit içine alabilirsin.
Kısa bir örnek verelim ve sen kendine göre düzenle.

[codebox]Local $INF_FILE = @TempDir & "\TEST\Test.inf"
FileExists(@TempDir & "\TEST") Then DirCreate(@TempDir & "\TEST")
FileInstall("Test.inf", $INF_FILE, 1) ;inf dosyamız
FileInstall("Test1.dll", @TempDir & "\TEST\Test1.dll", 1) ;gerekli bir dosyamız
FileInstall("Test2.dll", @TempDir & "\TEST\Test2.dll", 1) ;gerekli bir dosyamız

;Kuruyoruz.
RunWait("rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 " & $INF_FILE)
DirRemove(@TempDir & "\TEST", 1)[/codebox]

Link to comment
Share on other sites

  • 3 hafta sonra ...

[quote name='kamuran731' date='07 Aralık 2010 - 22:45 ' timestamp='1291755347' post='923158']
Ben pikiy inf sini çalıştırdım oldu ama istediğim gibi değil
çünkü inf ve cab dosyasını C:\WINDOWS\inf dizinine kopyalamadan çalışmadı.
inf ve cab dosyası au3 dosyasının yanında olsun ve komut çalışsın istiyorum.
[/quote]

[php]
Global $INF_FILE = @ScriptDir & "\Deneme.inf"
;Kurmak
RunWait("rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 " & $INF_FILE)
;Kaldırmak
RunWait("rundll32.exe setupapi.dll,InstallHinfSection DefaultUninstall 132 " & $INF_FILE)
[/php]

Edited by djonur007
Link to comment
Share on other sites

  • 1 ay sonra...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...