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. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #1181 Humphrey, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cryptonight

    cryptonight MDL Novice

    Mar 29, 2014
    1
    0
    0
    IORRT absent periods

    timesurfer can you clarify if IORRT will work on PC that is used infrequently? ie does the re-arm process still work if the scheduled tasks haven't run for over 30 days?
     
  3. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1183 timesurfer, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  4. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #1184 Humphrey, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1185 timesurfer, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  6. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #1186 s1ave77, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1187 timesurfer, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  8. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #1188 Humphrey, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    where ever the script says.

    Code:
    @for /f "delims=[]" %%a in ('find /n "::StartOf"^<"%~f0"') do more +%%a "%~f0" 1>HoldingFile.cmd
    Code:
    @for /f "delims=[]" %%a in ('find /n "::StartOf"^<"%~f0"') do more +%%a "%~f0" 1>C:\HoldingFile.cmd
     
    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
    #1189 s1ave77, Mar 29, 2014
    Last edited by a moderator: Apr 20, 2017
    Thanks, but already figured out by testing ;).
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    #1190 Compo, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    I copied the code from one of your posts here a few days ago into my text editor, (my editors color coding helps me to read it), and noticed some mistakes, some things in there which are redundant and was amazed at how much stuff was repeated.

    The problem with this kind of scripting is that it easily becomes unmanageable and fragmented as the project builds, things fail, new ideas come in and inevitably bloat gets added.

    My suggestion is that you reach your milestone point where you say enough is enough feature wise. Then and only then would it be advantageous to look at cleaning the code up.

    footnote
    To start you off, replace the first three lines in your script with these four:
    Code:
    CLS=new ActiveXObject("Shell.Application").ShellExecute("\""+WScript.ScriptFullName+"\"","","","runas",1);/*
    @NET FILE>NUL 2>&1||@(CSCRIPT //B //E:JSCRIPT "%~f0"&&EXIT /B)
    @ECHO OFF
    TITLE Rearm Wizard
    Your first line should start with mode, you don't need another @echo off and cls already!
     
  11. BetonMAN

    BetonMAN MDL Novice

    Nov 17, 2013
    12
    27
    0
    #1191 BetonMAN, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
  12. cuzn8r

    cuzn8r MDL Novice

    Mar 30, 2014
    1
    0
    0
    I don't mean to derail the thread but I wasn't sure where else to post this.
    I just downloaded and used the Rearm Wizard and got an error message that flashed up for a second:

    'REG' is not recognized as an internal or external command, operable program or batch file.

    I have used Trilogy 4.2 for a while now and only updated today when i began to get a similar error there. Now, I'm far from being a programmer so I don't know what to do about this or where else to go for a solution. Any help would be greatly appreciated. :worthy:
     
  13. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    #1193 Humphrey, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    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
    #1194 s1ave77, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    As this happend with Trilogy likewise i suggest checking integrity of system files, instead searching for another solution :cool2:.

    in admin CMD enter:

    Code:
    sfc /scannow
     
    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
    #1195 timesurfer, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks for noticing stuff not needed. At the end of finishing my msg stuff, I'll ask that you post in color what is redundant :)

    I'm working on .bat msg reinstall stuff right now if your curious

    Hi BM, we need the msg box but to continue code without pressing yes button, so view my batch code in the reinstall function to see what I'm doing and add if you like :cool:

    True that :worthy:

    And thanks for new Admin bypass code :cheers:

    Code:
    (NET FILE||(powershell -command Start-Process '%0' -Verb runAs -ArgumentList '%* '&EXIT /B))>NUL 2>&1
    Let's not advice using experiimental code as of yet except for testing as that RW you posted has borked reinstall msg still and .bat msg that hasn't been tested :eek:

    I think with the way we avoid RE C:\ and hidden partition stuff the install problems should come to a close with 100% success hopefully. Also the one rare thing that happened was key would not install probably due to runonce reg stuff but with task installing key fine I think we'll be close to guaranteed install/reinstall success :biggrin:
     
  16. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1196 timesurfer, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  17. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    First line in green, you haven't escaped the redirection to ^>nul
     
  18. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1198 timesurfer, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Thanks, but InstallingIR7 task does install...

    These are the bugs

    Code:
    Can't get C:\Trial\InstallingIR7.bat to run at reinstall
    
    Can't get C:\Trial\IR7.bat to install key but it deletes InstallingIR7 and Key tasks. C:\Trial\IR7.bat also deletes InstallingIR7.bat and itself fine
    I'm trying to get a "Installing IR7" .bat message working
     
  19. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    #1199 Compo, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    See what happens after you've made these changes:

    Change Line 178
    From:
    Code:
    echo schtasks /create /tn "InstallingIR7" /tr "%SystemDrive%\Trial\InstallingIR7.bat" /sc onlogon /ru "" >nul >>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo schtasks /create /tn "InstallingIR7" /tr "%%SystemDrive%%\Trial\InstallingIR7.bat" /sc onlogon /ru "" ^>nul >>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 179
    From:
    Code:
    echo echo @echo off^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo @echo off^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 180
    From:
    Code:
    echo echo title IR7^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo title IR7^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 181
    From:
    Code:
    echo echo mode con: cols=42 lines=2 ^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo mode con: cols=42 lines=2 ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 182
    From:
    Code:
    echo echo echo Installing IR7...^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo echo Installing IR7... ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 183
    From:
    Code:
    echo echo ping -n 90 127.0.0.1 ^>nul^>^>%%systemdrive%%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo ping -n 90 127.0.0.1 ^^^^^^^>nul^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 184
    From:
    Code:
    echo echo echo Windows is restarting now...^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo echo Windows is restarting now... ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 185
    From:
    Code:
    echo echo ping -n 30 127.0.0.1 ^>nul^>^>%systemdrive%\Trial\InstallingIR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo ping -n 30 127.0.0.1 ^^^^^^^>nul^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    Change Line 198
    From:
    Code:
    echo echo del /F /Q %SystemDrive%\Trial\InstallingIR7.bat ^>nul^>^>%%systemdrive%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
    To:
    Code:
    echo echo del /F %%%%%%%%0 ^^^>^^^>%%%%systemdrive%%%%\Trial\IR7.bat>>%SystemDrive%\Trial\IR7\IR7.bat
    
     
  20. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1200 timesurfer, Mar 30, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)