Results 1 to 4 of 4

Thread: opening myWizard.exe from myMainApp.exe

  1. #1

    Thread Starter
    Fanatic Member carlblanchard's Avatar
    Join Date
    Sep 2003
    Location
    Bournemouth (UK)
    Posts
    539

    opening myWizard.exe from myMainApp.exe

    Hi all

    ive created a small program which is a wizard to setting all the registry variables for my main program however im doing some error checking can and have said something like this
    VB Code:
    1. MsgBox(MsgTxt, MsgBoxStyle.YesNo, "Application Settings Issue")
    2.                     If MsgBoxResult.OK Then
    3.                         'Open my wizard.exe
    4.                         Application.Exit()
    5.                     Else
    6.                         MsgBox("You need to complete the application settings wizard before using this software", MsgBoxStyle.Exclamation, "Application Settings Issue")
    7.                     End If

    where it says " open my wizard .exe " i want to be able to run my wizard application but how would i open it from here
    (Code examples please)

    Many Thanks
    I am curretly building a defect management system for software and web developers,
    If you wana try it out (beta test) and keep it for free just send me a message

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. Process.Start("c:\pathtothe file\wizard.exe")
    2. 'or this will pause until the other app finishes
    3. Shell("c:\pathtoexe\wizard.exe", AppWinStyle.NormalFocus, True)

  3. #3
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    where it says 'Open my wizard.exe
    you could use Process.Start(" path of your exe here , including .exe ") eg:
    VB Code:
    1. If MessageBox.Show(" some stuff ", Application.ProductName, MessageBoxButtons.YesNo, MessageBoxIcon.Information) = DialogResult.Yes Then
    2.             Process.Start("iexplore.exe") '/// your exe's path where i put iexplore.exe
    3.             Me.Close()
    4.         Else
    5.             MessageBox.Show("You need to complete the application settings wizard before using this software", Application.ProductName)
    6.         End If
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  4. #4
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    pipped to the post while typing
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

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