Topic: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim  (Read 65223 times)

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #260 on: January 10, 2019, 04:32:08 PM »

kemo

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 19
Can WinXshell open file location ?
ila_rendered

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #261 on: January 10, 2019, 08:53:26 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
if there is no ieframe.dll, will fix this function with WinXShell.lua+wxsStub.dll.

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #262 on: January 11, 2019, 08:27:07 AM »

kemo

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 19
ieframe.dll already exists in system32 folder.
I use WinXShell.exe -winpe -keep_userprofile to start shell
however the "open file location" in context menu do nothing

Should I modify this?
Code: [Select]
--[[ add one more '-' to be '---', will enable this function
function do_ocf(lnkfile, realfile) -- handle open containing folder menu
  -- local path = realfile:match('(.+)\\')
  -- app:run('cmd', '/k echo ' .. path)
  app:run('X:\\Progra~1\\TotalCommander\\TOTALCMD64.exe', '/O /T /A \"' .. realfile .. '\"')
Quote
improve:EASY TO USE -- just run with '-winpe' or '-wes' or '-daemon' will do next actions auto with WinXShell.lua(can customize by everyone)
    * handle OpenContainingFolder context menu of shortcuts, if there is no ieframe.dll
« Last Edit: January 11, 2019, 08:31:41 AM by temo »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #263 on: January 11, 2019, 08:51:56 AM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Oh, if there is ieframe.dll, the function should work, but I will use explorer.exe' function, and nothing because explorer.exe is not exist.


for make the fix work even ieframe.dll exists, you need modify regist_shortcut_ocf()

Code: [Select]
function regist_shortcut_ocf() -- handle shortcut's OpenContainingFolder menu
    if not is_x then return end
    if File.exists('X:\\Windows\\System32\\ieframe.dll') then return end

delete it, or add "--" to comment out the check.

Quote
function regist_shortcut_ocf() -- handle shortcut's OpenContainingFolder menu
    if not is_x then return end
    -- if File.exists('X:\\Windows\\System32\\ieframe.dll') then return end

then I will open WinXShell.exe to the containing folder, but can't select the file.

if you are using 3rd file explorer, then you need modify do_ocf() function, WinXShell.exe will pass the lnkfile name, and targetfile of the shortcut,
you can run the 3rd file explorer with suitable parameters.



Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #264 on: January 11, 2019, 11:33:33 AM »

kemo

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 19
Hi and thanks for reply.
actually it works as expected (just hold the shift key when you right click on a link file)

I did as you said but "open file location" is now missing from context menu
Quote
function regist_shortcut_ocf() -- handle shortcut's OpenContainingFolder menu
    if not is_x then return end
    -- if File.exists('X:\\Windows\\System32\\ieframe.dll') then return end
« Last Edit: January 11, 2019, 12:11:45 PM by temo »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #265 on: January 11, 2019, 01:00:59 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi, 

It works, but not as my expected. :confused:

when there is no ieframe.dll, winxshell.exe will disable the origin one:
Code: [Select]
    reg_write([[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolderMenu]], '', 'disable-{37ea3a21-7493-4208-a011-7f9ea79ce9f5}')

but add new one(wxsStub.dll):
Code: [Select]
    reg_write([[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolderMenu_wxsStub]], '', '{B1FD8E8F-DC08-41BC-AF14-AAC87FE3073B}')

also add new one(wxsStub.dll to handle shortcuts' property "open file location")
Code: [Select]
    reg_write([[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\wxsStub]], '', '{B1FD8E8F-DC08-41BC-AF14-AAC87FE3073B}')

and add a hide one( hold the shift key menu because have "Extended" key):
Code: [Select]
    reg_write([[HKEY_CLASSES_ROOT\lnkfile\shell\OpenContainingFolderMenu_wxsStub]], '', 'Open Containing Folder Menu Wrap')


the origin "open file location" should be display, when you click this, it will call the hidden one -- 'Open Containing Folder Menu Wrap'.

so it will work without hold shift key...

I tested with origin winre.wim and it works without holding shift key.

I don't know why your needs shift key.

would you please upload yours [HKEY_CLASSES_ROOT\lnkfile] registy?

or fix it in your enviroment with(WinXShell.lua):
Quote
-- ren #MUIVerb key to MUIVerb to show "open file location" than 'Open Containing Folder Menu Wrap'
-- this #comment out, because there no need have two same menu

    reg_write([[HKEY_CLASSES_ROOT\lnkfile\shell\OpenContainingFolderMenu_wxsStub]], 'MUIVerb', '@shell32.dll,-1033')
-- remove Extended key, for always show
--    reg_write([[HKEY_CLASSES_ROOT\lnkfile\shell\OpenContainingFolderMenu_wxsStub]], 'Extended', '')

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #266 on: January 11, 2019, 02:17:20 PM »

kemo

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 19
Quote
would you please upload yours [HKEY_CLASSES_ROOT\lnkfile] registy?
sure, of course
* lnkfile.7z (0.69 kB - downloaded 66 times.)
I'll try the fix, thanks

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #267 on: January 11, 2019, 03:01:50 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
lnkfile.reg is right.

so I thoght there must be wrong in
HKLM\SOFTWARE\Classes\CLSID\{B1FD8E8F-DC08-41BC-AF14-AAC87FE3073B}

and I found out it point to wxsStub.dll in x86(I tested x64, and it is right), it should be wxsStub32.dll.

Code: [Select]
    local stub_dll = 'wxsStub.dll'
    if not ARCH == 'x64' then stub_dll = 'wxsStub32.dll' end
    reg_write([[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{B1FD8E8F-DC08-41BC-AF14-AAC87FE3073B}\InProcServer32]], '', app_path .. '\\' .. stub_dll)

and I tested ARCH is right, is "x86", and finally found I make a stupid code.

it should be
Quote
if not (ARCH == 'x64') then ...

not ARCH == 'x64' => (not ARCH) == 'x64' => false == 'x64', this one is never be true, so the stub_dll always be 'wxsStub.dll'.
« Last Edit: January 11, 2019, 03:03:14 PM by slore »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #268 on: January 12, 2019, 12:29:46 PM »

osninja

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 11

Win10(1709) pe x86, Xyplorer set as file explorer

Is there possibly a way for winxshell along with xyplorer to handle "browse to" "open containing folder" and "open file location"?

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #269 on: January 12, 2019, 01:16:02 PM »

osninja

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 11
"browse to" n "open file location" work now via wxstub+NewOpenDlg patch, uses built in explorer instead of xyplorer which is fine for my needs

possible to control "open containing folder" behavior?

Can you please provide command for classic shell computer icon to open NewOpenDlg

Thanks.
« Last Edit: January 12, 2019, 01:30:52 PM by osninja »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #270 on: January 12, 2019, 01:29:46 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Hi, osninja

Quote
Win10(1709) pe x86, Xyplorer set as file explorer
Is there possibly a way for winxshell along with xyplorer to handle "browse to" "open containing folder" and "open file location"?

Yes. it is possible.

"open containing folder" and "open file location"

as you use x86 PE, first follow the Reply #267 to fix.

change line #211 in WinXShell.lua to:
Quote
if ARCH ~= 'x64' then stub_dll = 'wxsStub32.dll' end

now the open containing folder will redirect to WinXShell.exe.
then enable do_ocf() function with next code line #17 in WinXShell.lua (Reply #262):

Quote
--- [[ add one more '-' to be '---', will enable this function
function do_ocf(lnkfile, realfile) -- handle open containing folder menu
  -- local path = realfile:match('(.+)\\')
  -- app:run('cmd', '/k echo ' .. path)
  -- totalcmd
  -- app:run('X:\\Progra~1\\TotalCommander\\TOTALCMD64.exe', '/O /T /A \"' .. realfile .. '\"')
  -- XYplorer

  app:run('X:\\Progra~1\\XYplorer\\XYplorer.exe', '/select=\"' .. realfile .. '\"')
end
--]]


"browse to"
would you post a picture for this? I don't where is the menu.
Folder's right context menu?

modify data in [HKEY_CLASSES_ROOT\Folder\shell], maybe give you the result.

« Last Edit: January 12, 2019, 01:30:48 PM by slore »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #271 on: January 12, 2019, 03:38:32 PM »

kemo

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 19
a bug!
can't reopen minimized window on taskbar If it has child window. like this:

ila_rendered

now press win+d shortcut and try to open notepad form taskbar. you can't!

« Last Edit: January 12, 2019, 03:42:10 PM by temo »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #272 on: January 12, 2019, 03:50:07 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
Thanks to report the bug.

I will confirm it, but fix will be next month.

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #273 on: January 13, 2019, 01:02:32 AM »

osninja

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 11
sry i meant "browse..." for Run dialog, and taskmgr.exe, that works now, uses builtin NewOpenDlg

"open file location" from context menu n properties dialog also working, uses xyplorer

"open containing folder" not working



Edit: Might b the expected behavior?  i thought it would handle open file location n open containing folder globally but trying to open file location of process in task manager does nothing n as stated previously open containing folder does nothing fom inside 3rd party search program

« Last Edit: January 13, 2019, 01:13:02 AM by osninja »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #274 on: January 14, 2019, 05:57:29 PM »

kemo

  • Jr. Chef
  • **
  • Date Registered: Dec 2018
  • Posts: 19
Does anyone have this problem with AOMEI Partition Assistant?
the program cannot be closed from taskbar nor close button
(winpe 10)

ila_rendered
« Last Edit: January 14, 2019, 05:59:04 PM by temo »

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #275 on: January 25, 2019, 08:45:45 AM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
Is there somewhere that I can do all the possible config settings. Like a sample with every configuration?

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #276 on: January 25, 2019, 09:21:24 AM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
I miss it for long time. I'm working on new version now, I will upload one this weekend about all config items, but every item's mean in English will be later.

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #277 on: January 25, 2019, 09:23:08 AM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
the notepad can be switched/bring to front by taskmgr.

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #278 on: January 25, 2019, 09:35:32 AM »
  • Location: Israel
  • Date Registered: Dec 2017
  • Posts: 444
I miss it for long time. I'm working on new version now, I will upload one this weekend about all config items, but every item's mean in English will be later.
Awesome looking forward to it.

I will use translate. I would like to get it working in XPE with windows 10 look and feel. As well as replace explorer.

Re: WinXShell - a portable shell and zero dependencies for boot.wim,winre.wim
« Reply #279 on: January 28, 2019, 03:51:47 PM »

slore

  • WimBuilder
  • Sr. Chef
  • ****
  • Date Registered: Jun 2016
  • Posts: 664
available options in WinXShell.jcfg:

SectionItemValueDescription
JS_DAEMONhandle_clockarea_clicktrue|falsehandle the clockarea click event(default:true)
JS_FILEEXPLORER3rd_filenamefile path3rd file explorer application file path
3rd_open_argumentsparamter templatespecify the paramter of 3rd file explorer(default:"%s")
JS_DESKTOPbkcolor[R, G, B]background color of the desktop
wallpaperfile pathspecify the wallpaper image file
wallpaperstyle0|1|2wallpaper style:0-strech(default);1-tile;2-center
viewmodeintegerdesktop view style
viewflagsintegerdesktop view flag
iconsizeintegerdesktop icon size
open_argumentsparamter templatespecify the paramter when click folder on the desktop with built-in file explorer(default:"%s")
3rd_open_argumentsparamter templatespecify the paramter when click folder on the desktop with 3rd file explorer(default:"%s")
JS_STARTMENUstart_pushed_bkcolor[R, G, B]start button pushed color
start_iconempty|cutomempty - no start button Windows icon(used for Classic-Shell), custom - use ICO_CUSTOM resource
nofileexplorertrue|falsehide the TOP file explorer item on start menu
nosettingstrue|falsehide Settings item
nobrowsetrue|falsehide Browse item
nobrowse_networktrue|falsehide Browse->Network item
nofindtrue|falsehide Search item
noruntrue|falsehide Run item
nologofftrue|falsehide Logoff item
norestarttrue|falsehide Restart item
noshutdowntrue|falsehide Shutdown item
notermtrue|falsehide Terminate WinXShell item
JS_QUICKLAUNCHhide_showdesktoptrue|falsehide the ShowDekstop button
hide_fileexplorertrue|falsehide the File Explorer button
hide_fixedseptrue|falsehide the Seperator
button_widthintegerquick launch button width
maxiconsinrowintegermax icon number in row(default:8)
paddingintegerspecify the padding width of quick launch bar
hide_fileexplorertrue|falsehide the File Explorer button
open_argumentsfolderspecify the startup folder of built-in file explorer(actually any support paramter can be written)
3rd_open_argumentsparamterspecify the startup paramter of 3rd file explorer when clicking the File Explorer on quick launch
JS_TASKBARheightintegerthe height of the taskbar
smallicontrue|falseuse small icon on the taskbar
themedarkuse white icon/textcolor on the taskbar
bkcolor[R, G, B]background color of the taskbar
textcolor[R, G, B]text color of the taskbar
task_line_color[R, G, B]task button underline color
no_task_titletrue|falseshow task on taskbar with only icon
hideforfullscreenwindowtrue|falseauto hide if the full screen window is active
JS_NOTIFYAREAhide_toggle_buttontrue|falsehide the show/hide tray icon button
volume_iconhidden|ignorehidden - hidden the volume tray icon on startup, ignore - never show the tray icon
network_iconhidden|ignoresee volume_icon
power_iconhidden|ignoresee volume_icon
plug_iconhidden|ignoresee volume_icon
JS_NOTIFYCLOCKvisibletrue|falseshow or hide the notifyclock area
« Last Edit: January 28, 2019, 03:53:04 PM by slore »

 

Powered by EzPortal