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
    Realised now, that you removed the quotes. My file is updated.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #503 Humphrey, May 1, 2013
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Already created a similiar one here...:D.
     
    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
    #505 timesurfer, May 1, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Might as well forward date too in batch :biggrin:...lol
     
  5. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Test the latest update, for me and Humphrey it´s working now :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    Does no one else want to collaborate on dropbox in trying to tweak this final version?
     
    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
    Task should definitly run with these triggers:


    • without /ru
      • as it will create the task for the current user, so it will show the CMD window for a short moment
      • with /ru "" it is created as system task and won´t show anything


    • with /rl highest
      • as Check.bat definitly requires admin privileges to run properly, otherwise it throws errors
      • it suppresses any UAC Prompt this way

    ´Night and over/out :D


    EDIT: and the IR6 task is superseded by Hybrid2 task :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    TS should say which other team members should be invited :cool2:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Thank you for respecting my administrative (CEO) position regarding the rearm concept :matrix:

    I give permission to invite PAYMYRENT, Alphawaves, CODYQX4, qewlpal, tomah, Carlos Detweiller and Paiva since they have posted recently otherwise BOX-, MasterDisaster, MadSheep!, 7ekn00 and mcclausky would be happily invited to participate...

    Implement new task triggers

    :magiccarpet:
     
  10. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    @ TS

    Is the new task working for you?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #512 s1ave77, May 1, 2013
    Last edited by a moderator: Apr 20, 2017
    For some reason the theme backup process was not working :hmm:. So i was digging a bit and found a solution that works flawlessly for me:

    Code:
    ::determine path to theme file
    set KEY_NAME=HKCU\Software\Microsoft\Windows\CurrentVersion\Themes
    set VALUE_NAME=CurrentTheme
    for /F "usebackq tokens=3" %%A IN (`reg query "%KEY_NAME%" /v "%VALUE_NAME%" 2^>nul ^| find "%VALUE_NAME%"`) do SET themefile=%%A
    
    ::determine the name of the theme
    for %%F in (%themefile%) do set theme=%%~nF
    
    ::backup process
    :Backup
    if exist "%systemdrive%\IR6\IR6Bkup.theme" del /s /q "%systemdrive%\IR6\IR6Bkup.theme" >nul
    echo F | xcopy "%themefile%" /s /q "%systemdrive%\IR6" /Y /V >nul 
    ren "%systemdrive%\IR6\%theme%.theme" "IR6Bkup.theme"
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #513 timesurfer, May 1, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Curious is there an order of switches? like /v /y or /y /v?

    Does that have any effect?
     
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Afaik no specific order. When renaming the file the "echo F |" and "/V" might be not needed.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    @ TS

    PMR joined the chat :D.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Cool, we might revamp some stuff and consider service to do what all tasks are doing, hence service might work better for restore and non-manual rearm

    He might later also have info about how to work with WPA key inside windows as I'm pretty sure sec9tos and anermos found way to do that with injection or something, I dunno

    I just want whats best for project and users
     
  16. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Your choice, but in that case i´m out, as this afaik can´t be done with pure batch code.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    I don't want to be left out of the creative loop either just talking out loud is all to open up ideas

    And yes service can be created with batch I believe!?

    I would much rather use batch and don't want to loose anyone in the project!

    Let's stay open!
     
  18. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Not shure, whether i can be done without shipping Duality with additional files :hmm:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #520 timesurfer, May 2, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks for your patience s1ave77, I used this test procedure

    Code:
    Testing procedure for theme backup and restore:
    
    # starting with a VM-Snapshot with system in OOBE Grace and 5 rearms left
    # install Check.bat via S77D420, use the version i even updated with "pause" to stop before rebooting
    # NOTE: do not let the process getting finished after it pauses yet
    # Close the Duality window with process being unfinished, as only created Check.bat is needed
    # delete the IR6.bat in systemdrive
    
    # to test theme backup:
    * choose a theme prior to Log off/on
    * Log off and on
    
    # to test theme restore
    * forward time 
    * open system panel via Win-Key+Pause and click on the message prompting you to activate now
      to get the black desktop
    * Log off and on
    And unfortunately theme did not restore :(

    Would be happy to use Team Viewer if need?

    I remember MD putting IR6.bat in hidden partition hence IR6.bat was in my E:\ drive but entered C:IR6 and worked fine

    I remember him saying it would work in any drive with C:IR6 and it does mostly which is why I wanted to keep long code for IR6 install but I couldn't remember why?

    But just so happens I was still in notificaitons for some reason, I checked to see if theme was in IR6 folder so I thought what the heck, I'll run check.bat as admin and poof (it took a while) watermark was gone (hence rearm) and theme in IR6 folder was restored so something is working

    But personalization window opens up and stays open!

    I suggest we do the theme restore first since the rearm takes longer to stop/start service...

    And if services run before tasks then maybe PMR can help with my check.bat concept but without tasks and without IR6 folder and check.bat!