Communauté Informatique NDFR.net : installer un fichier .inf par un exe - Logiciels
 
installer un fichier .inf par un exe
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old 04-05-2003, 17:43
Matt Matt is offline
Super modérateur
1 Highscore
 
Join Date: 24-12-2002
Posts: 4,453
Bon ben si tu veux faire un programme qui installe un fichier inf, je vois deux commandes possibles.
La première simule parfaitement le click droit, mais je ne garanti pas qu'elle marche :
ShellExecute(handle,'Install','chemin d'accès complet du inf','','répertoire contenant le inf',0);
La seconde est moins directe, mais je suis sûr qu'elle marche :
ShellExecute(handle,'open','rundll32.exe setupapi,InstallHinfSection DefaultInstall 132','d'accès complet du inf','',0);
Note : la syntaxe si dessus est la syntaxe en Delphi, mais ça doit pas être tro dur à adapter dans un autre langage (sauf peut-être le VB, où l'accès aux fonctions des API Windows n'est pas ce qu'il y a de plus simple ...)
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fabriquer un fichier XSL souljah Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 13 21-01-2008 09:17
récupérer un fichier pst (outlook 2003) Cougar Logiciels 2 17-10-2005 09:33
Installation automatisée de Windows 2000 - XP - Server 2003 Werner Articles 241 02-08-2005 15:52
Impossible installer Office pro97 sophana Windows NT4/2000/XP Client 3 27-02-2004 12:47
Problème de lecture de fichier en PHP stan Programmation Web (HTML, PHP, ASP, Java, XML, etc.) 9 12-10-2003 22:47

All times are GMT +2. The time now is 20:04.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.