Difference between revisions of "Dual Install"

From EECH Central
Jump to: navigation, search
(Step 3 : Path set-up)
 
(8 intermediate revisions by 2 users not shown)
Line 28: Line 28:
  
 
Open the notepad and create a txt file anywhere you like.
 
Open the notepad and create a txt file anywhere you like.
Copy and paste the following lines (everything between the +++ signs) :
+
Copy and paste the following lines:
 +
<nowiki>
 +
:START
 +
cls
 +
@ECHO  __________________________________________
 +
@ECHO !
 +
@ECHO ! EECH - Choose your version
 +
@ECHO !__________________________________________
 +
@ECHO.
 +
@ECHO 1 - Version 1.15.4
 +
@ECHO.
 +
@ECHO 2 - Version 1.16.0
 +
@ECHO.
 +
@ECHO off
 +
@ECHO.
  
++++++++++++++++++++<br />
+
:question
<br />
+
set /p choice= Type the selected version of EECH (1/2) then press Enter?
:START<br />
+
 
cls<br />
+
if /I "%choice%"=="1" (goto :a)
@ECHO __________________________________________<br />
+
if /I "%choice%"=="2" (goto :b)
@ECHO !<br />
+
goto question
@ECHO ! EECH - Choose your version<br />
+
 
@ECHO !__________________________________________<br />
+
:a
@ECHO.<br />
+
K:
@ECHO 1 - Version 1.15.4<br />
+
ren "K:\Plane Games\EECH1154" "EECH"
@ECHO.<br />
+
cd "K:\Plane Games\EECH\cohokum"
@ECHO 2 - Version 1.16.0<br />
+
start /wait cohokum.exe
@ECHO.<br />
+
cd /
@ECHO off<br />
+
ren "K:\Plane Games\EECH" "EECH1154"
@ECHO.<br />
+
GOTO END
:question<br />
+
 
set /p choice= Type the selected version of EECH (1/2) then press Enter?<br />
+
:b
<br />
+
K:
if /I "%choice%"=="1" (goto :a)<br />
+
ren "K:\Plane Games\EECH1160" "EECH"
if /I "%choice%"=="2" (goto :b)<br />
+
cd "K:\Plane Games\EECH\cohokum"
goto question<br />
+
start /wait cohokum.exe
<br />
+
cd /
:a<br />
+
ren "K:\Plane Games\EECH" "EECH1160"
K:<br />
+
GOTO END
ren "K:\Plane Games\EECH1154" "EECH"<br />
+
: END
cd "K:\Plane Games\EECH\cohokum"<br />
+
</nowiki>
start /wait cohokum.exe<br />
+
cd K:<br />
+
ren "K:\Plane Games\EECH" "EECH1154"<br />
+
GOTO END<br />
+
<br />
+
:b<br />
+
K:<br />
+
ren "K:\Plane Games\EECH1160" "EECH"<br />
+
cd "K:\Plane Games\EECH\cohokum"<br />
+
start /wait cohokum.exe<br />
+
cd K:<br />
+
ren "K:\Plane Games\EECH" "EECH1160"<br />
+
GOTO END<br />
+
<br />
+
: END<br />
+
<br />
+
++++++++++++++++++++++<br />
+
  
 
== Step 3 : Path set-up ==
 
== Step 3 : Path set-up ==
Line 78: Line 75:
 
Make sure that all data are set according to YOUR installation and version folder names and paths.
 
Make sure that all data are set according to YOUR installation and version folder names and paths.
  
Caution : all names with space between words must be quoted. Enemy Engaged becomes "Enemy Engaged" in the following example at the bottom of the page.
+
Caution : all names with space between words must be quoted. Enemy Engaged would become "Enemy Engaged", as shown in the example at the bottom of the page.
  
 
== Step 4 : Save as ==
 
== Step 4 : Save as ==
Line 107: Line 104:
 
<br />
 
<br />
 
In the code :<br />
 
In the code :<br />
<br />
+
<nowiki>
:a<br />
+
:a
C:<br />
+
C:
ren "C:\Program Files\Version 15.4" "Enemy Engaged"<br />
+
ren "C:\Program Files\Version 15.4" "Enemy Engaged"
cd "C:\Program Files\Enemy Engaged\cohokum"<br />
+
cd "C:\Program Files\Enemy Engaged\cohokum"
start /wait cohokum.exe<br />
+
start /wait cohokum.exe
cd C:<br />
+
cd /
ren "C:\Program Files\Enemy Engaged" "Version 15.4"<br />
+
ren "C:\Program Files\Enemy Engaged" "Version 15.4"
GOTO END<br />
+
GOTO END
<br />
+
 
:b<br />
+
:b
C:<br />
+
C:
ren "C:\Program Files\Version 16.0" "Enemy Engaged"<br />
+
ren "C:\Program Files\Version 16.0" "Enemy Engaged"
cd "C:\Program Files\Enemy Engaged\cohokum"<br />
+
cd "C:\Program Files\Enemy Engaged\cohokum"
start /wait cohokum.exe<br />
+
start /wait cohokum.exe
cd C:<br />
+
cd /
ren "C:\Program Files\Enemy Engaged" "Version 16.0"<br />
+
ren "C:\Program Files\Enemy Engaged" "Version 16.0"
GOTO END<br />
+
GOTO END
 +
</nowiki>
  
 
[[Category:Tutorials]] [[Category:Installation and setup]]
 
[[Category:Tutorials]] [[Category:Installation and setup]]

Latest revision as of 07:39, 12 October 2017

Aim of this tutorial

This tutorial explains how to install several versions of EECH on the same computer, and how to create a batch file to switch easily between two versions of EECH. I took the examples of v1.15.4 and v1.16.0, but the tutorial can be adapted to any versions.

Step 0 : Installation

The two versions need to be installed as described hereafter in order to have the batch file to work. The drive, path and name of the folders is up to you. The only requirement is that the installation, first version and second version folders must be in the same folder (in my case "Plane Games").

I installed EECH on the K: drive, and the installation path was K:\Plane Games\EECH.
I patched it to v1.15.4 and renamed its folder EECH1154. Its path is now K:\Plane Games\EECH1154
I install EECH again to the same path K:\Plane Games\EECH
I patched it to v1.16.0 and renamed its folder EECH1160. Its path is now K:\Plane Games\EECH1160

Step 1 : Write down the paths

In my case, the relevant data are :
Drive : K:
Installation folder name : EECH
Installation path : K:\Plane Games\EECH
First version folder name : EECH1154
First version path : K:\Plane Games\EECH1154
Second version folder name : EECH1160
Second version path : K:\Plane Games\EECH1160

Just note down your own paths and folder names.

Step 2 : Creating the batch file

Open the notepad and create a txt file anywhere you like. Copy and paste the following lines:

:START
cls
@ECHO  __________________________________________
@ECHO !
@ECHO ! EECH - Choose your version
@ECHO !__________________________________________
@ECHO.
@ECHO 1 - Version 1.15.4
@ECHO.
@ECHO 2 - Version 1.16.0
@ECHO.
@ECHO off
@ECHO.

:question
set /p choice= Type the selected version of EECH (1/2) then press Enter?

if /I "%choice%"=="1" (goto :a)
if /I "%choice%"=="2" (goto :b)
goto question

:a
K:
ren "K:\Plane Games\EECH1154" "EECH"
cd "K:\Plane Games\EECH\cohokum"
start /wait cohokum.exe
cd /
ren "K:\Plane Games\EECH" "EECH1154"
GOTO END

:b
K:
ren "K:\Plane Games\EECH1160" "EECH"
cd "K:\Plane Games\EECH\cohokum"
start /wait cohokum.exe
cd /
ren "K:\Plane Games\EECH" "EECH1160"
GOTO END
: END

Step 3 : Path set-up

Make sure that all data are set according to YOUR installation and version folder names and paths.

Caution : all names with space between words must be quoted. Enemy Engaged would become "Enemy Engaged", as shown in the example at the bottom of the page.

Step 4 : Save as

Save the txt as EECH-Launcher.txt and change the extension from .txt to .bat. You can also create a shortcut to this file on your desktop.

Step 5 : Enjoy

Double-click on the bat file (or the shortcut), and a windows will open asking to choose which version you want to play.

Mission accomplished! You are done.

The code is not too complex, and can be easily adapted to three versions.

I hope it will be somewhat interesting for you!


Example


Drive : C:
Installation folder name : Enemy Engaged
Installation path : C:\Program Files\Enemy Engaged
First version folder name : Version 15.4
First version path : C:\Program Files\Version 15.4
Second version folder name : Version 16.0
Second version path : C:\Program Files\Version 16.0

In the code :

:a
C:
ren "C:\Program Files\Version 15.4" "Enemy Engaged"
cd "C:\Program Files\Enemy Engaged\cohokum"
start /wait cohokum.exe
cd /
ren "C:\Program Files\Enemy Engaged" "Version 15.4"
GOTO END

:b
C:
ren "C:\Program Files\Version 16.0" "Enemy Engaged"
cd "C:\Program Files\Enemy Engaged\cohokum"
start /wait cohokum.exe
cd /
ren "C:\Program Files\Enemy Engaged" "Version 16.0"
GOTO END