Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2002
    Location
    Sol 3
    Posts
    3,160

    Run inf from AMS

    I was trying to deploy an update using an .inf file and found this on the web. Thought I would share for all.

    =-=-=-=-=-=-Found on the web=-=-=-=-=-=-=-
    XP: Deploy an INF file Automatically
    Description
    This explains how to install an INF file from the command line.

    Directions
    Setup information files have the *.inf extension and are often used to install registry settings and device drivers. To manually install an INF file, the user can right-click and select install from the context menu.

    However, you might want to be able to install the inf from a command-line. Here's how:


    rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 file_name.inf


    file_name.inf = file to install
    132 = flag to ask the user before rebooting
    DefaultInstall = name of the section to install


    =-=-=-=-=-=AMS Code=-=-=-=-=-
    Code:
    File.Run(_SystemFolder .."\\rundll32.exe", "setupapi,InstallHinfSection DefaultInstall 132 ".._SourceFolder .."\\Autoplay\\oa\\Sarge.inf", _SourceFolder, SW_SHOWNORMAL, false)
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

  2. #2
    SUF6NEWBIE Guest
    Good find TJ....

Similar Threads

  1. Run Once a day ONLY Problem
    By morci in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 03-04-2004, 06:53 PM
  2. Correct way to run a second ams file
    By longedge in forum AutoPlay Media Studio 4.0
    Replies: 4
    Last Post: 12-10-2003, 03:13 PM
  3. (( Right Click Properties Version infomation
    By GraphiX2003 in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 02-10-2003, 01:15 AM
  4. HOWTO: Limit the Number of Times an Install can be Run
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 02:58 PM
  5. Could AMS Autorun.exe Also Run In DOS?
    By Netwaves in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 04-26-2000, 07:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts