Deployment :: Can An Executable Program Create An Executable File
May 17, 2012
I have a program that outputs a file. I want the user to be able to just double-click the output file and launch the program, just like Word and Excel. In Word for instance, one doesn't necessarily have to open WORD then click on File--> Open and locate another Word doc. He can just go to the folder and open the Word doc. I want to implement the exact scenario in my program.
So far I have tried creating TextFile and added it to the Resources. On FormLoading, I simply I stream-read the Resouce file, but I can't write to the Resource on FormClosing, since the Resource is ReadOnly. Also, the Resource is built & compiled so I suppose you can't add anything to it at run time.How you lunch an output file without launching the Executable program that created it?
I have an executable that I was able to get working on all XP machines by registering all the .dll's associated with it.On Vista, however, I go through the exact same registration process but right when I open the executable it goes to a "WindowsApplication1 has stopped working" dialog. I registered the DLLs in the SysWOW64 folder. I also ran Dependency Walker which came up with IEFrame.dll as flagged, don't know if that is relevant though.
I've created an executable that's called by another app for processes that require UAC elevated privileges. If I build this project with the below manifest it requests UAC fine, if I add this projects output to my setup project it creates it without UAC?[code]....
how I can deploy my .NET applicationwithout the user having to install the program.i.e. In VB6, I could just create a executable file which did not require the user to install anything, they would simple run the program.
I would like to install a readme.txt file in the same All Programs folder as my application using ClickOnce deployment. The Build Action property is set to "Content" and the Copy to Output Directory is set to "Copy always" for this file. In the Application Files dialog box, Publish Status=Include for the file. After running setup.exe, the app is installed properly in the Start/All Programs/MBCI folder, but the readme.txt file is not there. Is the file installed somewhere else?
I am working on a relatively simple program in VB.NET. I am trying to make the installation process as simple as possible for the user.I know its possible to use the executable from the debug directory as a stand alone executable, but are there any drawbacks to this approach? For example, if the user does not have .NET on their machine, the program will not run. Is there a way to publish the program so it is self-contained in a single executable file?
I Actually want to provide a new service which requires creating executables on the fly from executables generated in vb.net. For example lets say I have a form with a textbox and in that textbox we pass an argument which is for example the serial of the product, then we have a button which once clicked will generate an executable on the fly which has also a textbox requiring that serial to run? That was only an example but the main thing is how to generate that exe on the fly.
I am totally a newbie to VB.net, now I am developping a Windows Service, which will start an *.exe when starting. How can I detect and re-start a process of this executable if it got killed by some other program?[cod]e...
I've been developing an application that is basically a GUI for several batch files. You click on a button, and the corresponding batch file will run. I got it working in debug using this code:
Private Sub btnOpenFS_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnOpenFS.Click System.Diagnostics.Process.Start("openfs.bat") End Sub
As Google and Yahoo have provided barely anything, I was wondering if anyone can point me in the right direction on how to, or an example of how I can build a working executable during runtime in vb.net.It's for my custom school project.
Well I have a program, and I want to the program works alone at determinate time. I know that I have to create a "standalone executable" proyect or something like that. I really don't know how do this kind of things.
this i want to make my program to be executable..but i dont know how to make when i go to the file the makeproject1.exe is greyed out...what is the problem on this.
I'm trying to run a program (mame.exe) within a vb program. Mame is a program that allows you to run old video games. The games are stored in rom files. If you want to run mame.exe from a dos prompt, the syntax is "c:/mame.exe [rom]". The [rom] is the particular game you are running. I'm trying to create a front end menu from which I can execute games.
I've tried:
Process.Start( "c:/mamefiles/mame.exe [rom]")
and I get an error that says it can't find the file.
I tried
Process.Start( "c:/mamefiles/mame.exe", "[rom]")
and it seems to start the program but immediately shuts down mame.I tried
Shell("c:/mamefiles/mame.exe [rom]")
and again it seems to start the program but immediately shuts down mame.
I'm trying to create a little executable that when launched opens an IE browser to various websites like news sites all in different tabs. for example, a tab for wsj, nytimes, etc. How do I access IE with vb.net? What reference do I need to add? I can't find any sample code that I can make work I think it is because I am missing a library in my assembly?
I wrote this VB program to be able to throw a device we developed into programming mode where we use an ATMEL Flip installer to upload new firmware. I can program one device after another running the application off of Visual Studio Express 2010 or Visual Studio 2010, but when I go to publish this file and run it on another machine, it becomes unstable and crashes after each upload. On those same computers if I run the raw unpackaged program under Visual Studio Express, the system does not crash, and I can program devices repeatedly.
Ok, so I'm working with a team of people/programmers and we are all trying to explore the possibilities within Visual Basic 2008. As such, we are all working on our own programs at the same time, but all for one small organization. Well, I'm working on making an installer that will bascially do as follows:
I have a custom button in IE8 which starts up my program. Now what I wanted to do, was pass an arguement such as: 'myprogram.exe /ie'
From the IE8 button, and well my program will do rest from there. Now my program adds the button just fine, shows up fine, all that works. But each time i'd add an argument after my application path, IE8 would say it can't find the program. If you want to test this out, goto run, type in gpedit.msc, then 'User Configuration'->'Windows Settings'->'Internet Explorer Maintenance'->'Browser User Interface', and double click on 'Browser Toolbar Customizations'. And in the small window that pops up, is an option for adding custom buttons to IE. I was using this for testing purposes, since it was faster to edit a button here than in my program. When you add a button you choose the executable to link it to. But if you add any arguments after it, IE will simply not be able to find the program. Even if that same command works when you type it from 'run'.
So, now my question is, since apperntly you can't have any arguments in the button, is it possible to detect what executable starts your program? For instance, detect if iexplore.exe started up my program?
I would create a launcher for a game that is located in \folder\executable.exe I tried using the command shell, but the game does not start because it needs all the files found in folder.
I want to create a patch system which patches the entire executable. So like: You download my patch and it changes the code of the existing executable instead of replacing it. the reason why: I got an application which is already around the ~15MB and it will grow bigger (Like 200~300MB) so, I want to keep it compact.I've already read that patching an executable for only a string is quite easy, but, I got my doubts about actual code and resources.
I develop my application with VBNET2008 express and SQL server express 2005 but a little problem appears,my executable file is always READONLY.However,I make modifications in my code file,it stills unchangeable in the Executable File How can i do for this?
I'm trying to make a program that has command buttons, each running a different file. I have added some files so far, but I encountered a problem with a couple of them.
For example, I want to run Zuma's Revenge! right from the program, but it is not working. If I run the game from outside the program, it runs perfectly, but when I try running it from the program, it keeps saying "Zumas Revenge! - Adventure has stopped working."
What really confused me, is that the game is running normally if I run it from its folder or by using the shortcut, while from the program it isn't.I'm using Windows 7, with Visual Basic 2010 Express.
'Here's the code I'm using:
Private Sub Zumas_Revenge_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Zumas_Revenge.Click Process.Start(My.Application.Info.DirectoryPath & "umas Revenge! - AdventureumasRevengeAdventure.exe") End Sub
How do i download a executable file like andrews done here with the image:[url] and would like to do get the response data and save that into a file instead of directly downloading it.Once you eliminate the impossible, whatever remains, no matter how improbable, must be the truth. - "Sherlock holmes" "speak softly and carry a big stick" - theodore roosevelt.
I am trying to start an executable file, example.exe. When I run this code I get the fallowing error.
Dim start As String Dim location As String = TextBox1.Text start= Shell(location & "example.exe", vbNormalFocus) AppActivate(start) Error:AppActivate(Result) --> Process '5476' was not found.
Every time I start the program I get a new Process error, like 5572 or 5252. What is the reason for this error? Also how can I error trap this so I can find out what the error really is.