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
    Hmm strange it not setting the route addresses :g:

    If you entered any manually do they set?

    if they do it indicates something in the script has an error before that section and it exits, so the rest of the script is ignored...
     
    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
    The problem is that if an error is shown it will be that fast on screen that you not see it as it instantly exits the script and closes the window...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Debugging is fun {not} -- i have had my fair share of time wasted finding those little bugs that can be so subtle you end up pulling hair out trying to find them.

    The worst type are those intermittent errors that occur under certain scenarios nailing those is a job i detest the most as you have to get the timing just right to make it happen!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    I don't see any windows at all, Windows 7 will wait at the "Preparing Desktop" login screen until everything is complete. So, I cannot see any errors, either.
    Looks like the ISOs created earlier were all duds. And my UltraISO license finally pays off.
     
    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
    :(

    I have had UltraIso since 2006 best money i spent of software, i did have magicIso too but that had some weird bugs , i did report them and they got fixed but it just couldnt get along with it, so i not use that now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    I think at that stage SETUP/OOBE prevents any echo/display to screen until the desktop appears... not sure how to get around that unless using msgbox type things as i know they show up as i used to have a msgbox pop up telling me if w7 was activated or not and some details and a OK button.
     
    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
    I know s1ave77 used to have a interactive script that run in OOBE no idea if it still on MDL, i not used it myself so never took a copy :oops: not sure if it was w10 only...
     
    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
    Results: No log files from WinTel at all, that means it didn't even run, although the log still tells me it has been processed. At a loss.
     
    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
    does wintel run ok with no errors if you call it manually after install ?

    hopefully it may shine light on any errors
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    #8330 Carlos Detweiller, Jun 22, 2022
    Last edited: Jun 22, 2022
    I'll check, currently, retrying with Enterprise (in case the OEM:SLP activation prevents it to run).

    Edit: Enterprise is the same, it's not due to OEM.

    Running WinTel manually as Admin shows and processes the interactive element fine, runs fine and all routes are available.

    Possible conclusion: MRP runs in parallel to the last part of Setup (entering account etc.). This part also includes Network Setup (selecting Network profile and finalizing). In other words - WinTel might run when the Network Setup isn't complete, and route commands barf. If it even runs at all, MRP says yes, but, no log files with the Debug version are ever created.

    Must find a way to have it run only after login, maybe with a RunOnce entry (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce) or a Task.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    #8331 mxman2k, Jun 22, 2022
    Last edited: Jun 22, 2022
    (OP)
    Have to go out will be back in about 2hours :)

    Back :)
     
    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
    Yeah m$ call it synchronous - i think - so it all seems to run at same time, not much i can do about it sorry :(

    I think setupcomplete is called first then any run once run items which is the MRP's Addon-manager part that then calls usertweaks and other scripts...

    If i had MRP call the usertweaks etc before that stage ie during early oobe before username etc setup then any HKCU registry stuff will not be run as that registry hive is not setup until after the section where the username is created.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    #8333 Carlos Detweiller, Jun 22, 2022
    Last edited: Jun 22, 2022
    Well, I'll try placing the WinTel.cmd into the Startup directory of the Default account. It's a crazy idea, but might work. And the file destroys itself, so, it'll only run once per new account.

    Edit: Basic principle works, but won't run elevated. Crap.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  14. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Technically it should work that way. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  15. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    No, it's not running elevated that way.
     
    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
    #8336 mxman2k, Jun 22, 2022
    Last edited: Jun 22, 2022
    (OP)
    :( probably only task method left but i could never get the scheduler to work how i wanted -- always asked for username/password even when no password was set and it just never worked - i guess it some security thing to prevent malware from being run, yet that stuff manages to find a way around it!
     
    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
    or create a OSUpdates.cmd file that sets up a runonce to a renamed usertweaks and/or wintel file(s) so that MRP runs the OSUpdates file to set those runonce commands up and then it should run them on the next reboot with higher rights.....

    I have the clean up file set that way so when MRP completes it runs that cleanup file on the reboot to tidy things up and set a few options that require a double run...
     
    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
    OSUpdates.cmd is a file i use (and Enth) to run other stuff such as updates and tools etc.

    MRP also looks for that file and calls it the same as usertweaks but it was originally for those individual updates, i left it in as it can come in handy when just adding a few bits and pieces later..

    I use it for installing Winrar, 7Zip and at one time openshell :D
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  19. mxman2k

    mxman2k MDL Developer

    Jun 20, 2007
    6,317
    21,056
    210
    Something like below added to OSUpdates.cmd :

    Code:
    REG add "HKLM\Software\Microsoft\Windows\CurrentVersion\RunOnce" /v "!SpecialFiles" /t REG_SZ /d "<PathToScripts>\renamed-Usertweaks-etc.cmd" /f >NUL 2>&1
    
    I use the ! (called Pling?) to make sure that if the script isn't run it gets retried on the next reboot as some things needs a 2nd reboot not sure why but that usually sorts it...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  20. Carlos Detweiller

    Carlos Detweiller Emperor of Ice-Cream

    Dec 21, 2012
    6,768
    7,711
    210
    I need to continue tomorrow, need a rest (and my HDD, too). Will look into that method.

    Still a mystery why that file isn't run by MRP but the MRP log says it has run...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...