Multi-OEM/Retail Project {MRP} - Mk3

Discussion in 'MDL Projects and Applications' started by mxman2k, Oct 15, 2016.

  1. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Have added in some error checking which 'hopefully' will work, only added it in this specific function for now but can be added into other wmi/COM areas to prevent a crash.

    Will upload this GUI QT rc2 for beta testers.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    I not have a Vista 64bit or server 2008 64bit to test so the above 'fix' is a trial and error - or attempt to avoid the error :D :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Interesting.... the os sku in that old qt uses wmic or vbscript wmi to obtain the name(caption) , version and sku.

    In the gui qt it uses wmi method which should be similar to the batch or vbscript methods. Yet it fails. :g:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Does the uploaded gui qt rc3 fail still on s2008 64bit ?

    Im wondering because i have used 64 redirection which might be why the crash in rc2.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    As for 1.03 RC2...

    2024-04-24 18_32_34-Windows Server 2008 SP2 Standard x64 (XXIV _2024-04-24).png

    Would it be possible to get the raw WMIC commands, for running them manually and checking the results?

    Edit: No RC3?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Rc3 is uploaded unless the host has deleted it.

    Not at pc so cant check.

    I will post the wmi(c) bits tomorrow morning.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    Nope.

    nope.png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Damn , i bet it still in the queue!!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. tcntad

    tcntad MDL Guru

    Oct 26, 2009
    4,589
    1,584
    150
    Ogh you're right I might have that phone option ticked, my bad :p
     
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    In the morning i will check why rc3 not uploaded. Plus will sort the way the old qt detected the data and post its method.

    Gui qt calls that osinfo function first before anything else via wmi so the gui qt could fail on other functions on server 2k8 64bit.

    I know i added error checks to continue instead of crash in rc2. I even added a check for a non existant object which returned 'unable to read data for xxxx' in my test it didnt crash out.

    There again it may of been renamed rc3 and i forgot to upload it. :oops:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  12. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    @Carlos Detweiller
    Code:
    WMIC /locale:ms_409 OS get OperatingSystemSKU /VALUE
    WMIC /locale:ms_409 os get caption /value
    Those are from the old QT for os name(capton) and SKU im sure it is the SKU one that was acting up... Most of the queries are in VBScript but use same names... The old QT code is a right miss mash of things, that one reason why the GUI one was invented to sort of standardize the methods of queries, (not quite as easy as i thought!).

    If you wish i can send you the old QT code to look through but it can be confusing how it all actually works :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    uploaded a revised GUI QT 1.03-rc3 for beta testers :)

    It was in the queue :oops: i must of closed the uploader before it had fully completed.

    Changed the routine which failed on S2k8 64bit - if this still fails then i am at a loss how to fix it or at least catch the error and continue.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    Code:
    C:\Users\User\Downloads>WMIC /locale:ms_409 OS get OperatingSystemSKU /VALUE
    
    
    OperatingSystemSKU=7
    
    
    
    
    C:\Users\User\Downloads>WMIC /locale:ms_409 os get caption /value
    
    
    Caption=Microsoftr Windows Serverr 2008 Standard
    
    
    
    
    C:\Users\User\Downloads>pause
    Press any key to continue . . .
    2024-04-25 16_04_19-Windows Server 2008 SP2 Standard x64 (XXV _2024-04-24) .png
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Hmm well it not the sku one as i thought... :g:

    That part is now on the memory which i am guessing will be more difficult to fix.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    MSSmBios_RawSMBiosTables

    Is where it is now erroring out...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  17. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    #10817 mxman2k, Apr 25, 2024
    Last edited: Apr 25, 2024
    (OP)
    I dont think i can fix that memory error so i will just have the function skipped and the memory Type (which is what is causing the error) will not be shown for any OS below win10.

    Have tweaked it so that server 2008/R2 will skip that memory type function.

    But as those older OS's are getting more awkward to find work-arounds i may have to start kipping more areas, but at least that majority of the other QT bits are useful, plus the older QT still works.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  18. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    GUI QT v1.03-RC3.1 uploaded for beta testers :)

    It should hopefully skip that Memory Type function and put a note in the output log/screen that it was unable to be identified.

    This skip function is just for Server 2k8 & server 2k8r2 until i can find another working method.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    #10819 Carlos Detweiller, Apr 25, 2024
    Last edited: Apr 25, 2024
    But, why did it work on Server 2008 SP2 32bit? Only the 64bit version errors.

    2024-04-25 18_32_41-Windows Server 2008 SP2 Standard x64 (XXV _2024-04-24).png

    Currently installing another Server 2008 SP2 VM for testing...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Im honestly not sure why it was ok on 32 bit.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...