Help Winpe  

Page 1 of 5 123 ... LastLast

  1. Posts : 61
    windows 10
       #1

    Help Winpe


    Hey, guys.

    I'm doing a combination of Win10XPE with sergeysvirid's multiboot

    Help Winpe-876c6e80e653c246abc487f2cb0636de.png

    I'm taking the multiboot screen from sergeysvirid and putting it in my 10xpe, but I want to make some changes

    i am using this command in pecmd.ini

    Help Winpe-pecmd.png

    and it worked the way I wanted

    however it only worked the first time, after I restarted the multiboot screen stopped appearing, and only the wallpaper was displayed

    stayed like this
    Help Winpe-bug.png

    I believe the error is in pecmd.ini, but I couldn't solve it

    Maybe someone can help me?

    windows 10 20h2
      My Computer


  2. Posts : 4,173
    several
       #2

    try
    IFEX Sources\mbootmgr_64.wcs,mess found it

    where is that sources folder ?
      My Computer


  3. Posts : 61
    windows 10
    Thread Starter
       #3

    SIW2 said:
    try
    IFEX Sources\mbootmgr_64.wcs,mess found it

    where is that sources folder ?
    hi SIW2

    this one
    Help Winpe-sources1.png

    I tested IFEX and everything is black
      My Computer


  4. Posts : 4,173
    several
       #4

    x:\sources
      My Computer


  5. Posts : 61
    windows 10
    Thread Starter
       #5

    SIW2 said:
    x:\sources
    Sorry, I did not understand
      My Computer


  6. Posts : 4,173
    several
       #6

    IFEX X:\Sources\mbootmgr_64.wcs,mess found it! mess not found

    first check it is being found:
    forx !sources\mbootmgr_64.wcs,script,1,MESS %script%

    associate .wcs files with pecmd:

    ENVI PECMD=PECMD.EXE
    ENVI EDIT=notepad
    REGI $HKCR\.wcs\=wcsfile
    REGI $HKCR\wcsfile\=WCS File
    REGI $HKCR\wcsfile\DefaultIcon\=%SystemRoot%\SYSTEM32\%PECMD%,0
    REGI $HKCR\wcsfile\shell\open\command\=%PECMD% LOAD %L
    REGI $HKCR\wcsfile\shell\Edit\command\=%EDIT% %L
    REGI $HKCR\inifile\shell\PECMD\=PECMD load
    REGI $HKCR\inifile\shell\PECMD\command\=%PECMD% "LOAD %L"
    REGI $HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PATHEXT=.COM;.EXE;.NTR;.NTE;.NTX;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.WCS;.WC E;.WCX;.WCZ
    wait 1000

    then try load:

    FORX !sources\mbootmgr_64.wcs,script,1,LOAD %script%
    Last edited by SIW2; 10 Mar 2023 at 12:37.
      My Computer


  7. Posts : 61
    windows 10
    Thread Starter
       #7

    SIW2 said:
    IFEX X:\Sources\mbootmgr_64.wcs,mess found it! mess not found

    first check it is being found:
    forx !sources\mbootmgr_64.wcs,script,1,MESS %script%

    associate .wcs files with pecmd:

    ENVI PECMD=PECMD.EXE
    ENVI EDIT=notepad
    REGI $HKCR\.wcs\=wcsfile
    REGI $HKCR\wcsfile\=WCS File
    REGI $HKCR\wcsfile\DefaultIcon\=%SystemRoot%\SYSTEM32\%PECMD%,0
    REGI $HKCR\wcsfile\shell\open\command\=%PECMD% LOAD %L
    REGI $HKCR\wcsfile\shell\Edit\command\=%EDIT% %L
    REGI $HKCR\inifile\shell\PECMD\=PECMD load
    REGI $HKCR\inifile\shell\PECMD\command\=%PECMD% "LOAD %L"
    REGI $HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PATHEXT=.COM;.EXE;.NTR;.NTE;.NTX;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.WCS;.WC E;.WCX;.WCZ
    wait 1000

    then try load:

    FORX !sources\mbootmgr_64.wcs,script,1,LOAD %script%
    Help Winpe-test.png
    thank you very much, the part of showing the screen works, but now when I click on a program it does not open and it used to open
    Help Winpe-programs.png
      My Computer


  8. Posts : 4,173
    several
       #8

    what is the shell ?

    shel explorer.exe

    or

    shel cmd.exe or whatever you are using in your pe

    before

    FORX !sources\mbootmgr_64.wcs,script,1,LOAD %script%
      My Computer


  9. Posts : 4,173
    several
       #9

    you could make your own menu.

    I have a simple one you can make a bigger one

    I usually put pemenu.wcs in system32 i.e in the same directory as pecmd.ini so can use %curdir%

    SHEL PECMD.EXE LOAD %CURDIR%\PEMENU.WCS

    pemenu.wcs
    Code:
    _SUB RBT
    MESS Restart pc now ?@RESTART PC ?#YN $Y
    FIND $%YESNO%=YES,SHUT R
    _END
    
    _SUB EASYPE,L10T10W334H362,PEMENU (C) SIW2 2020,,#4
         ITEM Button1,L8T6W155H30,SHUTDOWN,CALL SHT,SHELL32.DLL#27
         ITEM Button11,L168T6W155H30,REBOOT ,CALL RBT,SHELL32.DLL#137
         ITEM Button2,L8T46W155H30,CMD,EXEC cmd.exe,cmd.exe#0
         ITEM Button21,L168T46W155H30,NOTEPAD,EXEC notepad.exe,notepad.exe#0
         ITEM Button4,L8T86W155H30,IMAGE RESTORE,EXEC bmrui.exe,bmrui.exe#0
         ITEM Button41,L168T86W155H30,RECOVERY OPTS,EXEC X:\SOURCES\RECOVERY\RECENV.EXE,X:\SOURCES\RECOVERY\RECENV.EXE#0
         ITEM Button5,L8T126W155H30,BOOTICE,EXEC %CURDIR%\BOOTICEx64.exe,%CURDIR%\BOOTICEx64.exe
         ITEM Button51,L168T126W155H30,SHADOWCOPIES,EXEC %CURDIR%\SHADOWCOPYVIEWx64.exe,%CURDIR%\SHADOWCOPYVIEWx64.exe
         ITEM Button6,L8T166W155H30,DISM++,EXEC X:\sources\recovery\tools\Dism++x64.exe,X:\sources\recovery\tools\Dism++x64.exe
         ITEM Button61,L168T166W155H30,SETUP,EXEC X:\SETUP.EXE,X:\SETUP.EXE
         ITEM Button7,L8T206W155H30,SYSTEM RESTORE,LOAD %CURDIR%\PERSTRUI9.WCS,PECMD.EXE#1
         ITEM Button71,L168T206W155H30,NT6REPAIR,LOAD %CURDIR%\NT6REPAIR10.WCS,PECMD.EXE#1
         ITEM Button8,L8T246W155H30,WINNTSETUP,EXEC %PROGRAMFILES%\WinNTSetup_x64.exe,%PROGRAMFILES%\WinNTSetup_x64.exe#0
         ITEM Button81,L168T246W155H30,
         ITEM Button9,L8T286W155H30,800,TEAM EXEC PECMD DISP W800 H600 B32 F60|KILL \,PECMD.EXE#2
         ITEM Button91,L168T286W155H30,1024,TEAM EXEC PECMD DISP W1024 H768 B32 F60|KILL \,PECMD.EXE#2 
    _END
     
    _SUB SHT
    MESS Shutdown pc now ?@SHUTDOWN PC ?#YN
    FIND $%YESNO%=YES,SHUT
    _END
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    CALL     @EasyPE
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    Help Winpe-pemenu-small.jpg

    you need to check your menu and see it is pointing at the location of the program.exe in your winpe.

    if it is pointing at the wrong place nothing will happen when clicking the button
    Last edited by SIW2; 10 Mar 2023 at 16:50.
      My Computer


  10. Posts : 61
    windows 10
    Thread Starter
       #10

    SIW2 said:
    you could make your own menu.

    I have a simple one you can make a bigger one

    I usually put pemenu.wcs in system32 i.e in the same directory as pecmd.ini so can use %curdir%

    SHEL PECMD.EXE LOAD %CURDIR%\PEMENU.WCS

    pemenu.wcs
    Code:
    _SUB RBT
    MESS Restart pc now ?@RESTART PC ?#YN $Y
    FIND $%YESNO%=YES,SHUT R
    _END
    
    _SUB EASYPE,L10T10W334H362,PEMENU (C) SIW2 2020,,#4
         ITEM Button1,L8T6W155H30,SHUTDOWN,CALL SHT,SHELL32.DLL#27
         ITEM Button11,L168T6W155H30,REBOOT ,CALL RBT,SHELL32.DLL#137
         ITEM Button2,L8T46W155H30,CMD,EXEC cmd.exe,cmd.exe#0
         ITEM Button21,L168T46W155H30,NOTEPAD,EXEC notepad.exe,notepad.exe#0
         ITEM Button4,L8T86W155H30,IMAGE RESTORE,EXEC bmrui.exe,bmrui.exe#0
         ITEM Button41,L168T86W155H30,RECOVERY OPTS,EXEC X:\SOURCES\RECOVERY\RECENV.EXE,X:\SOURCES\RECOVERY\RECENV.EXE#0
         ITEM Button5,L8T126W155H30,BOOTICE,EXEC %CURDIR%\BOOTICEx64.exe,%CURDIR%\BOOTICEx64.exe
         ITEM Button51,L168T126W155H30,SHADOWCOPIES,EXEC %CURDIR%\SHADOWCOPYVIEWx64.exe,%CURDIR%\SHADOWCOPYVIEWx64.exe
         ITEM Button6,L8T166W155H30,DISM++,EXEC X:\sources\recovery\tools\Dism++x64.exe,X:\sources\recovery\tools\Dism++x64.exe
         ITEM Button61,L168T166W155H30,SETUP,EXEC X:\SETUP.EXE,X:\SETUP.EXE
         ITEM Button7,L8T206W155H30,SYSTEM RESTORE,LOAD %CURDIR%\PERSTRUI9.WCS,PECMD.EXE#1
         ITEM Button71,L168T206W155H30,NT6REPAIR,LOAD %CURDIR%\NT6REPAIR10.WCS,PECMD.EXE#1
         ITEM Button8,L8T246W155H30,WINNTSETUP,EXEC %PROGRAMFILES%\WinNTSetup_x64.exe,%PROGRAMFILES%\WinNTSetup_x64.exe#0
         ITEM Button81,L168T246W155H30,
         ITEM Button9,L8T286W155H30,800,TEAM EXEC PECMD DISP W800 H600 B32 F60|KILL \,PECMD.EXE#2
         ITEM Button91,L168T286W155H30,1024,TEAM EXEC PECMD DISP W1024 H768 B32 F60|KILL \,PECMD.EXE#2 
    _END
     
    _SUB SHT
    MESS Shutdown pc now ?@SHUTDOWN PC ?#YN
    FIND $%YESNO%=YES,SHUT
    _END
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    CALL     @EasyPE
    //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    Help Winpe-pemenu-small.jpg

    you need to check your menu and see it is pointing at the location of the program.exe in your winpe.

    if it is pointing at the wrong place nothing will happen when clicking the button
    yes, it is pointing correctly, but it opens nothing, it seems to be a fake screen that does nothing
    Help Winpe-menu.png

    In this pecmd.ini command that you sent me, could there be a command that is causing this error?
    Last edited by keketoco00; 10 Mar 2023 at 18:04.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 08:00.
Find Us




Windows 10 Forums