Results 1 to 1 of 1

Thread: Creating a simple modswitch installer

  1. #1

    Default Creating a simple modswitch installer

    Here's a little how-to for people that need a simple and efficient way to create a foolproof installer for your mod-switching mod - this is using just a simple WinRar SFX, no nifty but difficult NSIS type stuff:

    I will use my 'BigMap' as an example instead of MyMod, replace with your own modname of course

    First, create a folder called BigMapsetup

    Create a folder there called BigMap, this will be your main mod folder in the M2TW dir. In there goes your data folder and everything your mod needs.

    In the root of the BigMapsetup you only need a few files, namely a Launcher batchfile, a header to be glued to the vanilla .cfg file, so it uses your mod, and a batch file that does alll that after the installer has copied the files to the correct dirs. The files used are in the .zip file at the bottom of the post.

    This is all it needs, basically. Start WinRar (or maybe download it first, yes) and select all the files in that BigMapsetup folder:



    Click add

    You get the normal screeny for making a .rar file, but we want a SFX, a self extracting one, so we click SFX:



    This unlocks the SFX options under the advanced tab:



    and this is important, besides all the interesting tabs with license etc - don't get distracted now - you see the option to run a file on EXITING the normal SFX - that's what we want.

    We enter the name of the batchfile that will do all the hard work on exit, and voila. NOW we can add license info etc. etc. This batchfile glues the headerfix to the exising .cfg on the users pc, and launches the game for the first time. The Launch_BigMap.bat you rename, and edit to make it start your own mod, of course.



    We enter all the other info as we want it, and SAVE that with the option you see in the bottom of the last screeny.

    If you do everything right, and replace BigMap everywhere in the files with YOUR modname, you are all set up for distributing it to the wider public without them, or you getting any headaches.

    Any questions, feel free, but I think it should be doable with this info. Good luck

    DL Link for Setupfiles in zipped format
    ^Link is of no use as it requires authentication.
    Last edited by Ishan; November 19, 2010 at 01:30 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •