-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cbaie9
committed
Feb 3, 2023
1 parent
9285283
commit 64016e0
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Set UAC = CreateObject("Shell.Application") | ||
UAC.ShellExecute "c:/Users/clementbaralle/Documents/dossier git/Wpckiller 1.6/wpcKiller-main/wpcKiller-main/wpcKiller/reload.bat", "", "", "runas", 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# this file reload the custom argument you can set in custom_iagree_arg.bat | ||
|
||
setlocal enableextensions | ||
cd /D %~dp0 | ||
if not exist "getadmin.vbs" ( | ||
mode con lines=2 cols=30 | ||
echo Set UAC = CreateObject^("Shell.Application"^)>getadmin.vbs | ||
echo UAC.ShellExecute %0, "", "", "runas", 1 >>getadmin.vbs | ||
call wscript getadmin.vbs | ||
exit | ||
) | ||
del getadmin.vbs | ||
# admin script start here | ||
if exist %programdata%\wpc\customarg.bat then reg add HKLM\System\Setup /v CmdLine /t REG_SZ /d "cmd.exe /k %programdata%\Wpc\customarg.bat" /f else reg add HKLM\System\Setup /v CmdLine /t REG_SZ /d "cmd.exe /k %programdata%\Wpc\dosexec.bat" /f | ||
echo Updating registery \ Backuping in progress .. | ||
reg add HKEY_CURRENT_USER\Software\Wpckiller /v temp32 /T REG_BINARY /d 1 /f | ||
reg add HKEY_CURRENT_USER\Software\Wpckiller /v CopyRepair /T REG_BINARY /d 1 /F | ||
reg add HKEY_CURRENT_USER\Software\Wpckiller /v Copybinary1 /T REG_BINARY /d 1 /F | ||
reg add HKEY_CURRENT_USER\Software\Wpckiller /v CopyBinary0 /T REG_BINARY /d 0 /F | ||
reg add HKEY_CLASSES_ROOT\Wpckiller /v "(Default)" /t REG_SZ /d "URL:Wpckiller Protocol" /F | ||
reg add HKEY_CLASSES_ROOT\Wpckiller /v "URL Protocol" /t REG_SZ /F | ||
reg add HKEY_CLASSES_ROOT\Wpckiller\shell\open\command /v "(default)" /d "C:/Programdata/Wpc/udp.bat" | ||
reg add HKLM\System\Setup /v SystemSetupInProgress /t REG_DWORD /d 1 /f > nul | ||
reg add HKLM\System\Setup /v SetupType /t REG_DWORD /d 2 /f > nul | ||
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableCursorSuppression /t REG_DWORD /d 0 /f > nul | ||
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f > nul | ||
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System /v VerboseStatus /t REG_DWORD /d 1 /f > nul | ||
Echo backuping done .. | ||
Echo The computer will restart now after the timeout | ||
Echo If you close this windows the installation will continue on next startup | ||
pause | ||
shutdown -s -t 0 |