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 7 1387
Hello Lynn,
copy abc.exe beside your project exe in debug folder
in the code calling abc.exe use Application.StartupPath 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
sorry, i am new to .net, can you give me a step by step instruction?
thanks
"Marwan Tarek" <me******@hotmail.com> wrote in message
news:54*************************@msnews.microsoft. com... Hello Lynn,
copy abc.exe beside your project exe in debug folder in the code calling abc.exe use Application.StartupPath 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
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.StartupPath + "abc.exe"
then test it if it is fine you can start packaging
check this link for deploying windows application http://msdn.microsoft.com/library/de...pplication.asp
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 http://www.sharepointblogs.com/marwantarek/ sorry, i am new to .net, can you give me a step by step instruction? thanks
"Marwan Tarek" <me******@hotmail.com> wrote in message news:54*************************@msnews.microsoft. com...
Hello Lynn,
copy abc.exe beside your project exe in debug folder in the code calling abc.exe use Application.StartupPath 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
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" <me******@hotmail.com> wrote in message
news:54*************************@msnews.microsoft. com... 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.StartupPath + "abc.exe"
then test it if it is fine you can start packaging check this link for deploying windows application http://msdn.microsoft.com/library/de...pplication.asp 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 http://www.sharepointblogs.com/marwantarek/
sorry, i am new to .net, can you give me a step by step instruction? thanks
"Marwan Tarek" <me******@hotmail.com> wrote in message news:54*************************@msnews.microsoft. com...
Hello Lynn,
copy abc.exe beside your project exe in debug folder in the code calling abc.exe use Application.StartupPath 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
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" <Ma*******@yah00.c0m> wrote in message
news:ue****************@TK2MSFTNGP10.phx.gbl... 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" <me******@hotmail.com> wrote in message news:54*************************@msnews.microsoft. com... 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.StartupPath + "abc.exe"
then test it if it is fine you can start packaging check this link for deploying windows application http://msdn.microsoft.com/library/de...pplication.asp 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 http://www.sharepointblogs.com/marwantarek/
> sorry, i am new to .net, can you give me a step by step instruction? > thanks > > "Marwan Tarek" <me******@hotmail.com> wrote in message > news:54*************************@msnews.microsoft. com... > >> Hello Lynn, >> >> copy abc.exe beside your project exe in debug folder in the code >> calling abc.exe use Application.StartupPath 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
how to go about embeding it ?
"Lloyd Dupont" <net.galador@ld> wrote in message
news:ep**************@TK2MSFTNGP11.phx.gbl... 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" <Ma*******@yah00.c0m> wrote in message news:ue****************@TK2MSFTNGP10.phx.gbl... 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" <me******@hotmail.com> wrote in message news:54*************************@msnews.microsoft. com... 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.StartupPath + "abc.exe"
then test it if it is fine you can start packaging check this link for deploying windows application http://msdn.microsoft.com/library/de...pplication.asp 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 http://www.sharepointblogs.com/marwantarek/
> sorry, i am new to .net, can you give me a step by step instruction? > thanks > > "Marwan Tarek" <me******@hotmail.com> wrote in message > news:54*************************@msnews.microsoft. com... > >> Hello Lynn, >> >> copy abc.exe beside your project exe in debug folder in the code >> calling abc.exe use Application.StartupPath 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
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.GetManifestResourceStream as well
"Lynn" <Ma*******@yah00.c0m> wrote in message
news:Oh**************@TK2MSFTNGP12.phx.gbl... how to go about embeding it ?
"Lloyd Dupont" <net.galador@ld> wrote in message news:ep**************@TK2MSFTNGP11.phx.gbl... 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" <Ma*******@yah00.c0m> wrote in message news:ue****************@TK2MSFTNGP10.phx.gbl... > 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" <me******@hotmail.com> wrote in message > news:54*************************@msnews.microsoft. com... >> 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.StartupPath + "abc.exe" >> >> then test it if it is fine you can start packaging >> check this link for deploying windows application >> > http://msdn.microsoft.com/library/de...pplication.asp >> >> 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 >> http://www.sharepointblogs.com/marwantarek/ >> >> > sorry, i am new to .net, can you give me a step by step instruction? >> > thanks >> > >> > "Marwan Tarek" <me******@hotmail.com> wrote in message >> > news:54*************************@msnews.microsoft. com... >> > >> >> Hello Lynn, >> >> >> >> copy abc.exe beside your project exe in debug folder in the code >> >> calling abc.exe use Application.StartupPath 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 >> >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: J. Campbell |
last post by:
I'm wondering if there are any compelling reasons NOT to use the types
defined in stdint.h in c-programms?
Please refer to this thread:...
|
by: jrefactors |
last post by:
If the C programs have UNIX system calls such as fork(), alarm(),
etc.., we should call it UNIX programs, not traditional C programs?
We couldn't compile the programs with system calls using VC++...
|
by: Joe DeAngelo |
last post by:
Is it possible to include assembler code into CSharp?
If yes, could someone give me an example?
Joe
|
by: Jeff Cobelli |
last post by:
I am trying to include two classes as members of another class in a
webservice. The definitions look basically like this:
Public Class clsLender
Public ID As String
Public Name As String
End...
|
by: Joseph Wakeling |
last post by:
Hello all,
I'm writing some programs that will be using modules from the GNU
Scientific Library (GSL).
Include commands within the GSL modules have commands such as,
#include...
|
by: Blair Fonville |
last post by:
Hi,
I have a basic c++ question to which I can't find an answer in my books.
Suppose I have a pair of files date.h/date.cpp which creates a class
"date". I then have a pair of files...
|
by: Jerry |
last post by:
Hi
I have noticed that my apps don't have an uninstall capacity in the users
programs shortcuts. While users can remove the program in the control
panel, add remove programs, I would like to...
|
by: squaretriangle |
last post by:
Regarding either of the following:
1. Including a .c file with #include,
2. Including source code contained in a .h header file with #include
I have 2 questions.
1. Is the reality of most...
|
by: sachin |
last post by:
Hi,
Is it possible to do something like this:
unsigned char arr = {
#include "cFile.c"
}
I need that C source file cFile.c to compile and its binary output to
include in array.
|
by: AmberJain |
last post by:
Windows Autorun FAQs: Programs dealing with autoruns
Linked from the Original article- "Windows Autorun FAQs: Description".
Que: Can you list programs that help me to view/modify the autoruns...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
| |