exe

Running a .Net application from a compressed “zip” file

為{幸葍}努か 提交于 2019-12-07 19:06:16
问题 I need to create a lightweight .Net application which can be distributed easily (via email attachment, for example). I can run the EXE from a ZIP, however it seems I cannot get the EXE to reference any external configuration files (such as an exe.config, or any other XML file) when run from the zip. Is it not possible to run an EXE from a zip file when that EXE uses data from the exe.config file? I have reviewed this question already: .NET windows application, can it be compressed into a

wpf class library with resource dictionary

大城市里の小女人 提交于 2019-12-07 17:20:11
问题 Is it possible to have a resource dictionary in a WPF class library assembly (.dll)? I ask this because I have an "Application WPF" assembly (.exe), if I try to turn the type of the assembly to "WPF Class Library" I get the error: Impossible to specify the element ApplicationDefinition in the project file of the Library How can I make it work? 回答1: You get that error because one of your XAML files has a Build Action set to ApplicationDefinition . Usually, that is App.xaml . Remove that file

Nuitka not compiling an exe with nuitka --recurse-all hello.py [error]

邮差的信 提交于 2019-12-07 14:45:37
问题 I am trying to create a simple exe through nuitka so that I can run it on my laptop without Python needing to be installed. I am on windows 10 and using Anaconda Python 3. I typed in: nuitka --recurse-all hello.py However, I keep getting the following error message: C:\Users\Bain3>Nuitka --exe 123.py Nuitka:WARNING:Not recursing to 'selenium' (C:\Users\Bain3\Anaconda3\Lib\site-packages\selenium), please specify --recurse-none (do not warn), --recurse-all (recurse to all), --recurse-not-to

How to execute a C++ code with a python code embedded on a system without python installed

寵の児 提交于 2019-12-07 13:06:26
问题 I'm trying to create a simple game using C++ with Python embedding. The python code is embedded in my C++ code. I used Python/C API for this. There are 2 goals that I would like to achieve: 1) Application should be able to run on a computer that does not have Python installed. 2) Application should be an one standalone executable file(.exe) For example, the following simple code only works if the system has python already installed on it: #include <Python.h> #include <conio.h> #include <stdio

What is the minimum file size of a PE file (exe) on Windows? And the minimal memory allocation? [duplicate]

时光毁灭记忆、已成空白 提交于 2019-12-07 11:44:02
问题 This question already has answers here : What is the smallest possible Windows (PE) executable? (2 answers) Closed 3 years ago . What is the minimum file size of a PE file (exe) on Windows? And the minimum memory allocation? I assembled (using MASM (ml.exe) and link.exe that come with VS 10) the following code: I can not leave out kernel32.lib and ExitProcess, if I do, the program crashes. ; Assmebly options .386 .MODEL FLAT, STDCALL option casemap:none ; Include Libs includelib kernel32.lib

adding icon to bundle using javapackager

岁酱吖の 提交于 2019-12-07 05:35:44
问题 i am using javapackager to create an exe installer with jre bundled using the command line. does anybody know how to add an icon and customise the installer using the command line. these are the commands that i use: javapackager -deploy -native -outdir packages -outfile myFile -srcdir documents -srcfiles Application.jar -appclass application.Main -name "Application" -title "Application Title" i have tried to add license="info" and some other commands 回答1: As documented, use the option icon

See std::cout of .exe

一个人想着一个人 提交于 2019-12-07 05:34:33
问题 I have a .exe file that I've compiled on windows. But when I run it from the command line I don't see any of the things my program outputs to std::cout or std::cerr. The program runs and continues to run even after the command line returns to the prompt (it's a GUI program and doesn't quit until I press the quit button). How can I see the output of my program? I'm using cmake to make a visual studio project which I then compile with msbuild. 回答1: The simplest approach is to rebuild the

How do I bundle a JRE in my JAR, so that it can run on systems without Java?

孤人 提交于 2019-12-07 04:27:49
问题 I want to bundle a JRE inside my executable JAR, so that the exe can run on any system. I have tried Launch4j, but that approach requires me to ship both the JRE and the exe. As per my requirements, I should not use an installer to ship, nor extract/install the JRE on the client machine. How do I put a JRE inside a JAR and make use of it? 回答1: You cannot put a JRE inside a JAR file. (Well you can ... but it won't help.) What you need to do is build and distribute an installer. The recommended

MSCOMCTL.ocx missing Windows 10

给你一囗甜甜゛ 提交于 2019-12-07 03:04:12
问题 I have some vb6 applications that i'm trying to move from Windows 7 to Windows 10. I have the .exe file, but when I tried to open it - it tells me that: C:\App_1\MSCOMCTL.OCX could not be loaded - Continue Loading Project? I searched for this file in C:\Windows\SysWow64 and found that the file is actually there as Type: ActiveX Control . Any reason why I'm still getting the error? 回答1: The ocx control should be in your Syswow64 (if 64 bit pc) folder and not in the app folder, and it needs to

Debugging an executable in visual studio

痴心易碎 提交于 2019-12-06 18:33:31
问题 Want to debug an executable under debugger. How to do it in visual studio. Windbg has an option of open executable. But I find this is missing in VS 2010. The question is not exactly same as Debug exe in visual studio 2010 as I am not really interested in image file execution to debug a start up. Rather want to just debug the exe under debugger, once it is broken, want to set some break points and understand the flow of execution. Albeit image file execution is a workaround for this. I am not