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
    Now it´s arranged correcty. The chat is already tested working with Humphrey :kissin:.

    What folder name would you wish?
     
    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
    #482 timesurfer, Apr 30, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    This works when ran as admin

    I backed up, then changed to default MS theme, then restored and poof it worked

    :rave:

    Code:
    @echo off
    
    REM Unknown to be needed
    setlocal ENABLEEXTENSIONS
    
    REM Unused line
     rem echo. >>%IR6backup%\IR6Bkup.theme
    
    REM Creates System Environment Variable (IE run > ir6backup > enter)
     SETX IR6backup "%SystemDrive%\Rearm\Backup" >nul
    
    REM Caputres the value of the key that states which theme is currently applied.
    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
    )
    
    REM If ir6backup folder isn't found, make it.
     If not exist %IR6backup% mkdir %IR6backup% >nul
    
    Rem simple backup/restore menu made with CHOICE
    :choice
    cls
    Echo A) Back-Up Background/Theme
    Echo.
    Echo B) Restore Background/Theme
    echo.
    echo C) Exit
    Echo.
    choice /C ABC /N /M "Select one of the options above (A-C):"
    if ERRORLEVEL 3 exit
    if ERRORLEVEL 2 goto Restore
    if ERRORLEVEL 1 goto Backup
    
    
    REM Backup procedure. 
    :Backup
    
    CLS
    
    REM Copies theme file from its location to the backup folder
    REM /V Verifies the size of each new file.
    REM  /Y Suppresses prompting to confirm you want to overwrite an existing destination file.
    REM ECHO F is used to surpass the FILE or DIRECTORY prompts.
    echo F | xcopy "%themefile%" "%IR6backup%\IR6Bkup.theme" /Y /V >NUL
    
    GOTO CHOICE
    
    :Restore
    
    CLS
    REM Copies theme file from the backup folder to the correct location.
    REM /V Verifies the size of each new file.
    REM  /Y Suppresses prompting to confirm you want to overwrite an existing destination file.
    REM ECHO F is used to surpass the FILE or DIRECTORY prompts.
    echo F | xcopy "%IR6backup%\IR6Bkup.theme" "C:\Windows\resources\Themes\IR6Bkup.theme" /Y >NUL
    
    REM Adds the theme file to the correct registry key.(Unknown to be required)
    reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Themes"  /t  REG_SZ /v CurrentTheme /d "C:\Windows\resources\Themes\IR6Bkup.theme" /f >NUL
    
    REM "Applies" theme to user environment. 
    %IR6backup%\IR6Bkup.theme
    
    
    GOTO CHOICE
    What is that /M switch?

    Code:
    choice /C ABC /N /M
     
  3. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    #483 s1ave77, Apr 30, 2013
    Last edited by a moderator: Apr 20, 2017
    Would be:

    Code:
    CHOICE /C ABC /M "Make a choice :"
    Alter the green part to your liking :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
    #484 timesurfer, Apr 30, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    lol...What is the /M switch, I know how to set up choice code

    But like this better

    Code:
    set /p userinp=    ^   Make your selection: 
    set userinp=%userinp:~0,1%
    if /i "%userinp%"=="A" goto InstallIR6
     
  5. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    For me it´s convenient to use the set /p option for inputting values and the choice option for menus or decisions, as i like for the latter to be answered by kitting the ppropriate button without Enter.
    Anyway it´s your choice here :D.

    Try out the new chat function, implemented by Humphrey. Simply start !Chat.bat and enter a name :good3:.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #486 timesurfer, Apr 30, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
  7. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Start the !Chat.bat in the dropbox folder to join the chat :D :good3:.

    Implementing your choice now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Ok here's what we'll do since I keep borking DB

    I will send you the files I have, please put them in new shared folder called D420 and send invite again and put this "chat inside" too...

    I won't change anything...lol
     
  9. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    For Humphrey and me it´s working properly. Have you dropbox installed locally?
     
    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
    pm you and yea it's installed I just changed something and borked it

    Please start new folder called D420 and send invite and put pm stuff into and chat, etc...

    Thanks
     
  11. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Invitation sent...:D.
     
    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
    #492 timesurfer, May 1, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
    Use this

    Code:
    :Message
    title IR6
    mode con: cols=70 lines=7
    CLS
    echo.
    echo  Your 180 day free trial has ended, do you wish to install IR6 again?
    echo.                  
    echo.                              A. Install
    echo.                              B. Uninstall
    echo.
    set /p userinp=    ^   Make your selection: 
    set userinp=%userinp:~0,1%
    if /i "%userinp%"=="A" goto ReinstallIR6
    if /i "%userinp%"=="B" goto UninstallIR6
    Adjusted
     
  13. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Already part of S77D420 just follow invitation.
     
    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
    I adjusted the size and placement of content in that last one!
     
  15. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    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
    #496 timesurfer, May 1, 2013
    Last edited by a moderator: Apr 20, 2017
    (OP)
  17. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    Changed it my version to your liking, simply get the code there.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Saw it update and already changed it...lol
     
  19. s1ave77

    s1ave77 Has left at his own request

    Aug 15, 2012
    16,093
    24,397
    340
    There should be 72 columns though, if not the line is cutted.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Can you post pic, cause mine above looks with 1 space in between things