Results 1 to 8 of 8

Thread: Need help to launch external exe with Progress bar

Hybrid View

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    3

    Need help to launch external exe with Progress bar

    Hello

    I am doing an VB project, that launches external setup.exe, and the installation of the application will be silent, but i have to see progress bar in the Form
    can anybody please help me in coding. I am able to create progress bar and able to launch setup.exe through shell command but how to synchronise the installation process with progress bar.
    My target is to have check boxes associated with application need (I have total 5 application to be given as a choice) as per the check boxes selected it installs the applications with showing the status in progress bar

    Please help me regarding my problem

    Thanx in advance

  2. #2
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Need help to launch external exe with Progress bar

    I think with external exes you can just make approximations as there is no way to get the actual progress. You could just observe how much time approximately the exe takes and set a timer to move your progress bar in your application accordingly.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  3. #3
    Frenzied Member wiz126's Avatar
    Join Date
    Jul 2005
    Location
    Mars,Milky Way... Chit Chat Posts: 5,733
    Posts
    1,080

    Re: Need help to launch external exe with Progress bar

    If you are lunching an external setup.exe, does it have a progress bar in it? if so you should ask ppl if there is anyway for doing global hook on the value of the prograssbar of that setup.exe

    but if not then there is no way of knowing when or at what stage is this setup at


    .
    1) If your post has been adequately answered please click in your post on "Mark Thread Resolved".
    2) If someone has been useful to you please show your respect by rating their posts.
    3) Please use [highlight="VB"] 'your code goes in here [/highlight] tags when posting code.
    4) Before posting your question, make sure you checked this links:
    MICROSOFT MSDN -- VB FORUMS SEARCH

    5)Support Classic VB - A PETITION TO MICROSOFT

    ___________________________________________________________________________________
    THINGS TO KNOW ABOUT VB: || VB Examples/Demos
    What are Classes?
    || -
    Where to place a sub/function?(global) || Webbrowser control

  4. #4

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    3

    Re: Need help to launch external exe with Progress bar

    Thanks for your suggestion.

    Ok can you guys please tell me how can i know the installation is done, atleast, i can launch a dialog box saying that "Ok all of your applications have installed" can i use following statement

    pf= shell "c:\adobe.exe",vbhide

    Thank you

  5. #5
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Need help to launch external exe with Progress bar

    Instead of Shell command use the _____ API (err.. I forgot the name of the API which launches app and waits until it is terminated)

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  6. #6

    Thread Starter
    New Member
    Join Date
    Sep 2005
    Posts
    3

    Re: Need help to launch external exe with Progress bar

    Hello Pradeep

    Thanx for that idea, please try to recall, but meanwhile i Google that thing.

    bye
    Praveen

  7. #7
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Need help to launch external exe with Progress bar

    Quote Originally Posted by vinpra
    Hello Pradeep

    Thanx for that idea, please try to recall, but meanwhile i Google that thing.

    bye
    Praveen
    I've already recalled by now.
    (previous post)


    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

  8. #8
    VB Addict Pradeep1210's Avatar
    Join Date
    Apr 2004
    Location
    Inside the CPU...
    Posts
    6,614

    Re: Need help to launch external exe with Progress bar

    Got it!
    You could use ShellAndWait or WaitForSingleObject API.

    Pradeep
    Pradeep, Microsoft MVP (Visual Basic)
    Please appreciate posts that have helped you by clicking icon on the left of the post.
    "A problem well stated is a problem half solved." — Charles F. Kettering

    Read articles on My Blog101 LINQ SamplesJSON ValidatorXML Schema Validator"How Do I" videos on MSDNVB.NET and C# ComparisonGood Coding PracticesVBForums Reputation SaverString EnumSuper Simple Tetris Game


    (2010-2013)
    NB: I do not answer coding questions via PM. If you want my help, then make a post and PM me it's link. If I can help, trust me I will...

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