phungus420
Deity
- Joined
- Mar 1, 2003
- Messages
- 6,296
BtS Mod Install Script with Icon and optional Add On scripting
BtS Mod Install Script with Icon scripting
BtS Mod Install Script
BtS Mod Patching Script
To use these scripts download and install the free program NSIS installer, found here:
http://nsis.sourceforge.net/Download
What these Scripts do:
The install scripts make it so any person can simply double click on the .exe you create and automatically installs your mod. No complex instructions for people wanting to use your mod. More importantly, it automatically creates optional shortcuts to launch your mod from the desktop and Start Menu. So that people wol't need to decide to change their main ini file, or load the mod at each start up. They can simply click on the desktop shortcut it creates to launch your mod. The Icon Script includes scripting so that you can make your setup installer have a unique icon, the shortcuts that lauch the mod will also use the icon (looks professional ). In addition to these functions the Optional Add On script includes scripting so that you may include optional Add Ons along with the installation of your mod.
The install scripts include Uninstall scripting, so that when you update to a full new version, the previous version of your mod is automatically uninstalled before installation. This is to remove old files that may conflict, as happens when mods are updated on occasion. Also just makes things neat and tidy. If this is the first time you use one of these installers, have your users install twice to remove the old version (it triggers off of the regkey the installer writes, and uses the uninstaller it creates, if you haven't used the script before, neither of these exist yet, they are created on the first install. --On the second install everything in the mod folder will be removed as per the uninstall script, removing any left over files from previous versions). After the uninstaller finishes removing old files, the installation procedes to install the mod.
The patch script is set up to simply patch a mod to a higher version.
Instructions:
-Download the script you would like to use. Read the script's directions on the download page.
-Download & Install NSIS installer program (free program)
-Follow the instructions for the script
-Load the script in NSIS, and run it
These have been updated and are now well commented as of the 4th of July 2009. The 4th of July updates to the scripting code streamline and improve the uninstaller, especially for icons, where the original scripting did not link the icons correctly to shortcuts. So if you are using prior versions of the script it is recommended you update.
You will need no knowledge of coding to use these, anyone that is computer proficient enough to make a mod for Civ4, even a simple XML mod, should be able to follow the directions and use these scripts with ease. Well the optional Add On script is slightly more complex, you might need rudimentary coding knowledge to use it or at the very least good common sense.
Thanks to John Elcard for supplying the original template script, and Snarko for helping me on IRC to get this thing working way back in the day, when this was confusing stuff to me. Also thanks to NikNaks for updating the script with more functionality (Optional Add ons and icon scripting, though I had to clean up some of his code )
BtS Mod Install Script with Icon scripting
BtS Mod Install Script
BtS Mod Patching Script
To use these scripts download and install the free program NSIS installer, found here:
http://nsis.sourceforge.net/Download
What these Scripts do:
The install scripts make it so any person can simply double click on the .exe you create and automatically installs your mod. No complex instructions for people wanting to use your mod. More importantly, it automatically creates optional shortcuts to launch your mod from the desktop and Start Menu. So that people wol't need to decide to change their main ini file, or load the mod at each start up. They can simply click on the desktop shortcut it creates to launch your mod. The Icon Script includes scripting so that you can make your setup installer have a unique icon, the shortcuts that lauch the mod will also use the icon (looks professional ). In addition to these functions the Optional Add On script includes scripting so that you may include optional Add Ons along with the installation of your mod.
The install scripts include Uninstall scripting, so that when you update to a full new version, the previous version of your mod is automatically uninstalled before installation. This is to remove old files that may conflict, as happens when mods are updated on occasion. Also just makes things neat and tidy. If this is the first time you use one of these installers, have your users install twice to remove the old version (it triggers off of the regkey the installer writes, and uses the uninstaller it creates, if you haven't used the script before, neither of these exist yet, they are created on the first install. --On the second install everything in the mod folder will be removed as per the uninstall script, removing any left over files from previous versions). After the uninstaller finishes removing old files, the installation procedes to install the mod.
The patch script is set up to simply patch a mod to a higher version.
Instructions:
-Download the script you would like to use. Read the script's directions on the download page.
-Download & Install NSIS installer program (free program)
-Follow the instructions for the script
-Load the script in NSIS, and run it
These have been updated and are now well commented as of the 4th of July 2009. The 4th of July updates to the scripting code streamline and improve the uninstaller, especially for icons, where the original scripting did not link the icons correctly to shortcuts. So if you are using prior versions of the script it is recommended you update.
You will need no knowledge of coding to use these, anyone that is computer proficient enough to make a mod for Civ4, even a simple XML mod, should be able to follow the directions and use these scripts with ease. Well the optional Add On script is slightly more complex, you might need rudimentary coding knowledge to use it or at the very least good common sense.
Thanks to John Elcard for supplying the original template script, and Snarko for helping me on IRC to get this thing working way back in the day, when this was confusing stuff to me. Also thanks to NikNaks for updating the script with more functionality (Optional Add ons and icon scripting, though I had to clean up some of his code )