Launching app after driver installation
Even though this is not a VC++ related question, I decided to post it here because I got no response in the Driver forum and it seems from experience that this is the most widely browsed forum.
I have developed a dialog based MFC app that monitors a PC Card device. The executable is copied into the Windows Startup directory using
MyApp.Copyfiles = 16408 in the driver INF file.
By copying MyApp.exe into the startup folder, the app will always run at windows startup and reside in the system tray. The task at hand is to launch the app after the driver is installed for the first time without having to reboot.
If anyone has ideas as to how to go about doing this , please share. No 3rd party Installation software (InstallShield etc.) are to be used.
Thanks.
Re: Launching app after driver installation
Well if you can't use any 3rd party installation software how are you installing it?
Re: Launching app after driver installation
Quote:
Originally Posted by Deniz
Well if you can't use any 3rd party installation software how are you installing it?
The driver is installed using the default Windows Installer. When the user inserts the PC card, Windows pops the Add Hardware wizard and all the user has to do is click ok to windows searching for the driver in the CD ROM.
The MyApp.CopyFiles=16408 is an INF statement that installes MyApp.exe in the All Users\Startup folder.
Re: Launching app after driver installation
A number of ways to go about this. What OS are you running on? As an initial comment, I'd say query the service control manager and see if the driver is running.
http://msdn.microsoft.com/library/de...e/services.asp
Re: Launching app after driver installation
Quote:
Originally Posted by sabasdad
The MyApp.CopyFiles=16408 is an INF statement that installes MyApp.exe in the All Users\Startup folder.
The installer may accept another statement (of which you are not aware of) that would launch your application after successful installation.
Re: Launching app after driver installation
Quote:
Originally Posted by miteshpandey
The installer may accept another statement (of which you are not aware of) that would launch your application after successful installation.
I guess I posted this thread because I'm looking for the installer statement that I'm unaware of to launch the app.
Re: Launching app after driver installation
Quote:
Originally Posted by Mick
I'm running Windows XP. Have not used Windows services before.