exe

Pass command-line arguments to WiX custom action

爱⌒轻易说出口 提交于 2020-07-21 03:25:25
问题 We have a desktop application installed through a windows installer (msi), and we want to add a custom action that relaunches the .exe when we have pass LAUNCH_APP=1 to the cmd . So I have a vbs script that launch a bat file that launch install the msi (major upgrade): vbs script: Set WshShell = CreateObject("WScript.Shell") Const TemporaryFolder = 2 Dim fso: Set fso = CreateObject("Scripting.FileSystemObject") Dim tempFolder: tempFolder = fso.GetSpecialFolder(TemporaryFolder) WshShell.Run

Pass command-line arguments to WiX custom action

时光毁灭记忆、已成空白 提交于 2020-07-21 03:25:09
问题 We have a desktop application installed through a windows installer (msi), and we want to add a custom action that relaunches the .exe when we have pass LAUNCH_APP=1 to the cmd . So I have a vbs script that launch a bat file that launch install the msi (major upgrade): vbs script: Set WshShell = CreateObject("WScript.Shell") Const TemporaryFolder = 2 Dim fso: Set fso = CreateObject("Scripting.FileSystemObject") Dim tempFolder: tempFolder = fso.GetSpecialFolder(TemporaryFolder) WshShell.Run

How do I convert my pygame program which has multiple python scripts and images to a exe?

独自空忆成欢 提交于 2020-07-15 08:54:06
问题 I have 3 python scripts and many images in folders and tmx files which I want to make it as a single .exe . I wasnt able to find how to convert multiple python scripts and folders to single exe. I was only able to find cxfreeze and similar things for a single python script. Please help. Thanks in advance. 回答1: You can add external files to your pyinstaller exe by using add-data . An example I'm using for one of my pygame games: pyinstaller --onedir --clean --name "MyGame" --icon="images/icon

C programs getting detected as Malware

白昼怎懂夜的黑 提交于 2020-07-03 05:21:06
问题 Recently my C programs started to act weirdly and I had no idea why... Then I realized that they were being flagged by my antivirus program as malware... First I thought there's a malware in my compiler (I'm using CodeBlocks IDE with MinGW-GCC as c compiler), Antivirus scan returned nothing. So I started experimenting on it... I wrote a simple hello world using c #include <stdio.h> int main() { printf("Hello"); return 0; } Soon as I compiled it windows defender flagged it as Trojan:Win32

Python Kivy packing to exe

允我心安 提交于 2020-06-26 07:56:15
问题 I am trying to packing kivy for windows. I am using windows 10 with python 3.7.2 with kivy 1.10.1. With the reference of this documentation I have done exe building successfully but when I run exe it shows the following error Error loading Python DLL 'C:\Users\acer\Desktop\coding\build\hello\python37.dll'. LoadLibrary: The specified module could not be found. Thanks for helping me :D and This is the Specs i got from python -m PyInstaller --name hello main.py hello.spec # -*- mode: python -*-

How to convert a python project into an executable file with all additional scripts?

余生颓废 提交于 2020-06-22 04:15:30
问题 I know there have been a bunch of questions already asked regarding this but none of them really helped me. Let me explain the whole project scenario so that I provide a better clarity to my problem. The directory structure is somewhat like this shown below: Project Directory Layout I need to convert this whole GUI based project (The main file is using Tkinter module to create GUI) into main.exe which I can share with others while making sure that all the additional files work exactly the

Checking if an executable is 32-bit or 64-bit with a python3 script on Windows/Linux

半城伤御伤魂 提交于 2020-06-17 02:03:30
问题 I'm writing software in Python3 (more specifically: Python 3.8.1 ). At some point, the software needs to check if some arbitrary executable is 64-bit or 32-bit. After some research, I found the following post: Checking if an exe is 32 bit or 64 bit In this post, the following solution is offered: subprocess.call(['dumpbin', '/HEADERS', 'test2.exe', '|', 'find', '"machine"']) Unfortunately, this doesn't work in Python 3.8.1 . That post is almost 8 years old and dates back to the Python 2.x

Python files to an MSI Windows installer

风流意气都作罢 提交于 2020-05-29 04:07:29
问题 So I can use PyInstaller to make a one-file executable and to make a standard executable among other files in a folder. But how do I turn Python files into an MSI installer so that it's fool-proof where it makes a shortcut on the desktop? (For distribution so that it isn't required for the user to have Python installed) (When I say Python files to an MSI installer I mean the regular PyInstaller to folder output but with a way of getting a shortcut to the executable onto the desktop very