Code: SET file=%SystemDrive%\IR6 IF EXIST %file% attrib -h %file% IF EXIST %file% RD /S /Q %file% >NUL mkdir "%SystemDrive%\IR6" >NUL xcopy "%~dp0\Check.bat\*.*" "%SystemDrive%\IR6" >NUL shutdown /r /t 0 GOTO Exit :UninstallIR6 CLS REG ADD "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SoftwareProtectionPlatform\Activation" /v NotificationDisabled /t REG_DWORD /d 0 /f >NUL SET file=%SystemDrive%\IR6 IF EXIST %file% attrib -h %file% IF EXIST %file% RD /S /Q %file% >NUL Would recommend some little changes.
Oops forgot to add delete Hybrid2 task into IR6 code brb Code: schtasks /delete /tn "Hybrid2" /f >NUL 2>&1
Don't think you have to add the Admin Manifest in Bat to exe converter as it is already handled in the batch file
Would recommend testing Duality code prior to compiling anything. Some suggestions: would leave manual rearm option same for manual backup for theme file show remaining rearm count when checking in IR6 section to show rearm count: Code: for /f "usebackq tokens=2 delims==" %%n in (`"%SystemRoot%\System32\wbem\WMIC.exe" /namespace:\\root\cimv2 path SoftwareLicensingService get RemainingWindowsReArmCount /format:list`) do set r=%%n if %r% == 1 (set s=) else (set s=s) echo.You have %r% rearm%s% remaining. For some reason Check.bat isn´t copied in my tests . BTW: when checking the admin option in "compiler", better delete the get-admin passage in CMD . More will come tomorrow, as i´m getting tired now. Need some powernap .
Yep, realised that likewise in my tests, as some reg-queries didn´t run properly afterwards. BTW: nice avatar .
We don't need manual rearm anymore and can just open cmd and slmgr /rearm Not sure what you mean with theme Status does that Maybe we need Cd in front of check.bat copy? Yea it seems unnecessary now that we're in .exe Also removed the advice that comp must be on for task to run in instructions Thanks
Code: copy "%~dp0\Check.bat\*.*" "%SystemDrive%\IR6" Would guess, the red part is preventing Check.bat to be copied . ´night qewlpal and timesurfer...will check out now, see ya tomorrow .
Figured out how to write variables to a file. It´s simply needed to use Code: echo if %%errorlevel%%==0 goto :Rearm >>Check.bat to get following output: Code: if %errorlevel%==0 goto :Rearm That way it seems possible to write Check.bat directly from within Duality-CMD. This would supersede the buggy compiling . Only negative would be that you can´t use your icon then. Will do more testing later .
Was in front of my eyes whole time... Code: echo echo slmgr.vbs /dlv ^>^>%%dl%%\installkey.bat >>%file% ...only had to open them. It´s from the InstallIR6 code .
I posted after joining. Yeah found out what I did wrong. The old Kame avatar was too big and thus resized + converted to static.