Skip to content

Commit

Permalink
Add Advanced Installer install file.
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalCrisis committed Feb 16, 2018
1 parent bed524c commit fa69c10
Show file tree
Hide file tree
Showing 7 changed files with 801 additions and 444 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Expand Up @@ -210,3 +210,9 @@ JMMServer/Images/Unused/
# Jetbrains
/.idea/
/Shoko.Server.VC.db

Installers/Advanced Installer/Shoko Server-cache/

Installers/Advanced Installer/Shoko Server/Setup Files/

Installers/Inno Script/Output/
514 changes: 514 additions & 0 deletions Installers/Advanced Installer/Shoko Server.aip

Large diffs are not rendered by default.

27 changes: 21 additions & 6 deletions Installers/FixPermissions.bat
@@ -1,6 +1,21 @@
netsh http add urlacl url=http://+:8111/JMMServerPlex sddl=D:(A;;GA;;;S-1-1-0)
netsh http add urlacl url=http://+:8111/JMMServerStreaming sddl=D:(A;;GA;;;S-1-1-0)
netsh http add urlacl url=http://+:8111/JMMServerImage sddl=D:(A;;GA;;;S-1-1-0)
netsh http add urlacl url=http://+:8111/ sddl=D:(A;;GA;;;S-1-1-0)
icacls C:\ProgramData\ShokoServer /inheritance:r
icacls C:\ProgramData\ShokoServer /grant *S-1-1-0:(OI)(CI)F /T /inheritance:e
@echo off
title Setting Shoko Server Permissions

if exist "C:\ProgramData\ShokoServer" (
echo Shoko Server folder found, no need to set permissions.
)

if not exist "C:\ProgramData\ShokoServer" (
netsh advfirewall firewall add rule name="Shoko Server Port" dir=in action=allow protocol=TCP localport=8111
netsh http add urlacl url=http://+:8111/JMMServerPlex sddl=D:(A;;GA;;;S-1-1-0)
netsh http add urlacl url=http://+:8111/JMMServerStreaming sddl=D:(A;;GA;;;S-1-1-0)
netsh http add urlacl url=http://+:8111/JMMServerImage sddl=D:(A;;GA;;;S-1-1-0)
netsh http add urlacl url=http://+:8111/ sddl=D:(A;;GA;;;S-1-1-0)
mkdir C:\ProgramData\ShokoServer
icacls C:\ProgramData\ShokoServer /inheritance:r
icacls C:\ProgramData\ShokoServer /grant *S-1-1-0:(OI)(CI)F /T /inheritance:e
)

echo.
echo.
echo Shoko Server permissions correctly applied.
260 changes: 260 additions & 0 deletions Installers/Inno Script/ShokoServer.iss

Large diffs are not rendered by default.

File renamed without changes.
178 changes: 0 additions & 178 deletions Installers/JMMServer-Leo.iss

This file was deleted.

0 comments on commit fa69c10

Please sign in to comment.