Click here to Skip to main content
15,915,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Accurate window sizes Pin
nukenuts22-Dec-03 3:03
nukenuts22-Dec-03 3:03 
GeneralRe: Accurate window sizes Pin
Johann Gerell22-Dec-03 11:40
Johann Gerell22-Dec-03 11:40 
General<b>Get Relations Betwwen The Tables</b> Pin
21-Dec-03 0:35
suss21-Dec-03 0:35 
GeneralChanging background and text color using microsoft visual c++ Pin
Asesh shrestha21-Dec-03 0:08
Asesh shrestha21-Dec-03 0:08 
GeneralRe: Changing background and text color using microsoft visual c++ Pin
Robert Kuster21-Dec-03 1:20
Robert Kuster21-Dec-03 1:20 
QuestionmsoControlSplitButtonPopup ??? Pin
YaronNir20-Dec-03 21:53
YaronNir20-Dec-03 21:53 
GeneralCONVERT RGBX to RGBTRIPLE Pin
Member 40481320-Dec-03 21:19
Member 40481320-Dec-03 21:19 
GeneralHide Installing Inf showing display progress bar popup window Pin
rohit.dhamija20-Dec-03 20:00
rohit.dhamija20-Dec-03 20:00 
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


Generalold c++ compiler Pin
mhmoud rawas20-Dec-03 19:22
mhmoud rawas20-Dec-03 19:22 
GeneralRe: old c++ compiler Pin
Monty220-Dec-03 19:50
Monty220-Dec-03 19:50 
GeneralRe: old c++ compiler Pin
mhmoud rawas20-Dec-03 19:59
mhmoud rawas20-Dec-03 19:59 
GeneralRe: old c++ compiler Pin
ZoogieZork20-Dec-03 19:55
ZoogieZork20-Dec-03 19:55 
GeneralRe: old c++ compiler Pin
mhmoud rawas20-Dec-03 20:00
mhmoud rawas20-Dec-03 20:00 
GeneralProblems with PRINTING Pin
Srdjan Mladenovic20-Dec-03 15:19
Srdjan Mladenovic20-Dec-03 15:19 
GeneralMDI Question Pin
Anonymous20-Dec-03 14:27
Anonymous20-Dec-03 14:27 
GeneralRe: MDI Question Pin
Robert A. T. Káldy20-Dec-03 23:38
Robert A. T. Káldy20-Dec-03 23:38 
GeneralCallback question Pin
Steve Messer20-Dec-03 12:41
Steve Messer20-Dec-03 12:41 
GeneralRe: Callback question Pin
valikac21-Dec-03 4:50
valikac21-Dec-03 4:50 
GeneralRe: Callback question Pin
Steve Messer21-Dec-03 8:36
Steve Messer21-Dec-03 8:36 
Generalserious *.dll/virus issue Pin
Anonymous20-Dec-03 10:45
Anonymous20-Dec-03 10:45 
GeneralRe: serious *.dll/virus issue Pin
PJ Arends20-Dec-03 12:23
professionalPJ Arends20-Dec-03 12:23 
GeneralRe: serious *.dll/virus issue Pin
Anonymous20-Dec-03 13:37
Anonymous20-Dec-03 13:37 
GeneralRe: serious *.dll/virus issue Pin
Anonymous20-Dec-03 13:52
Anonymous20-Dec-03 13:52 
GeneralRe: serious *.dll/virus issue Pin
Roger Wright20-Dec-03 14:04
professionalRoger Wright20-Dec-03 14:04 
GeneralRe: serious *.dll/virus issue Pin
David Crow22-Dec-03 3:56
David Crow22-Dec-03 3:56 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.