Run exe which is packaged inside jar file

This will extract the .exe to a local file on the local disk. The file will be deleted when the Java program exists. import java.io.Closeable; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.URI; import java.net.URISyntaxException; import java.net.URL; import java.security.CodeSource; import java.security.ProtectionDomain; import java.util.zip.ZipEntry; import java.util.zip.ZipException; import java.util.zip.ZipFile; public class … Read more

Signing Windows application on Linux-based distros

You can try osslsigncode To sign an EXE or MSI file you can now do: osslsigncode sign -certs <cert-file> -key <der-key-file> \ -n “Your Application” -i http://www.yourwebsite.com/ \ -in yourapp.exe -out yourapp-signed.exe or if you are using a PEM or PVK key file with a password together with a PEM certificate: osslsigncode sign -certs <cert-file> … Read more

pyinstaller creating EXE RuntimeError: maximum recursion depth exceeded while calling a Python object

This worked for me Run pyinstaller and stop it to generate the spec file : pyinstaller filename.py A file with .spec as extension should be generated Now add the following lines to the beginning of the spec file : import sys sys.setrecursionlimit(5000) Now run the spec file using : pyinstaller filename.spec

what’s in a .exe file?

MSDN has an article “An In-Depth Look into the Win32 Portable Executable File Format” that describes the structure of an executable file. Basically, a .exe contains several blobs of data and instructions on how they should be loaded into memory. Some of these sections happen to contain machine code that can be executed (other sections … Read more

Java: run as administrator

You have to create a manifest file that specifies that your application needs administrator permissions. You can include the manifest in your exe or keep it as a separate file (yourapp.exe.manifest) http://msdn.microsoft.com/en-us/library/bb756929.aspx

How do I convert a Python program to a runnable .exe Windows program? [duplicate]

Understand that every ‘freezing’ application for Python will not really secure your code in any way. Every packaging system for a stand-alone executable Python ‘program’ will include a lot of the Python libraries and interpreter, which will make your program pretty large. That said, PyInstaller has done a nearly flawless job with everything I’ve thrown … Read more

Why Visual Studio 2015 can’t run exe file (ucrtbased.dll)?

This problem is from VS 2015 silently failing to copy ucrtbased.dll (debug) and ucrtbase.dll (release) into the appropriate system folders during the installation of Visual Studio. (Or you did not select “Common Tools for Visual C++ 2015” during installation.) This is why reinstalling may help. However, reinstalling is an extreme measure… this can be fixed … Read more

tech