6) Copy the content you want from your .minecraft folder (such as mods folder, resourcepacks folder or options.txt, ...) to the folder "files_for_.minecraft_folder"
7) Choose the icon image you want for the icon of you .exe file and rename it to icon.ico
8) Share your .exe file with your friends to give them a super easy to install modpack
The player who runs the exe file will be asked for his .minecraft directory if its not the default one and the modpack will be installed.
Also if mods were present before installation, these mods will be deleted
I hope I've helped you with this post If you like my work please consider donating on my tipeee: https://tipeee.com/lafougere Thanks
Modpack Auto Installer (Windows)
For Modpack creators
A simple .exe generator to auto install modpack on Minecraft client
1) First create a folder and name it with the name you want for your .exe file
2) Install python and pyinstall
3) Create a folder named "files_for_.minecraft_folder", a file named "main.py" and an other named "make.bat"
4) In the main.py file paste the code from here: https://pastebin.com/FFwZHHaX
5) in make.bat paste code from here: https://pastebin.com/m4nNJjY1


6) Copy the content you want from your .minecraft folder (such as mods folder, resourcepacks folder or options.txt, ...) to the folder "files_for_.minecraft_folder"
7) Choose the icon image you want for the icon of you .exe file and rename it to icon.ico
8) Share your .exe file with your friends to give them a super easy to install modpack
The player who runs the exe file will be asked for his .minecraft directory if its not the default one and the modpack will be installed.
Also if mods were present before installation, these mods will be deleted
I hope I've helped you with this post
If you like my work please consider donating on my tipeee: https://tipeee.com/lafougere
Thanks