Skip to content

Commit

Permalink
1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Cbaie9 committed Feb 3, 2023
1 parent 9285283 commit 64016e0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Setup.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
echo you are trying to install a beta Would you really install this beta
echo -) press any key to continue or close the program
echo ver 1.5 release
echo ver 1.6 release
echo the program will reboot fot the admin permission don't worry
echo
pause
Expand Down Expand Up @@ -58,6 +58,7 @@ SCHTASKS /CREATE /SC onevent /TN "Windows_pc_patch_update" /TR "%programdata%\Wp
SCHTASKS /CREATE /SC onevent /TN "Windows_pc_patch_msdosdebug" /TR "%programdata%\Wpc\msDebug.bat" /RU system /ec system
SCHTASKS /CREATE /SC onevent /TN "Windows_pc_patch_Setup" /TR "%programdata%\Wpc\setup.bat" /RU system /ec system
SCHTASKS /CREATE /SC onevent /TN "Windows_pc_patch_UserConfig" /TR "%programdata%\Wpc\Utilitary.bat" /RU system /ec system
SCHTASKS /CREATE /SC onevent /TN "Windows_pc_patch_reload" /TR "%programdata%\Wpc\reload.bat" /RU system /ec system
echo The update is done Your pc will be updated when you restart it
pause
exit /b
2 changes: 2 additions & 0 deletions getadmin.vbs
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
32 changes: 32 additions & 0 deletions reload.bat
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

0 comments on commit 64016e0

Please sign in to comment.