-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathadobe patcher.bat
89 lines (79 loc) · 3.61 KB
/
adobe patcher.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
@set ver=1.0.5
@echo off
title Adobe Patcher Deadboy%ver%
REM Check if running as administrator
IF exist C:\Windows\System32\WDI\LOGFILES (
REM Running as administrator
) ELSE (
REM Not running as administrator
echo This script requires administrative privileges. Please run this script as an administrator.
pause
exit /b
)
REM Check if script is launched from the temp folder
IF "%~dp0"=="%TEMP%\" (
echo This script should not be launched directly from the archive file.
echo Please extract the archive file and launch the script from the extracted folder.
pause
exit /b
)
echo: _________________________________________________________________
echo:
echo: Welcome to Adobe Patcher!
echo: _________________________________________________________________
echo:
echo: Make sure that you have a working internet connection
echo: and that you run the script as an administrator.
echo:
echo: This patches your host file for adobe apps hehe
echo:
echo: Press any key to continue...
echo: _________________________________________________________________
pause > nul
md "%TEMP%\CreativeCloudPatcher"
cls
echo: _________________________________________________________________
echo:
echo: Adobe Patcher Deadboy%ver% by Deadboy.
echo: _________________________________________________________________
echo.
rem Close all Adobe processes and services
powershell -Command "Get-Service -DisplayName Adobe* | Stop-Service -Force -Confirm:$false; $Processes = Get-Process * | Where-Object { $_.CompanyName -match 'Adobe' -or $_.Path -match 'Adobe' }; Foreach ($Process in $Processes) { Stop-Process $Process -Force -ErrorAction SilentlyContinue }"
echo Adobe processes and services closed.
echo Add hosts entries...
echo.
rem Add hosts entries if they don't already exist
findstr /C:"0.0.0.0 tic.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul && (
type "%windir%\System32\drivers\etc\hosts" | findstr /v /c:"0.0.0.0 tic.adobe.io" > "%temp%\hosts.tmp"
move /y "%temp%\hosts.tmp" "%windir%\System32\drivers\etc\hosts" >nul
)
findstr /C:"0.0.0.0 ic.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul || (
echo 0.0.0.0 ic.adobe.io >> "%windir%\System32\drivers\etc\hosts"
)
findstr /C:"0.0.0.0 r3zj0yju1q.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul || (
echo 0.0.0.0 r3zj0yju1q.adobe.io >> "%windir%\System32\drivers\etc\hosts"
)
findstr /C:"0.0.0.0 cd536oo20y.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul || (
echo 0.0.0.0 cd536oo20y.adobe.io >> "%windir%\System32\drivers\etc\hosts"
)
findstr /C:"0.0.0.0 5zgzzv92gn.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul || (
echo 0.0.0.0 5zgzzv92gn.adobe.io >> "%windir%\System32\drivers\etc\hosts"
)
findstr /C:"0.0.0.0 3ca52znvmj.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul || (
echo 0.0.0.0 3ca52znvmj.adobe.io >> "%windir%\System32\drivers\etc\hosts"
)
findstr /C:"0.0.0.0 r5hacgq5w6.adobe.io" "%windir%\System32\drivers\etc\hosts" >nul || (
echo 0.0.0.0 r5hacgq5w6.adobe.io >> "%windir%\System32\drivers\etc\hosts"
)
cls
echo: _________________________________________________________________
echo:
echo: CreativeCloud Patcher V%ver% by Deadboy.
echo: _________________________________________________________________
echo:
echo: Hosts file patched successfully HEHE!
echo:
echo: _________________________________________________________________
echo:
echo: Press any key to exit...
pause > nul