CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2006
    Posts
    83

    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.

  2. #2
    Join Date
    Aug 2001
    Location
    Sydney, Australia
    Posts
    813

    Re: Launching app after driver installation

    Well if you can't use any 3rd party installation software how are you installing it?
    Microsoft LVP - Least Valuable Professional

    Please rate this post... Pleeeeeeaaassee!!!

  3. #3
    Join Date
    Jan 2006
    Posts
    83

    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.

  4. #4
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537

    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

  5. #5
    Join Date
    Apr 2003
    Location
    kathmandu, nepal
    Posts
    1,570

    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.
    Last edited by miteshpandey; November 6th, 2006 at 05:52 AM.
    If there is no love sun won't shine

  6. #6
    Join Date
    Jan 2006
    Posts
    83

    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.

  7. #7
    Join Date
    Jan 2006
    Posts
    83

    Re: Launching app after driver installation

    Quote Originally Posted by Mick
    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

    I'm running Windows XP. Have not used Windows services before.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured