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

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    #1261 Compo, Apr 9, 2014
    Last edited by a moderator: Apr 20, 2017
    Of course!

    Use findstr...
    Code:
    Echo=%txtclr%|FindStr "<options>" && (GoTo :Success) || (GoTo :Failure)
     
  2. timesurfer

    timesurfer MDL Developer

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

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    Wouldn't be hard to do- just have to know how to mash out the code in another language.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    #1264 Compo, Apr 9, 2014
    Last edited by a moderator: Apr 20, 2017
    Oh, I see you want me to give you exact code to your exact specification at the drop of a hat in order that you can tell everyone that it's your code and your design and your project. As I've said before I'm happy to help but I'm afraid you need to show a little more humility.
    Code:
    :Color
    title Color Customization
    set bkg=
    set txtclr=
    mode con: cols=21 lines=22
    CLS
    echo.
    echo  Color Customization
    echo.
    echo  0 = Black
    echo  1 = Blue
    echo  2 = Green
    echo  3 = Aqua
    echo  4 = Red
    echo  5 = Purple
    echo  6 = Yellow
    echo  7 = White
    echo  8 = Gray
    echo  9 = Light Blue
    echo  A = Light Green
    echo  B = Light Aqua
    echo  C = Light Red
    echo  D = Light Purple
    echo  E = Light Yellow
    echo  F = Bright White
    echo  G = Rearm Wizard
    echo.
    set /p txtclr=    ^   Text Color: 
    echo=%txtclr%|findstr/ir "[^H-Z]">nul&&(set txtclr=%txtclr:~,1%)||(goto color)
    if /i "%txtclr%"=="G" goto mainmenu
    set /p bkg=    ^   Background Color: 
    echo=%bkg%|findstr/ir "[^H-Z]">nul&&(set bkg=%bkg:~,1%)||(goto color)
    if /i %bkg%==%txtclr% goto color
    if /i "%bkg%"=="G" goto mainmenu
    @COLOR %bkg%%txtclr%
    reg add "HKCU\Software\Microsoft\Command Processor"  /t  REG_DWORD /v DefaultColor /d 0x%bkg%%txtclr% /f >NUL
    IF '%ERRORLEVEL%' EQU '0' ( goto color
    ) ELSE (
    goto color
    )
     
  5. timesurfer

    timesurfer MDL Developer

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

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1266 timesurfer, Apr 9, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
    One last thing before I post the RW final

    IORRT console is slow to load due to these codes that use to be in Cody's KMS toolkit back when it was .bat before he went C#

    Can wmic.exe be faster to reg query?

    Code:
    :IORRT
    setlocal enabledelayedexpansion
    title IORRT
    REG QUERY "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion | FINDSTR 6.1 >NUL
    IF ERRORLEVEL 1 cls & echo IORRT supports Office 2013 only under Windows 7 & ping -n 5 127.0.0.1 >nul & goto mainmenu
    set OfficeArchType=
    if '%processor_architecture%'=='x86' Set OfficeArchType=32 && Goto:EndArchIR7
    goto:WOWIR7
    :WOWIR7
    2>nul REG QUERY HKLM\SOFTWARE\Microsoft\Office\15.0\Common | find /i "InstallRoot" 1>nul
    IF ERRORLEVEL 1 Set OfficeArchType=WOW && Goto:EndArchIR7
    Set OfficeArchType=64
    :EndArchIR7
    if %OfficeArchType%==WOW (
    FOR /F "tokens=2* delims= " %%A IN ('"REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B
    if not defined InstallRoot ( cls & echo Office 2013 is not installed... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    Goto:FoundPath
    )
    FOR /F "tokens=2* delims= " %%A IN ('"REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B
    if not defined InstallRoot ( cls & echo Office 2013 is not installed... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    :FoundPath
    1>nul 2>nul net start osppsvc
    cscript "%InstallRoot%"ospp.vbs /dstatus |FINDSTR /i "KMS_Client" >NUL
    if %errorlevel% EQU 1 ( cls & echo No office 2013 KMS detected... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    Preemptive thanks
     
  7. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    As I said humility!
    I provided a solution in your thread, but your patience and efforts were so massive, you and your staff didn't even bother typing findstr /? into a console window to take a stab at it!
    I have since directly input the required code for you and you haven't even acknowledged it, instead suggesting that I should have been proud to have been part of your 4+ years journey.

    BTW
    Even though it has no bearing whatsoever on console loading times, WMIC's handling of registry is poor in comparison to REG's.
     
  8. Humphrey

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    lol (I needed at least 10 characters)
     
    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
    Maybe we didn't have time nor the skills but your arrogance in all 66 of your posts at MDL while at the same time having thanked no one :eek:...lol...are bringing an negativity and macho'ish vibe to this thread that I can no longer handle here while we are trying to have fun and support a great solution!

    I know you want to be in charge of someone's elses's project and be Mr. "tell everyone what to do", even though I posted needing simple help with 2 specific things and you still after me reminding you several times you just can't take over and when what you gave wasn't according the specification of my request you get all butt hurt and start babbling :blahblah1: about morals...lol...and humility when all along you don't respect me, this project or my staff :eek:

    When your at someone's house you don't tell the occupants what to do or how to do it and if they ask for help you for help with something specific you don't take over and ridicule them...lol I know it's hard for an EGO as large as yours to realize who's thread your in but it's not yours and you need a lesson in respect, real humility and honoring a project and it's creator/staff for what they've already done...

    In relationships you just can't bully and boss everyone around, you have to work with others and not go off on tangents and thinking you can just do and say what you please regarding what is not yours

    And I get the feeling your ego has been bruised because you designed what was not asked of you and then when asked to follow direction as to how I want my console to look and function you start feeling rejected and lash out :p...lol

    It's hard to acknowledge your "two lines of code" when your acting as if your in charge of this development and IF people don't follow your demands with what you want you flip out and start getting bitchy, negative and projecting false and delusional statements and what have you done at MDL?

    Just try to take people and projects down with your "higher than thou" attitude and thinking your code is always superior than me and my staff's

    Seriously your help is no longer needed nor your presence in my thread where I am trying to do good work and support people interested in my project :giggle:...lol

    All two lines of "your code" has been removed from RW but thanks for showing everyone your true colors so if they also ask for help they'll know what they'll be getting into ahead of time :roflmao:...lol

    Compo :sith:...lol
     
  10. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #1270 timesurfer, Apr 9, 2014
    Last edited by a moderator: Apr 20, 2017
    (OP)
  11. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    #1271 Compo, Apr 10, 2014
    Last edited by a moderator: Apr 20, 2017
    Whilst I'm trying to steal your project, please remember that, as previously stated, I do not use Windows, I use Linux Mint Debian Edition (Cinnamon), and as a result have both no need for your script and no platform for testing it.

    I have already stated that I want no official recognition for helping you because morally I think what your script is doing is wrong. It is a little embarrassing to spit out your dummy in this manner in front of your end users simply because you are unable to accept that others may be better equipped in some areas than yourself. Your script is not particularly good, but it is considerably better than your general attitude. I sincerely hope that your end users are happy to use an inferior script simply because the Project Leader has shown themselves to be too self important to accept free help from a Member who's never had to click a thanks button because their posting history is that of providing help not asking for it!

    I also hope that those named are as happy to be your staff as you are to be their boss!

    [Edit]
    Nice line!
    Good idea putting it in black so that it doesn't look like you've actually used something i helped you with!
     
  12. xp2k3

    xp2k3 MDL Novice

    May 7, 2010
    8
    10
    0
    #1272 xp2k3, Apr 10, 2014
    Last edited by a moderator: Apr 20, 2017
    Great job with this thread, timesurfer!
    Stop fighting boys. It’s timersurfer’s thread and if it wasn’t for him not sure if anybody had the drive to take this concept to fruition.

    TS, there’s a flow in both codes (yours and Compo’s). Try entering some weird characters like $#@ etc. into your script and see what happens. I suggest considering the following as it allows only for certain characters.:

    Code:
    set /p txtclr=    ^   Text Color: 
    echo=%txtclr%|findstr/ir "[0123456789ABCDEFG]">nul&&(set txtclr=%txtclr:~,1%)||(goto color)
    if /i "%txtclr%"=="G" goto mainmenu
    set /p bkg=    ^   Background Color: 
    echo=%bkg%|findstr/ir "[0123456789ABCDEFG]">nul&&(set bkg=%bkg:~,1%)||(goto color)
    if /i %bkg%==%txtclr% goto color
    if /i "%bkg%"=="G" goto mainmenu
    @COLOR %bkg%%txtclr%
    
    Just my 2cents

    Peace to all :flag:
     
  13. Smilerut

    Smilerut MDL Novice

    Mar 4, 2014
    6
    0
    0
    So can I just take what TS posted, put it in a notepad, run it as a .bat and it will work?
     
  14. Compo

    Compo MDL Member

    Mar 29, 2011
    136
    106
    10
    #1274 Compo, Apr 10, 2014
    Last edited by a moderator: Apr 20, 2017
    A perfectly good and valid suggestion, (be careful).
    It would perhaps be better advised to use findstr's /b switch in order to prevent erroneous entries such as vb, sd, we etc. (not expected to be entered deliberately but next to each other on the keyboard it is possible). The above code currently would pick up V, S and W as the valid entries.
    Code:
    findstr/bir "[0-9A-G]"
    Remembering that whilst my very complex and unique method posted earlier in the thread was readily discounted that it did give one major clue to a more suitable solution which could be implemented throughout the script. (just in case the TS's staff have been too busy to spot it I'm talking about the choice command).
     
  15. Smilerut

    Smilerut MDL Novice

    Mar 4, 2014
    6
    0
    0
    Tried RW final, installed IR7, restarted(automatically). Still not genuine. All my rearms are still used. Nothing really changed it seems...
     
  16. timesurfer

    timesurfer MDL Developer

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

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    p.s. It has been really fun doing some code, designing and developing this project for 4+ years and for the most part it been wonderful to watch good people have fun sharing and doing code. It is really nice to have opened up this project to non-douche like people and unlike other solutions they have been able to participate in my project and I am thankful

    I mean it's not very often that people are allowed to help with someone's project and I think that is what makes RW a special project that MDL'ers have the opportunity to be part of something fun and exciting that not only allows users to use W7/Office 2013in trial forever but to be part of a team effort...

    Thanks again everyone for helping, sharing and being there for me when I needed assistance with my 4 year vision for the Rearm Concept

    I am deeply humbled in starting this project as a total beginner and receiving the unending support you have all given

    timesurfer
     
  18. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Color Customization is finished!

    @Humphrey/xp2k3

    Please confirm :worthy:

    I entered the same valid color for both text/background and it returns to color just fine...

    :shisha:
     
  19. timesurfer

    timesurfer MDL Developer

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

    Humphrey MDL Expert

    Dec 13, 2011
    1,455
    989
    60
    Well, for better or worse, the color script seems to be working.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...