Compare commits

...

3 Commits

Author SHA1 Message Date
WindowsAddict e8bf344f74 Add support for O365 15.0 in TSforge because phone license exist 2025-04-16 06:14:40 +05:30
WindowsAddict 70162c4130 Add support for external LibTSforge.dll if found in BIN folder 2025-04-16 05:30:31 +05:30
WindowsAddict 294837dfe0 Add the updated CAS by abbodi1406 2025-04-16 03:47:15 +05:30
3 changed files with 1562 additions and 532 deletions

File diff suppressed because it is too large Load Diff

View File

@ -221,6 +221,7 @@ goto dk_done
set "_work=%~dp0"
if "%_work:~-1%"=="\" set "_work=%_work:~0,-1%"
set "_workp=%_work:'=''%"
set "_batf=%~f0"
set "_batp=%_batf:'=''%"
@ -1610,7 +1611,11 @@ call :dk_color %Gray% "Skipping Because Project/Visio Mode [%%#]"
if not defined skipprocess (
echo %%# | findstr /i "O365" %nul% && (
set no365=
if "%oVer%"=="15" (echo %%# | findstr /i "O365HomePremRetail" %nul% && set no365=1)
if "%oVer%"=="16" (echo %%# | findstr /i "O365" %nul% && set no365=1)
if defined no365 (
set _License=MondoRetail
set _altoffid=MondoRetail
call :ks_osppready
@ -6709,6 +6714,13 @@ namespace LibTSforge.PhysicalStore
}
'@
$ErrorActionPreference = 'Stop'
$binPath = Join-Path -Path $env:_workp -ChildPath "BIN\LibTSforge.dll"
if (Test-Path -Path $binPath) {
Write-Host "LibTSforge.dll found in BIN folder. Loading the DLL..."
Add-Type -Path $binPath
}
else {
$cp = [CodeDom.Compiler.CompilerParameters] [string[]]@("System.dll", "System.Core.dll", "System.ServiceProcess.dll", "System.Xml.dll")
$cp.CompilerOptions = "/unsafe"
$lang = If ((Get-Host).Version.Major -gt 2) { "CSharp" } Else { "CSharpVersion3" }
@ -6720,6 +6732,8 @@ $env:TEMP = $ctemp
$cp.GenerateInMemory = $true
Add-Type -Language $lang -TypeDefinition $src -CompilerParameters $cp
}
if ($env:_debug -eq '0') {
[LibTSforge.Logger]::HideOutput = $true
}

File diff suppressed because it is too large Load Diff