Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hide Installing Inf showing display progress bar popup window

Hide Installing Inf showing display progress bar popup window

Scheduled Pinned Locked Moved C / C++ / MFC
c++jsonquestionannouncementworkspace
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rohit dhamija 0
    wrote on last edited by
    #1

    Dear All, I am developing an application using MFC VC++ Version 6.0 for Windows 2000 OS in which I am running an inf file using ShellExecute api to install my driver. Following is the small piece of code used to install the driver: //////////////////////////////////////////////// void InstallSys() { char EZinf[1048]; strcpy(EZinf,"c:\\mydriver.inf"); //path of my driver char EZlpParameters[uSize]= "setupapi,InstallHinfSection DefaultInstall 132 "; strcat(EZlpParameters,EZinf); ShellExecute(NULL, "open", "rundll32.exe",EZlpParameters, NULL, SW_HIDE); } //////////////////////////////////////////////// The code is working fine and installing the driver. When I run the application, the application ,it calls Installsys() to install the driver and this displays a progress bar window titled "copying file" window and installs the driver. I donot want this popup window to be displayed during my installation due to some reason. I have used SW_HIDE option in ShellExecute function but still the popup window is still being displayed. Do I need to make some changes in the inf file?? Or I need to use the Inf SetUp File APIs (ie. SetupInstallFile or InstallHinfSection API) Please suggest some way to hide the dialog box and at same time installing the driver. The installation part of mydirverinf is as: ///////////////////////////////// ;; ;; Default install sections ;; [DefaultInstall] OptionDesc = %FileSpyServiceDesc% CopyFiles = FileSpy.DriverFiles, FileSpy.UserFiles [SourceDisksNames] 1 = %Disk1% [SourceDisksFiles] filespy.exe = 1 EZOn.sys = 1 [DefaultInstall.Services] AddService = %FileSpyServiceName%,,FileSpy.Service //////////////////////////////// Please do let me know if you need further information in this regard. Thanks a lot! Regards, Rohit Dhamija

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups