Replaced executable and batch files with VBScript.
This commit is contained in:
Binary file not shown.
18
L2J_Mobius_10.1_MasterClass/dist/db_installer/Database_Installer_GS.vbs
vendored
Normal file
18
L2J_Mobius_10.1_MasterClass/dist/db_installer/Database_Installer_GS.vbs
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'Get Java path.
|
||||
Dim path
|
||||
Set shell = WScript.CreateObject("WScript.Shell")
|
||||
path = shell.Environment.Item("JAVA_HOME")
|
||||
If path = "" Then
|
||||
MsgBox "Could not find JAVA_HOME environment variable!", vbOKOnly, "Database Installer"
|
||||
Else
|
||||
If InStr(path, "\bin") = 0 Then
|
||||
path = path + "\bin\"
|
||||
Else
|
||||
path = path + "\"
|
||||
End If
|
||||
path = Replace(path, "\\", "\")
|
||||
path = Replace(path, "Program Files", "Progra~1")
|
||||
End If
|
||||
|
||||
'Run the installer.
|
||||
shell.Run path & "java -jar Database_Installer_GS.jar", 0, False
|
||||
Binary file not shown.
18
L2J_Mobius_10.1_MasterClass/dist/db_installer/Database_Installer_LS.vbs
vendored
Normal file
18
L2J_Mobius_10.1_MasterClass/dist/db_installer/Database_Installer_LS.vbs
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
'Get Java path.
|
||||
Dim path
|
||||
Set shell = WScript.CreateObject("WScript.Shell")
|
||||
path = shell.Environment.Item("JAVA_HOME")
|
||||
If path = "" Then
|
||||
MsgBox "Could not find JAVA_HOME environment variable!", vbOKOnly, "Database Installer"
|
||||
Else
|
||||
If InStr(path, "\bin") = 0 Then
|
||||
path = path + "\bin\"
|
||||
Else
|
||||
path = path + "\"
|
||||
End If
|
||||
path = Replace(path, "\\", "\")
|
||||
path = Replace(path, "Program Files", "Progra~1")
|
||||
End If
|
||||
|
||||
'Run the installer.
|
||||
shell.Run path & "java -jar Database_Installer_LS.jar", 0, False
|
||||
Reference in New Issue
Block a user