Skip to content

Commit 18ee5c1

Browse files
authored
little improvement
1 parent a9f2a70 commit 18ee5c1

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

README.md

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,9 @@
22

33
**To create an (.exe) executable application file from a python script**.
44

5-
6-
7-
8-
9-
105
## Steps :
116

12-
1.Install **[Inno Setup Compiler](tools/innosetup-6.1.2.exe)** free application and Pyinstaller. </br>
7+
**1.** Install **[Inno Setup Compiler](tools/innosetup-6.1.2.exe)** free application and Pyinstaller. </br>
138

149
Open **windows shell** and run :
1510

@@ -18,9 +13,9 @@
1813
pip install pyinstaller
1914
2015
```
21-
2. Save Python script with all the resources in one folder.
16+
**2.** Save Python script with all the resources in one folder.
2217

23-
3. Open folder and press 'Shift + right click' select **Open PowerShell window**.
18+
**3.** Open folder and press 'Shift + right click' select **Open PowerShell window**.
2419

2520

2621
Run below commands:
@@ -57,32 +52,29 @@ pyinstaller -F -i "mylogo.ico" myprogram.py --onefile --noconsole
5752
pyinstaller -F -i "mylogo.ico"--add-data "Additionalimage.png;." myprogram.py --noconsole
5853
5954
```
60-
4. Go to **dist** folder and get application file, delete remain file except for resources.</br>
55+
**4.** Go to **dist** folder and get application file, delete remain file except for resources.</br>
6156

6257

63-
**Congratulations ! 🤩 you successfully created your standalone application.**</br>
58+
**Congratulations ! 🤩 you successfully created your standalone application.**</br>
6459

60+
However if you want your application as Setup.exe then windows installer will extract the installation resources from itself and manage their installation directly.</br>
6561

66-
*However if you want your application as Setup.exe then windows installer will extract the installation resources from itself and manage their installation directly*.</br>
62+
**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.</br>
6763

68-
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.
6964

70-
6. Select all required things for your application such as Icon of setup file, Before installation document, Licence .etc
65+
**6.** Select all required things for your application such as Icon of setup file, Before installation document, Licence .etc</br>
66+
7167

72-
7. Click **Yes** to all, in the end go to Output Folder get **setup file** of application and click on open to install.</br>
68+
**7.** Click **Yes** to all, in the end go to Output Folder get **setup file** of application and click on open to install.</br>
7369

74-
**Yor're done !**</br>
7570

71+
**Yor're done !**
7672

7773
## Precautions :
78-
79-
80-
8174
:heavy_check_mark: Save the resources in one folder, Do not save the folder inside another folder.
8275

8376
> *It will not give full permission to execute the commands. # ParentContainsErrorRecordException*
8477
85-
8678

8779
:heavy_check_mark: Check Spellings before running the commands, Do not put any _space_ in your main python (.py) programme file name.
8880

@@ -92,15 +84,9 @@ pyinstaller -F -i "mylogo.ico"--add-data "Additionalimage.png;." myprogram.py --
9284

9385
> *It will show no icon file found.*
9486
95-
96-
9787
:heavy_check_mark: Do not Close Powershell window until **Building EXE from EXE-00.toc completed successfully**
9888
Message not shows.</br>
9989

100-
101-
102-
103-
10490
### Refrences
10591
* [Pyinstaller](https://pyinstaller.readthedocs.io/en/stable/operating-mode.html)
10692
* [Inno Setup Compiler](https://jrsoftware.org/isdl.php)</br>

0 commit comments

Comments
 (0)