Trilogy 4.2

Discussion in 'MDL Projects and Applications' started by timesurfer, Feb 11, 2011.

Thread Status:
Not open for further replies.
  1. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    lol..Use the Trilogy program to give status not cmd prompt :eek:...lol
     
  2. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #343 timesurfer, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    (OP)
  3. dr.white

    dr.white MDL Junior Member

    May 18, 2010
    50
    3
    0
    #344 dr.white, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    Code:
    REM Get Office Installed Path
    if %OfficeArchType%==WOW (
    FOR /F "tokens=2* delims= " %%A IN ('"REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B 
    if not defined InstallRoot ( cls & echo Office 2010 VL 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\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B
    if not defined InstallRoot ( cls & echo Office 2010 VL is not Installed.... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    
    cscript "%InstallRoot%"ospp.vbs /dstatus |FINDSTR /i "KMS_Client" >NUL
    if %errorlevel% EQU 1 ( cls & echo No office 2010 VL detected... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    
    :FoundPath
    
    REM Start OSPPSVC (To make sure it is started to prevent strange cases where it doesn't start automatically from failing (XP))
    1>nul 2>nul net start osppsvc
    Code:
    REM Get Office Installed Path
    if %OfficeArchType%==WOW (
    FOR /F "tokens=2* delims= " %%A IN ('"REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B 
    if not defined InstallRoot ( cls & echo Office 2010 VL 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\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B
    if not defined InstallRoot ( cls & echo Office 2010 VL is not Installed.... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    
    :FoundPath
    
    cscript "%InstallRoot%"ospp.vbs /dstatus |FINDSTR /i "KMS_Client" >NUL
    if %errorlevel% EQU 1 ( cls & echo No office 2010 VL detected... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    
    REM Start OSPPSVC (To make sure it is started to prevent strange cases where it doesn't start automatically from failing (XP))
    1>nul 2>nul net start osppsvc

    :FoundPath before KMS_Client check is better otherwise no KMS_Client Check for OfficeArchTyp=WOW.
    Am i right?
     
  4. dr.white

    dr.white MDL Junior Member

    May 18, 2010
    50
    3
    0
    #345 dr.white, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    Code improvement from
    Code:
    cd /d "%InstallRoot%"
    cscript OSPP.VBS /dstatus | FINDSTR /i "Status"
    cscript OSPP.VBS /dstatus | FINDSTR /i "Remaining"
    to
    Code:
    cscript "%InstallRoot%\OSPP.VBS" /dstatus | FINDSTR /i "Status"
    cscript "%InstallRoot%\OSPP.VBS" /dstatus | FINDSTR /i "Remaining"
    benefit: no directory switching necessary :)
     
  5. dr.white

    dr.white MDL Junior Member

    May 18, 2010
    50
    3
    0
    #346 dr.white, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    Task rename:
    Code:
    schtasks /create /tn "Hybrid" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc onstart /ru "" >NUL
    schtasks /create /tn "IORRT" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc daily /mo 1 /ru "" >NUL
    Code:
    schtasks /create /tn "IORRT-OnStart" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc onstart /ru "" >NUL
    schtasks /create /tn "IORRT-Daily" /tr "%SystemDrive%\IORRT\IORRT.bat" /sc daily /mo 1 /ru "" >NUL
    benefit: users know where the task is usefull for, otherwise with "Hybrid" they don't know whats meant with it.
     
  6. tosbsas

    tosbsas MDL Junior Member

    Jan 6, 2011
    69
    10
    0
    you guys are definitly awesome
     
  7. CRA2YHAVOK

    CRA2YHAVOK MDL Senior Member

    Oct 23, 2009
    458
    155
    10
    Yeah, been meaning to update it lol...

    Done! ;)
     
  8. 7_eleven.hell-hole_rider

    Aug 15, 2009
    240
    53
    10
    #349 7_eleven.hell-hole_rider, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    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
    #350 timesurfer, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    (OP)
  10. stonedagain

    stonedagain MDL Junior Member

    Sep 30, 2009
    84
    3
    0
    I can't get Trilogy to run! I right-click on it, select "run as administrator" then UAC Control asks if I want to allow the program to make changes to my computer. Click on "Yes" button then a black box appears on the screen then disappears instantly. Have I done something wrong?
     
  11. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    #352 timesurfer, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    (OP)
  12. stonedagain

    stonedagain MDL Junior Member

    Sep 30, 2009
    84
    3
    0
    Win 7 Professional x 64 (using modded bios) & Office 2010 x 64 (converted to VL using channel switcher)
     
  13. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  14. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    If you have no rearms in office you will get no rearms detected msg. Try it and see? Also cody's toolkit will repair rearms to 5 again through his EZ-activator. I can help you with that or you can ask in his thread too as I support his toolkit also
     
  15. jcroot

    jcroot MDL Novice

    Mar 6, 2011
    35
    12
    0
    Thanks timesurfer,

    I was, can you should me how to use the EZ-activator in order to repair rearms to 5 again? Also, should I download the beta1 - 2.1 version from his thread or the 2.0.1 version?
     
  16. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
    Use EZ-activator then use availble button. If no go then go to licence and choose version and Volume then delete all wait then try EZ again. If you got rearms then use IORRT
     
  17. chnix

    chnix MDL Member

    May 16, 2010
    147
    71
    10
    #359 chnix, Mar 6, 2011
    Last edited by a moderator: Apr 20, 2017
    He is right. In this case, if path is found, go direct to the :FoundPath and the office will not be checked if it's a volume edition or not.

    The correct code (with the tip of dr.white) is:
    Code:
    :EndArchCheck
    
    REM Get Office Installed Path
    if %OfficeArchType%==WOW (
    FOR /F "tokens=2* delims= " %%A IN ('"REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B 
    if not defined InstallRoot ( cls & echo Office 2010 VL 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\14.0\Common\InstallRoot" /v Path 2>NUL"') DO SET InstallRoot=%%B
    if not defined InstallRoot ( cls & echo Office 2010 VL is not installed... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    
    :FoundPath
    
    cscript "%InstallRoot%"ospp.vbs /dstatus |FINDSTR /i "KMS_Client" >NUL
    if %errorlevel% EQU 1 ( cls & echo No office 2010 VL detected... & ping -n 5 127.0.0.1 >nul & goto mainmenu )
    
    REM Start OSPPSVC (To make sure it is started to prevent strange cases where it doesn't start automatically from failing (XP))
    1>nul 2>nul net start osppsvc
    
    Please, update as soon as possible.

    @dr.white

    Thank you for your observation.

    P.S.: I'm doing many tests on XP in a Virtual Machine. Later i'll post my results...
     
  18. timesurfer

    timesurfer MDL Developer

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