forked from Abhijeetbyte/Python-Script-to-Application
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPython Script to .Exe Guide.txt
More file actions
44 lines (21 loc) · 1.95 KB
/
Copy pathPython Script to .Exe Guide.txt
File metadata and controls
44 lines (21 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Python Script to Application
"To create an .exe [application] file from a python script
******* Precautions ********
* Save the resources in one folder, Do not save the folder inside another folder [ It will not give full
permission to execute the commands. # ParentContainsErrorRecordException]
* Check Spellings Before Running the commands, Do not put any Space in your main python programme Name. [# File not found show]
* Do not use the " icon " word as a name of yours. ICO [icon] file; always use a different name. [ # It will show no icon file found]
* Do not Close Powershell window until "Building EXE from EXE-00.toc completed successfully" Message not shows.
1. Install ' Inno Setup Compiler ' [free application ] and Pyinstaller [run -> pip install pyinstaller]
2. Create an .ICO [icon ] file, Save Python script with all the resources in the same folder.
3. Open folder and press 'Shift + right click' select and run ' PowerShell window.'
3. Run this line -> pyinstaller -F -i "myicon.ico" myscriptname.py
^ ^
| |
| |
(icon file name ) (Python file name)
4. Go to " dist " folder and get application file, delete remain file except for resources.
5. Open Inno setup to make .exe file which is Installable /Executable in Windows PC, select ‘ Create a new script file using script
Wizard ' and browse to select your application.
6. Select all required things for your application # Icon of setup file # Before installation document # Licence .etc
7. Click ' Yes ' to all, in the End, go to Output Folder get 'setup file' of application and click on open to install.