Topic: Shiplist/Script/Mod Install System  (Read 2543 times)

0 Members and 1 Guest are viewing this topic.

**DONOTDELETE**

  • Guest
Shiplist/Script/Mod Install System
« on: April 15, 2003, 07:44:57 am »
I got tired of always cutting and pasting files for SFC2,
then explaining what files to cut and paste to others...

So I produced these:
 SFC2 Shiplist/Script Installers

These very simple installers detect your SFC (EAW or OP) installation folder and then copy the files
to the correct locations. I did not bother using the Uninstall section of the scripts but just
created stock installers instead. (I thought this made more sense - was easier too...)

I used this:
 Nullsoft (SuperPiMP|Scriptable) Install System
(Could be used to add custom models etc.. or create more detailed install/uninstalls)

It was really pretty easy:
-Install NSIS
-put all custom files in a new folder
-create an .nsi script (see example) in this folder
-compile the script!

Example for current  ISC Invasion (using a custom fighterlist, shiplist and four missions):
Code:

Name "EAW2036 ISC Invasion"
OutFile "EAW2036_ISC_Invasion.exe"
InstallDirRegKey HKLM "SOFTWARE\Taldren\Starfleet Command II" "Path"
Section "" ;
SetOutPath $INSTDIR\MetaAssets
File shiplist.txt
File ftrlist.txt
SetOutPath $INSTDIR\Assets\specs
File shiplist.txt
File ftrlist.txt
SetOutPath $INSTDIR\Assets\Scripts
File Kar_ePatrol.scr
File Kar_FleetAction.scr
File Kar_hPatrol.scr
File Kar_SquadronAction.scr
SectionEnd ;



For OP just change the InstallDirRegKey line to:
InstallDirRegKey HKLM "SOFTWARE\Taldren\Starfleet Command Orion Pirates" "Directory"

If anyone finds them handy let me know if there are any problems.
I  highly reccomend that we use this as a standard installer for
custom campaigns. It is easy to use and I think it would significantly
reduce custom download confusion.    

FPF_TraceyG

  • Guest
Re: Shiplist/Script/Mod Install System
« Reply #1 on: April 15, 2003, 07:48:07 am »
I have EAW installed to C:/Games/Starfleet Command II, would it still work with a different directory?

**DONOTDELETE**

  • Guest
Re: Shiplist/Script/Mod Install System
« Reply #2 on: April 15, 2003, 07:54:01 am »
It should detect any installation location (it checks the registry...)
but I havent tested that. (since no other directory is specified in
the script and it detected mine - the default, I would assume it will work for all
installation locations)

In short, yes, I'm pretty sure.

Edit: I'm not sure what will happen if you do not have the appropriate
application installed at all (EAW or OP) it will likely just die on the registry
check, but I have not tested that as I have both EAW and OP installed.    
« Last Edit: April 15, 2003, 07:59:57 am by rajnsaj »

**DONOTDELETE**

  • Guest
Re: Shiplist/Script/Mod Install System
« Reply #3 on: April 15, 2003, 09:49:47 am »
I just updated the files to include strings and the correct versions for the "EAW2036 Stock Lists"
and fixed the versions of the files for "OP2538 Stock Lists".

I think I got em all right, but let me know if i've gotten any of the files wrong, thanks.  
« Last Edit: December 31, 1969, 06:00:00 pm by rajnsaj »

Karnak

  • Guest
Re: Shiplist/Script/Mod Install System
« Reply #4 on: April 15, 2003, 12:03:03 pm »
Cool, rajnsaj. You outdo yourself once again.