exe

How do I call a .NET windows app that has been installed from a publish?

If I publish two separate C# Windows forms apps to a server, and a user installs both of these apps on their machine, how would I get one app to call the other (possibly with parameters) from a button click? I don't really understand all this publish and manifest business - the exe doesn't seem to physically exist on the user's pc, so h...

Windows: Changing the DLL search order for an Exe

Hi, I have a C++ Exe in an application directory which contains the DLLs used by it. Now, for some testing purpose I need to modify an existing DLL and use that instead of the original one. But in order to not modify the existing installation I cannot backup the existing DLL and replace it with the modified one or move the existing one ...

Finding my main executable's path using Assembly vs AppDomain

Hi all, My first stackoverflow question, hurray to me. I'm a .NET user, and my goal is as simple as finding the absolute path of the directory of my main executing assembly (the EXE file). I have several candidates: Assembly.GetExecutingAssembly().CodeBase Assembly.GetExecutingAssembly().Location AppDomain.CurrentDomain.BaseDirectory...

Create a new EXE from within C

Am working in VC++ 2008 (express) and I would like to write something in C that creates an "empty" exe that I can later call LoadLibrary on and use BeginUpdateResource, UpdateResource, EndUpdateResource to modify the contents. Just writing a 0-byte file doesn't allow me to open it with LoadLibrary because it isn't a resource. ...

"QSqlDatabase ob" crashes in QT!!!

in my development pc, the line "QSqlDatabase ob" doesn't crash & works just fine. But in a fresh pc moved the exe and it crashed but if i comment the above line and prepare the exe again it runs fine. So I installed things that are required in the fresh pc to run qt from visual studio 2005, just to check whats the problem. Transferred t...

How to run exe in powershell with parameters with spaces and quotes

How do you run this command in powershell: C:\Program Files\IIS\Microsoft Web Deploy\msdeploy.exe -verb:sync -source:dbfullsql="Data Source=mysource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;" -dest:dbfullsql="Data Source=.\mydestsource;Integrated Security=false;User ID=sa;Pwd=sapass!;Database=mydb;",computername=10...

Windows Executable to run Java application deleted by anti virus scanner

I built a Java application that is delivered on USB sticks. To ensure compatibility, I ship an appropriate JVM on the sticks. I made an EXE that simply invokes this JVM with the application jar. Now the problem: some virus scanners act aggressively and just remove the executable! I tried an exe made with a "Batch file to Executable" to...

Load and run an EXE file after a website loaded

Is there a way to load and run an EXE file on the client side, after a webpage has been loaded ? [with java script or HTML ] ...

Use SSL with Delphi yet still having a single exe

Hi, We use Indy and we need SSL eMail support in our app., however we need to have our application in a single .Exe. We know that the default Indy handler requires to have the dlls in the path. Extracting the Dlls from one of the EXE's resources would be the last resort. Any better ideas? ...

need help writing hexadecimals to an exe file

can somone tell me how to write these hexadecimals to an exe file while still having it exec 4D 5A 50 00 02 00 00 00 04 00 0F 00 FF FF 00 00 B8 00 00 00 00 00 00 00 40 00 1A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 BA 10 00 0E 1F B4 09 CD 21 B8 01 4C CD 21 90 90...

How to prevent FileIOPermissionException(and others) when run .NET application from network drive.

My C# application (.NET 3.5 SP1) works very well when if execeuted from local drive. However, if I run it from a network drive, it execute (IT IS .NET 3.5 SP1), but failed to read a file located on the same network drive, during File.ReadAllText. If it matter, the folder structure is like the following \\server\myshare\ABC\app.exe \\s...

Run EXE FROM CLIENT SIDE

Hi I need run an exe file from client side. The Exe file exist in my C:\ Directory. I need run this exe file from my WEB site. How Can I Do This? ...

how to use java jar in c/c++?

i am a new developer of java swing. i want to pack the GUI program. With the help of neatbeans, i get a file of java jar. But i want to convert the jar to exe file, although i know exe4j, but i need the exe file include the jar and other files. Maybe using jar in c/c++ is a solution ? ...

How to deploy C# code to a server? How to run an exe on a server?

Th short story is: I have a Godaddy shared Windows server account and I have some C# code on my computer that runs perfect locally. I want to run this code on the server as an exe file. Is this possible? I do not believe I have command prompt or remote desktop access to my shared space. More details: The end goal is to have a website wh...

Creating single EXE file for project using .Net and another external library

I have an email client created for class that we need to run as a single EXE. It is made with C++ .NET, and the external POCO library, which has a ton of DLL files... What would be the best way to make this happen? I was looking on some similarly asked questions, and some people recommended tools such as ILMerge and Ezirez, but the que...

C++: Loading an EXE as a DLL, local vftable problem

Ok, so this one is abit long to explain so bare with me.. I have an exe named test.exe which is usually used as a stand alone application. I want to use this exe as a module (a dll) inside another application, app.exe. The code in test.exe does something really simple like: void doTest() { MyClass *inst = new MyClass(); inst->...

Creating portable (non-installing) windows applications in C#

I have a .net 3.5 application and i'd like to make it portable. It's simple and runs perfectly, i've sent the .EXE + .DLL's to some friends and it works as intended when running the exe with the .DLL's and the .ICO (that i have used in it) along in the same folder. What i want is simple: creating a single EXE file that cares the dll's, ...

HOWTO add aggregate .NET COM Interop to an ATL EXE Server??

Hello, I would like to know how one can add a .NET C# COM object (created using the COM Interop facility of .NET) to a Visual Studio 2008 ATL EXE Server. Basically, I am trying to create an out of process Automation server to hold my C# COM object to allow it to act as a Singleton server for many clients. I think all I need to do is add...

Python 2.6: reading data from a Windows Console application. (os.system?)

I have a Windows console application that returns some text. I want to read that text in a Python script. I have tried reading it by using os.system, but it is not working properly. import os foo = os.system('test.exe') Assuming that test.exe returns "bar", I want the variable foo to be set to "bar". But what happens is, it prints "b...

Where does windows get the program name for the 'are you sure you want to run this program' dialog for downloaded exes?

On one of my projects, the downloaded installer file gives the internal name for the program name in the 'Do you want to run this software' warning dialog, rather than the external name. Where does windows get this program name from, as there's no sign of it in the standard metadata in the .exe properties? ...