executable

Packaging Java apps for the Windows/Linux desktop.

I am writing an application in Java for the desktop using the Eclipse SWT library for GUI rendering. I think SWT helps Java get over the biggest hurdle for acceptance on the desktop: namely providing a Java application with a consistent, responsive interface that looks like that belonging to any other app on your desktop. However, I fe...

Final managed exception handler in a mixed native/managed executable?

I have an MFC application compiled with /clr and I'm trying to implement a final handler for otherwise un-caught managed exceptions. For native exceptions, overriding CWinApp::ProcessWndProcException works. The two events suggested in Jeff's CodeProject article, Application.ThreadException and AppDomain.CurrentDomain.UnhandledException,...

Creation Date of Compiled Executable (VC++ 2005)

The creation date of an executable linked in VS2005 is not set to the real creation-date of the exe-file. Only a complete re-build will set the current date, a re-link will not do it. Obviously the file is set to some date, which is taken from one of the project-files. So: is there a way to force the linker to set the creation-date to ...

Python deployment and /usr/bin/env portability

At the beginning of all my executable Python scripts I put the shebang line: #!/usr/bin/env python I'm running these scripts on a system where env python yields a Python 2.2 environment. My scripts quickly fail because I have a manual check for a compatible Python version: if sys.version_info < (2, 4): raise ImportError("Cannot r...

What is the best way to make an EXE file from a Python program?

I've used several modules to make EXEs for Python. Which options/library is best? It has been some time since I've done this and I'm curious if there are any new options, etc. ...

How can I package my Perl script to run on a machine without Perl?

People also often ask "How can I compile Perl?" while what they really want is to create an executable that can run on machines even if they don't have Perl installed. There are several solutions, I know of: perl2exe of IndigoStar It is commercial. I never tried. Its web site says it can cross compile Win32, Linux, and Solaris. Perl D...

Force IIS7 to suggest downloading *.exe files in "Local intranet" zone

Problem: html file on local server (inside our organization) with link to an exe on the same server. clicking the link runs the exe on the client. Instead I want it to offer downloading it. Tried so far: Changed permissions on the exe's virtual directory to be read and script. Added Content-disposition header on the exe's directory...

Vista not allowing one .exe to call another .exe

I have a legacy VB6 executable that runs on Vista. This executable shells out another legacy MFC C++ executable. In our early Vista testing, this call would display the typical UAC message to get the user's permission before running the second executable. This wasn't perfect, but acceptable. However, it now looks like this call is bei...

How to get the executable path from a Managed DLL

I have a managed DLL (written in C++/CLI) that contains a class used by a C# executable. In the constructor of the class, I need to get access to the full path of the executable referencing the DLL. In the actual app I know I can use the Application object to do this, but how can I do it from a managed DLL? ...

Combining two executables

I have a command line executable that alters some bits in a file that i want to use from my program. Is it possible to create my own executable that uses this tool and distribute only one executable? [edit] Clarification: The command line tool takes an offset and some bits and changes the bits at this offset in a given file. So I want ...

Trying to get a Windows Service to run an executable on a shared drive

I have c# that will run in a windows service. I'm trying to use the Process and ProcessStartInfo classes to run an executable. If the executable is on the local drive, no problem. However, I need to run an executable on a shared drive. I've tried using the UNC notation (//machine_name/share_name/directory/runme.exe), but the process ...

How can I wrap a call to an .exe (with arguments) with another .exe?

I have a Windows executable (say program.exe) and I want to provide users with 2 launchers that will pass different arguments to it. program.exe -a program.exe -b I can easily do this with 2 batch files, but I would rather provide users with 2 .exe files as they are more likely to be used correctly without editing. Is there an easy w...

Creating self-contained python applications

I'm trying to create a self-contained version of pisa (html to pdf converter, latest version), but I can't succeed due to several errors. I've tried py2exe, bb-freeze and cxfreeze. This has to be in windows, which makes my life a bit harder. I remember that a couple of months ago the author had a zip file containing the install, but now...

php executing an executable (that writes to the serial port) and freezes

I have a php script that is executing an executable that writes to a serial port. However, everytime it runs system("c:\Untitled1.exe") it just opens up a cmd window and freezes. Anybody know how to fix this? Or if there is an easier way to get PHP to write to the serial port directly? (I've already tried these two: http://blogs.vinutho...

Tiny python executable?

I plan to use PyInstaller to create a stand-alone python executable. PythonInstaller comes with built-in support for UPX and uses it to compress the executable but they are still really huge (about 2,7 mb). Is there any way to create even smaller Python executables? For example using a shrinked python.dll or something similiar? ...

Determine target architecture of binary file in Linux (library or executable)

We have an issue related to a Java application running under a (rather old) FC3 on a Advantech POS board with a Via C3 processor. The java application has several compiled shared libs that are accessed via JNI. Via C3 processor is suppossed to be i686 compatible. Some time ago after installing Ubuntu 6.10 on a MiniItx board with the sam...

How to statically link an existing linux executable?

Looking for a way to convert a dynamically linked executable to a static executable. Seems like it should be possible but man pages are turning up short and google's not helping either. ...

C# - How to call an exe added into project solution

So I added an EXE to my project's solution. The EXE does some stuff and outputs data via stdout. I want to capture the output, but more importantly how do I execute that EXE within my program? ...

How to find out which version of .NET Framework executable needs to run?

I've got an executable file, and I would like to know which versions of the .net framework this file needs to be started. Is there an easy way to find this information somewhere? (So far I tried ildasm and dumpbin without any luck) ...

IDA Pro and editing executables

This is kind of an unorthodox question. I'm kinda new to using IDA Pro. Is there a way to edit the assembly code and then have IDA save the result as an executable? Is there some kind of plugin maybe that does that? because it seems that IDA doesn't want to save as an EXE. Or do I need to manually edit it in some other way? ...