Rearm Wizard - The Premier Rearm Solution for Windows 7 and Office 2013

Discussion in 'MDL Projects and Applications' started by timesurfer, Mar 27, 2013.

  1. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #301 s1ave77, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #302 timesurfer, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    You like to be very precise :worthy: slave77

    I'm hardcore, you know that :eek:

    Will edit my compile post

    :D
     
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    The code you quoted, got messed up by vBulletin :mad:. I edited it in my previous post.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #304 timesurfer, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
  5. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #306 timesurfer, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Oops forgot to add delete Hybrid2 task into IR6 code brb :eek:

    Code:
    schtasks /delete /tn "Hybrid2" /f >NUL 2>&1
     
  6. qewlpal

    qewlpal MDL Addicted

    Jun 25, 2010
    575
    2,014
    30
    Don't think you have to add the Admin Manifest in Bat to exe converter as it is already handled in the batch file
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #309 s1ave77, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    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 :hmm:.

    BTW: when checking the admin option in "compiler", better delete the get-admin passage in CMD :D.

    More will come tomorrow, as i´m getting tired now. Need some powernap :tea:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. qewlpal

    qewlpal MDL Addicted

    Jun 25, 2010
    575
    2,014
    30
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Yep, realised that likewise in my tests, as some reg-queries didn´t run properly afterwards.

    BTW: nice avatar :good3:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #312 timesurfer, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    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 :eek:

    Thanks
     
  11. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #313 timesurfer, Apr 21, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
  12. qewlpal

    qewlpal MDL Addicted

    Jun 25, 2010
    575
    2,014
    30
    Inner Peace FTW :)

    Good night s1ave77..
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #315 s1ave77, Apr 22, 2013
    Last edited by a moderator: Apr 20, 2017
    Code:
    copy "%~dp0\Check.bat\*.*" "%SystemDrive%\IR6"
    Would guess, the red part is preventing Check.bat to be copied :D.

    ´night qewlpal and timesurfer...will check out now, see ya tomorrow :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #316 timesurfer, Apr 22, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    lol...That is what I thought

    Thanks
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #317 s1ave77, Apr 22, 2013
    Last edited by a moderator: Apr 20, 2017
    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 :D.

    Only negative would be that you can´t use your icon then.

    Will do more testing later :tea:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #318 timesurfer, Apr 22, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Hence idea surfaced and is ready to manifest ;)

    No TS skull :suicide:

    Masterful work S77
     
  17. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #319 s1ave77, Apr 22, 2013
    Last edited by a moderator: Apr 20, 2017
    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 :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,766
    7,698
    210
    I posted after joining.

    Yeah found out what I did wrong. The old Kame avatar was too big and thus resized + converted to static.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...