including other programs

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lynn

    including other programs

    Hi,
    I my vb.net application is calling another application (abc.exe) to run. How
    can i package this abc.exe file into my vb.net application ?
    thanks


  • Marwan Tarek

    #2
    Re: including other programs

    Hello Lynn,

    copy abc.exe beside your project exe in debug folder
    in the code calling abc.exe use Application.Sta rtupPath as part of your path,
    so the full path is relative to your application; then when creating the
    setup file add abc.exe beside your project primary output

    Marwan Tarek

    [color=blue]
    > Hi,
    > I my vb.net application is calling another application (abc.exe) to
    > run. How
    > can i package this abc.exe file into my vb.net application ?
    > thanks[/color]


    Comment

    • Lynn

      #3
      Re: including other programs

      sorry, i am new to .net, can you give me a step by step instruction?
      thanks

      "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
      news:54c9626d1b 9b8c8029abd15c2 b6@msnews.micro soft.com...[color=blue]
      > Hello Lynn,
      >
      > copy abc.exe beside your project exe in debug folder
      > in the code calling abc.exe use Application.Sta rtupPath as part of your[/color]
      path,[color=blue]
      > so the full path is relative to your application; then when creating the
      > setup file add abc.exe beside your project primary output
      >
      > Marwan Tarek
      > http://www.sharepointblogs.com/marwantarek/
      >[color=green]
      > > Hi,
      > > I my vb.net application is calling another application (abc.exe) to
      > > run. How
      > > can i package this abc.exe file into my vb.net application ?
      > > thanks[/color]
      >
      >[/color]


      Comment

      • Marwan Tarek

        #4
        Re: including other programs

        Hello Lynn,

        when you are developing you will find in the project folder, a bin folder
        under it debug folder where you can find there exe of your developed application.
        copy your abc.exe to there

        in the code running abc.exe, you supposed to defining the path of abc.exe
        define it like that
        Application.Sta rtupPath + "abc.exe"

        then test it if it is fine you can start packaging
        check this link for deploying windows application


        notice this steps in the article

        To add the Windows application to the installer

        Select the My Notepad Installer project in Solution Explorer. In the File
        System Editor, select the Application Folder node.
        On the Action menu, choose Add, Project Output.
        In the Add Project Output Group dialog box, choose My Notepad from the Project
        drop-down list. Click OK to close the dialog box.
        Select the Primary Output group from the list, then click OK.
        On the Build menu, choose Build My Notepad Installer.

        after these steps right click on teh right pane in the file system editor
        and click add->File then browse your abc.exe.
        then build your application and you will have a successfull setup file ;)

        Ciao

        Marwan Tarek

        [color=blue]
        > sorry, i am new to .net, can you give me a step by step instruction?
        > thanks
        >
        > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
        > news:54c9626d1b 9b8c8029abd15c2 b6@msnews.micro soft.com...
        >[color=green]
        >> Hello Lynn,
        >>
        >> copy abc.exe beside your project exe in debug folder in the code
        >> calling abc.exe use Application.Sta rtupPath as part of your
        >>[/color]
        > path,
        >[color=green]
        >> so the full path is relative to your application; then when creating
        >> the setup file add abc.exe beside your project primary output
        >>
        >> Marwan Tarek
        >> http://www.sharepointblogs.com/marwantarek/[color=darkred]
        >>> Hi,
        >>> I my vb.net application is calling another application (abc.exe) to
        >>> run. How
        >>> can i package this abc.exe file into my vb.net application ?
        >>> thanks[/color][/color][/color]


        Comment

        • Lynn

          #5
          Re: including other programs

          Hi Marwan,
          thanks for the info, but i this is not what i am looking for. I want to
          package abc.exe file together with my vb.net application into one .exe file.
          can this be done?


          "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
          news:54c9626d1c fd8c802f99b2320 7c@msnews.micro soft.com...[color=blue]
          > Hello Lynn,
          >
          > when you are developing you will find in the project folder, a bin folder
          > under it debug folder where you can find there exe of your developed[/color]
          application.[color=blue]
          > copy your abc.exe to there
          >
          > in the code running abc.exe, you supposed to defining the path of abc.exe
          > define it like that
          > Application.Sta rtupPath + "abc.exe"
          >
          > then test it if it is fine you can start packaging
          > check this link for deploying windows application
          >[/color]
          http://msdn.microsoft.com/library/de...pplication.asp[color=blue]
          >
          > notice this steps in the article
          >
          > To add the Windows application to the installer
          >
          > Select the My Notepad Installer project in Solution Explorer. In the File
          > System Editor, select the Application Folder node.
          > On the Action menu, choose Add, Project Output.
          > In the Add Project Output Group dialog box, choose My Notepad from the[/color]
          Project[color=blue]
          > drop-down list. Click OK to close the dialog box.
          > Select the Primary Output group from the list, then click OK.
          > On the Build menu, choose Build My Notepad Installer.
          >
          > after these steps right click on teh right pane in the file system editor
          > and click add->File then browse your abc.exe.
          > then build your application and you will have a successfull setup file ;)
          >
          > Ciao
          >
          > Marwan Tarek
          > http://www.sharepointblogs.com/marwantarek/
          >[color=green]
          > > sorry, i am new to .net, can you give me a step by step instruction?
          > > thanks
          > >
          > > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
          > > news:54c9626d1b 9b8c8029abd15c2 b6@msnews.micro soft.com...
          > >[color=darkred]
          > >> Hello Lynn,
          > >>
          > >> copy abc.exe beside your project exe in debug folder in the code
          > >> calling abc.exe use Application.Sta rtupPath as part of your
          > >>[/color]
          > > path,
          > >[color=darkred]
          > >> so the full path is relative to your application; then when creating
          > >> the setup file add abc.exe beside your project primary output
          > >>
          > >> Marwan Tarek
          > >> http://www.sharepointblogs.com/marwantarek/
          > >>> Hi,
          > >>> I my vb.net application is calling another application (abc.exe) to
          > >>> run. How
          > >>> can i package this abc.exe file into my vb.net application ?
          > >>> thanks[/color][/color]
          >
          >[/color]


          Comment

          • Lloyd Dupont

            #6
            Re: including other programs

            You could embed it as any other resource.
            However if you want to execute you'll have to write the code which take the
            resource and save to the disk.

            "Lynn" <MarryLynn@yah0 0.c0m> wrote in message
            news:ueZy%23VQN GHA.3908@TK2MSF TNGP10.phx.gbl. ..[color=blue]
            > Hi Marwan,
            > thanks for the info, but i this is not what i am looking for. I want to
            > package abc.exe file together with my vb.net application into one .exe
            > file.
            > can this be done?
            >
            >
            > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
            > news:54c9626d1c fd8c802f99b2320 7c@msnews.micro soft.com...[color=green]
            >> Hello Lynn,
            >>
            >> when you are developing you will find in the project folder, a bin folder
            >> under it debug folder where you can find there exe of your developed[/color]
            > application.[color=green]
            >> copy your abc.exe to there
            >>
            >> in the code running abc.exe, you supposed to defining the path of abc.exe
            >> define it like that
            >> Application.Sta rtupPath + "abc.exe"
            >>
            >> then test it if it is fine you can start packaging
            >> check this link for deploying windows application
            >>[/color]
            > http://msdn.microsoft.com/library/de...pplication.asp[color=green]
            >>
            >> notice this steps in the article
            >>
            >> To add the Windows application to the installer
            >>
            >> Select the My Notepad Installer project in Solution Explorer. In the File
            >> System Editor, select the Application Folder node.
            >> On the Action menu, choose Add, Project Output.
            >> In the Add Project Output Group dialog box, choose My Notepad from the[/color]
            > Project[color=green]
            >> drop-down list. Click OK to close the dialog box.
            >> Select the Primary Output group from the list, then click OK.
            >> On the Build menu, choose Build My Notepad Installer.
            >>
            >> after these steps right click on teh right pane in the file system editor
            >> and click add->File then browse your abc.exe.
            >> then build your application and you will have a successfull setup file ;)
            >>
            >> Ciao
            >>
            >> Marwan Tarek
            >> http://www.sharepointblogs.com/marwantarek/
            >>[color=darkred]
            >> > sorry, i am new to .net, can you give me a step by step instruction?
            >> > thanks
            >> >
            >> > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
            >> > news:54c9626d1b 9b8c8029abd15c2 b6@msnews.micro soft.com...
            >> >
            >> >> Hello Lynn,
            >> >>
            >> >> copy abc.exe beside your project exe in debug folder in the code
            >> >> calling abc.exe use Application.Sta rtupPath as part of your
            >> >>
            >> > path,
            >> >
            >> >> so the full path is relative to your application; then when creating
            >> >> the setup file add abc.exe beside your project primary output
            >> >>
            >> >> Marwan Tarek
            >> >> http://www.sharepointblogs.com/marwantarek/
            >> >>> Hi,
            >> >>> I my vb.net application is calling another application (abc.exe) to
            >> >>> run. How
            >> >>> can i package this abc.exe file into my vb.net application ?
            >> >>> thanks[/color]
            >>
            >>[/color]
            >
            >[/color]


            Comment

            • Lynn

              #7
              Re: including other programs

              how to go about embeding it ?

              "Lloyd Dupont" <net.galador@ld > wrote in message
              news:epN5GFRNGH A.2788@TK2MSFTN GP11.phx.gbl...[color=blue]
              > You could embed it as any other resource.
              > However if you want to execute you'll have to write the code which take[/color]
              the[color=blue]
              > resource and save to the disk.
              >
              > "Lynn" <MarryLynn@yah0 0.c0m> wrote in message
              > news:ueZy%23VQN GHA.3908@TK2MSF TNGP10.phx.gbl. ..[color=green]
              > > Hi Marwan,
              > > thanks for the info, but i this is not what i am looking for. I want to
              > > package abc.exe file together with my vb.net application into one .exe
              > > file.
              > > can this be done?
              > >
              > >
              > > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
              > > news:54c9626d1c fd8c802f99b2320 7c@msnews.micro soft.com...[color=darkred]
              > >> Hello Lynn,
              > >>
              > >> when you are developing you will find in the project folder, a bin[/color][/color][/color]
              folder[color=blue][color=green][color=darkred]
              > >> under it debug folder where you can find there exe of your developed[/color]
              > > application.[color=darkred]
              > >> copy your abc.exe to there
              > >>
              > >> in the code running abc.exe, you supposed to defining the path of[/color][/color][/color]
              abc.exe[color=blue][color=green][color=darkred]
              > >> define it like that
              > >> Application.Sta rtupPath + "abc.exe"
              > >>
              > >> then test it if it is fine you can start packaging
              > >> check this link for deploying windows application
              > >>[/color]
              > >[/color][/color]
              http://msdn.microsoft.com/library/de...pplication.asp[color=blue][color=green][color=darkred]
              > >>
              > >> notice this steps in the article
              > >>
              > >> To add the Windows application to the installer
              > >>
              > >> Select the My Notepad Installer project in Solution Explorer. In the[/color][/color][/color]
              File[color=blue][color=green][color=darkred]
              > >> System Editor, select the Application Folder node.
              > >> On the Action menu, choose Add, Project Output.
              > >> In the Add Project Output Group dialog box, choose My Notepad from the[/color]
              > > Project[color=darkred]
              > >> drop-down list. Click OK to close the dialog box.
              > >> Select the Primary Output group from the list, then click OK.
              > >> On the Build menu, choose Build My Notepad Installer.
              > >>
              > >> after these steps right click on teh right pane in the file system[/color][/color][/color]
              editor[color=blue][color=green][color=darkred]
              > >> and click add->File then browse your abc.exe.
              > >> then build your application and you will have a successfull setup file[/color][/color][/color]
              ;)[color=blue][color=green][color=darkred]
              > >>
              > >> Ciao
              > >>
              > >> Marwan Tarek
              > >> http://www.sharepointblogs.com/marwantarek/
              > >>
              > >> > sorry, i am new to .net, can you give me a step by step instruction?
              > >> > thanks
              > >> >
              > >> > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
              > >> > news:54c9626d1b 9b8c8029abd15c2 b6@msnews.micro soft.com...
              > >> >
              > >> >> Hello Lynn,
              > >> >>
              > >> >> copy abc.exe beside your project exe in debug folder in the code
              > >> >> calling abc.exe use Application.Sta rtupPath as part of your
              > >> >>
              > >> > path,
              > >> >
              > >> >> so the full path is relative to your application; then when creating
              > >> >> the setup file add abc.exe beside your project primary output
              > >> >>
              > >> >> Marwan Tarek
              > >> >> http://www.sharepointblogs.com/marwantarek/
              > >> >>> Hi,
              > >> >>> I my vb.net application is calling another application (abc.exe) to
              > >> >>> run. How
              > >> >>> can i package this abc.exe file into my vb.net application ?
              > >> >>> thanks
              > >>
              > >>[/color]
              > >
              > >[/color]
              >
              >[/color]


              Comment

              • Lloyd Dupont

                #8
                Re: including other programs

                With VS.NET:
                right click on your project folder: add existing items.
                then properties: build properties => embeded resources.
                then I advise to read the SDK documentation.
                and look for the documentation of method
                Assembly.GetMan ifestResourceSt ream as well

                "Lynn" <MarryLynn@yah0 0.c0m> wrote in message
                news:OhmhyyRNGH A.3856@TK2MSFTN GP12.phx.gbl...[color=blue]
                > how to go about embeding it ?
                >
                > "Lloyd Dupont" <net.galador@ld > wrote in message
                > news:epN5GFRNGH A.2788@TK2MSFTN GP11.phx.gbl...[color=green]
                >> You could embed it as any other resource.
                >> However if you want to execute you'll have to write the code which take[/color]
                > the[color=green]
                >> resource and save to the disk.
                >>
                >> "Lynn" <MarryLynn@yah0 0.c0m> wrote in message
                >> news:ueZy%23VQN GHA.3908@TK2MSF TNGP10.phx.gbl. ..[color=darkred]
                >> > Hi Marwan,
                >> > thanks for the info, but i this is not what i am looking for. I want to
                >> > package abc.exe file together with my vb.net application into one .exe
                >> > file.
                >> > can this be done?
                >> >
                >> >
                >> > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
                >> > news:54c9626d1c fd8c802f99b2320 7c@msnews.micro soft.com...
                >> >> Hello Lynn,
                >> >>
                >> >> when you are developing you will find in the project folder, a bin[/color][/color]
                > folder[color=green][color=darkred]
                >> >> under it debug folder where you can find there exe of your developed
                >> > application.
                >> >> copy your abc.exe to there
                >> >>
                >> >> in the code running abc.exe, you supposed to defining the path of[/color][/color]
                > abc.exe[color=green][color=darkred]
                >> >> define it like that
                >> >> Application.Sta rtupPath + "abc.exe"
                >> >>
                >> >> then test it if it is fine you can start packaging
                >> >> check this link for deploying windows application
                >> >>
                >> >[/color][/color]
                > http://msdn.microsoft.com/library/de...pplication.asp[color=green][color=darkred]
                >> >>
                >> >> notice this steps in the article
                >> >>
                >> >> To add the Windows application to the installer
                >> >>
                >> >> Select the My Notepad Installer project in Solution Explorer. In the[/color][/color]
                > File[color=green][color=darkred]
                >> >> System Editor, select the Application Folder node.
                >> >> On the Action menu, choose Add, Project Output.
                >> >> In the Add Project Output Group dialog box, choose My Notepad from the
                >> > Project
                >> >> drop-down list. Click OK to close the dialog box.
                >> >> Select the Primary Output group from the list, then click OK.
                >> >> On the Build menu, choose Build My Notepad Installer.
                >> >>
                >> >> after these steps right click on teh right pane in the file system[/color][/color]
                > editor[color=green][color=darkred]
                >> >> and click add->File then browse your abc.exe.
                >> >> then build your application and you will have a successfull setup file[/color][/color]
                > ;)[color=green][color=darkred]
                >> >>
                >> >> Ciao
                >> >>
                >> >> Marwan Tarek
                >> >> http://www.sharepointblogs.com/marwantarek/
                >> >>
                >> >> > sorry, i am new to .net, can you give me a step by step instruction?
                >> >> > thanks
                >> >> >
                >> >> > "Marwan Tarek" <meroeng1@hotma il.com> wrote in message
                >> >> > news:54c9626d1b 9b8c8029abd15c2 b6@msnews.micro soft.com...
                >> >> >
                >> >> >> Hello Lynn,
                >> >> >>
                >> >> >> copy abc.exe beside your project exe in debug folder in the code
                >> >> >> calling abc.exe use Application.Sta rtupPath as part of your
                >> >> >>
                >> >> > path,
                >> >> >
                >> >> >> so the full path is relative to your application; then when
                >> >> >> creating
                >> >> >> the setup file add abc.exe beside your project primary output
                >> >> >>
                >> >> >> Marwan Tarek
                >> >> >> http://www.sharepointblogs.com/marwantarek/
                >> >> >>> Hi,
                >> >> >>> I my vb.net application is calling another application (abc.exe)
                >> >> >>> to
                >> >> >>> run. How
                >> >> >>> can i package this abc.exe file into my vb.net application ?
                >> >> >>> thanks
                >> >>
                >> >>
                >> >
                >> >[/color]
                >>
                >>[/color]
                >
                >[/color]


                Comment

                Working...