Jump to content











Photo
* * * * * 1 votes

files required to get a) drag drop and b) file copy progress working in PE


  • Please log in to reply
98 replies to this topic

#1 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 09 January 2018 - 08:45 PM

Hi

 

 

I have created a "vanilla" PE (64-bit) from Windows 10 1709 ADK and got most things I want working

 

But I have the following requirements which I need help with if possible, as can't work out what files/registry keys are needed:-

 

a ) Drag Drop support

 

b ) File Copy progress dialog

 

I am currently using Explorer++ as my file explorer which works fine, but whatever tool I use I have both the above facilities missing

 

For a) I have tried everything mentioned on various posts I have found including adding below files and registry keys

 

system32\d3d11.dl

system32\DataExchange.dll

system32\dcomp.dll

system32\dxgi.dll

system32\ksuser.dll

Windows Registry Editor Version 5.00

;dataexchange.dll
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID\{9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}\InProcServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
  00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,61,00,\
  74,00,61,00,65,00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,2e,00,64,00,6c,\
  00,6c,00,00,00
"ThreadingModel"="Both"

;need update ACL rights for offline importing.
;or you can add this on WinPE startup.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\Extensions]
"DragDropExtension"="{9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}"

Thanks for reading



#2 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 19 January 2018 - 11:39 AM

Anyone?

 

For b ) File Copy Progress Dialog I have tried copying shellstyle.dll, explorerframe.dll and related MUI files, as per article I found but still not working



#3 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 19 January 2018 - 01:58 PM

I've been watching this topic hoping for a response. I'm also struggling with adding this function since this release of Windows 10. I think that the previous Windows 10 build (1703) had the same issue.

Anyone?

#4 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 19 January 2018 - 06:40 PM

I tried this with v1709, and this also works fine.

I can't upload files in reboot.pro, see the ovn's post.

 

I maked two gif animations for adding this in a bare boot.wim, and works. 

 

 

EDITED(upload animations to github):

you can watch them in github.

https://github.com/s...ter/DragAndDrop

 

https://github.com/s..._DD_feature.gif

https://github.com/s.../test_DD_PE.gif



#5 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 19 January 2018 - 07:00 PM

Hi Slore

 

Thank you for creating the GIFs to show it works, but unfortunately in the PE I create from either ADK winpe.wim or a winre.wim doing exactly the same as you doesn't work - so must be other dependencies for both Drag and Drop and for the File Copy Progress dialog

 

Can provide link to my wim if it helps diagnose why not working for me and I assume for misty either



#6 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 20 January 2018 - 02:43 AM

Hi, darren rose
 
no need your wim, because I use
sources\install.wim\1\Windows\System32\Recovery\winre.wim
 
to replace the boot.wim and remake the BOOTPE.ISO, this doesn't work as you said.
 
if I have time I will compare the files,regs in winre.wim with boot.wim see what need be added.


#7 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 20 January 2018 - 06:52 AM

Hi, darren rose
 
no need your wim, because I use
sources\install.wim\1\Windows\System32\Recovery\winre.wim
 
to replace the boot.wim and remake the BOOTPE.ISO, this doesn't work as you said.
 
if I have time I will compare the files,regs in winre.wim with boot.wim see what need be added.

WinRE has additional Optional Components (Packages) compared to boot.wim from Windows OS and ADK sources. Just a guess, but maybe it is one of these that results in DragNDrop functions working in your build.

Misty

#8 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 20 January 2018 - 11:58 AM

I tried again, finally prove the dlls and regs works.
 
 
after I used my FA_winre project to create a FA_winre.wim with full access control of the files,regs.(no add/modify/delete any file or registy item)
and do the same D&D patch, It worked, so I find out:
 
 
for winre.wim, already have the 
 
system32\d3d11.dl
system32\dxgi.dll
system32\ksuser.dll
 
 
files, when I executed my D&D project, the d3d11.dll has no permission to overwrite the one in system32(winre.wim).
so, the rest file didn't copy to my winre build. and the D&D feature didn't work obviously.
 
 
 
for winre.wim just copy the two files, and import the reg, the feature will work.(I don't have ADK winpe.wim, you can test for that.)
 
 
system32\DataExchange.dll
system32\dcomp.dll


#9 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 20 January 2018 - 12:22 PM

@slore
Registry entry and the following files....

system32\d3d11.dll
system32\dxgi.dll
system32\ksuser.dll
system32\DataExchange.dll
system32\dcomp.dll


.....already tested and NOT working in WinPE using boot.wim from Windows ISO. Not tested, but unlikely to be working in ADK.

Are there any registry entries in your WinRE.wim for the files above that are missing from ADK/boot.wim?

#10 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 20 January 2018 - 12:36 PM

Okay now I am confused as I have also tried this using a WINRE.WIM from same location you mention - from a 64-bit Windows 10 1709 ISO file

 

Adding files and registry keys you mention didn't work - and I have tried it twice

 

Are you also using 64-bit?

 

Are you adding anything else to get other features at same time?

 

Must be something you are doing different to me and Misty because I for one have tried your instructions lots of times and every time it doesn't give me drag and drop



#11 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 20 January 2018 - 12:43 PM

@Darren rose
Was the following registry setting definitely applied in the test you did with the WinRE?
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\Extensions]
"DragDropExtension"="{9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}"
P.s. for anyone wanting to apply this setting to an offline registry then I highly recommend Erwan.L's excellent OfflineReg to bypass the ACL restrictions.
OfflineReg.exe C:\PATH\config\SOFTWARE Microsoft\Ole\Extensions setvalue DragDropExtension {9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}


#12 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 20 January 2018 - 12:46 PM

@Misty

 

Yes I applied in once booted into PE using .reg file

 

Thanks for info re OfflineReg - looks useful



#13 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 20 January 2018 - 01:04 PM

@Misty

 

>.....already tested and NOT working in WinPE using boot.wim from Windows ISO. Not tested, but unlikely to be working in ADK.

 

Did you see the add_DD_feature.gif?

 

en_windows_10_multi-edition_version_1709_updated_sept_2017_x64_dvd_100090817.iso

 

base image:

sources\boot.wim

 

dlls extract from sources\install.wim\[1]\Windows\System32

 

the reg can be merged in booted PE.(see test_DD_feature.gif)

of cause, offline inject will work.(I tested that puting the dd.reg in my patch folder, and it auto merged. make sure got ACL first.)

 

config.ini

```

rem skip update files' rights operation
set PB_SKIP_UFR=0
rem skip update registry's rights operation
set PB_SKIP_URR=0
```

 

and today, I test sources\install.wim\[1]\Windows\System32\Recovery\winre.wim

 

it works also. Do you need I upload another git animation to show what I did?

 

maybe the WINDOWS ISO is bad?I tested in years ago for the dlls and regfile with 

cn_windows_10_multi-edition_version_xxxxxxxxxxxxxxxxx_x64_dvd_xxxxxxx.iso

 

Yesterday I download the english version and make a gif animations for you.

so I don't understand why this NOT WORKED for yours boot.wim/winre.wim.


Edited by slore, 20 January 2018 - 01:06 PM.


#14 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 20 January 2018 - 01:11 PM

@slore
Sorry for any confusion. I have NOT tested winre.wim.

Tests have been limited to \sources\boot.wim (from Windows 10 iso) and ADK files (both Windows 10 Build 1709 sources). These source files can both be used in MistyPE. Coding MistyPE to use winre.wim is impractical - particularly just to add the DragNDrop feature to recent Windows builds. DragNDrop is working in previous Windows 10 builds with just a few minor registry and file additions.

P.s. Thanks for all the feedback so far. It is appreciated.

#15 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 20 January 2018 - 01:28 PM

https://github.com/s...ter/DragAndDrop

 

the boot.wim worked process to see:

add_DD_feature.gif
test_DD_PE.gif
 
drag and drop feature animations 19 hours ago
 
the winre.wim worked process to see:

add_DD_feature_WINRE.gif

test_DD_feature_WINRE.gif

 

drag and drop feature animations(WINRE) 2 minutes ago

 

 

maybe you can try wimbuilder. the project is easy.

 

PS D:\PB_Workspace\Projects\TestRE> tree /a /f
D:.
|   config.ini
|
\---DragAndDrop
    +---System32
    |       DataExchange.dll
    |       dcomp.dll
    |
    \---X
            DragDrop.reg
            Explorer++.exe
 

 

config.ini

set PB_SRC_WIM=
set PB_BASE_WIM=%PB_MNT_DIR%\winre.wim
set PB_BASE_INDEX=1

and you can tell your ISO file name and SHA-1 or MD5 information.

if I can download the ISO, I can try it.



#16 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 20 January 2018 - 02:58 PM

winre.wim from en-gb_windows_10_multi-edition_version_1709_updated_sept_2017_x64_dvd_100090819.iso

MD5 = AA1021F192C797E4572EE8F0489568EB

Perhaps it is a language difference then - as my ISO en_gb and MD5 of winre.wim clearly different



#17 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 21 January 2018 - 04:11 AM

I download the en-gb_windows_10_multi-edition_version_1709_updated_sept_2017_x64_dvd_100090819.iso,

and do nothing change for this, it also works.

 

I don't know how you adding the two file to new wim file. maybe you should try with my wimbuilder.

(just simple dism.exe mount/unmount wim, and xcopy some files batch script, I don't know why your process didn't be worked.)

 

again, I upload the animation and use hash.exe to confirmed the MD5 value as yours.

 

https://github.com/s...ter/DragAndDrop

 

DD_feature_WINRE(en_gb).gif   size:2MB  animation time:03'30


  • darren rose likes this

#18 slore

slore

    Member

  • Members
  • 51 posts
  •  
    China

Posted 21 January 2018 - 06:09 AM

@misty

 

>.....already tested and NOT working in WinPE using boot.wim from Windows ISO

 

I tested all boot.wim form Windows ISO which I had downloaded, all worked.

(x86,x64,cn,en)

 

which one you tested? Could you show me the ISO name and the md5 of the boot.wim?



#19 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 21 January 2018 - 11:33 AM

Okay I will try for the 20th time - but I don't do anything different than you
 
I mount image using DISM, copy files to system32 folder, unmounts committing changes
 
Then boot, double click reg file to import registry keys
 
Run explorer ++ and no drag / drop
 
To be honest the area I need working more is file copy progress dialog


#20 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 21 January 2018 - 11:50 AM

Bingo - sorted it
 
Started completely from scratch with fresh WIM, fresh ISO download etc and it now works!!!
 
Was odd, must have been to do with my ISO, but it worked fine to build in winbuilder and to install Windows in virtual - so assumed not corrupt, but must have been
 
Thank you slore!!!!
 
Any ideas to get file copy progress dialog working as well?


#21 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 21 January 2018 - 08:39 PM

P.s. for anyone wanting to apply this setting to an offline registry then I highly recommend Erwan.L's excellent OfflineReg to bypass the ACL restrictions.

OfflineReg.exe C:\PATH\config\SOFTWARE Microsoft\Ole\Extensions setvalue DragDropExtension {9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}

 

Thank you Misty for letting me know about OfflineReg - works perfectly for adding that value

 

But having issues adding the other required one as the below doesn't create it correctly - what am I missing

OfflineReg.exe D:\a\mount\Windows\System32\config\SOFTWARE Classes\CLSID\{9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}\InProcServer32 setvalue " " hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,61,00,74,00,61,00,65,00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,00,00


#22 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 21 January 2018 - 09:42 PM

Thank you Misty for letting me know about OfflineReg - works perfectly for adding that value

My pleasure - don't forget to thank Erwan.l too!


But having issues adding the other required one as the below doesn't create it correctly - what am I missing


OfflineReg.exe D:\a\mount\Windows\System32\config\SOFTWARE Classes\CLSID\{9FC8E510-A27C-4B3B-B9A3-BF65F00256A8}\InProcServer32 setvalue " " hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,61,00,74,00,61,00,65,00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,00,00


Syntax (from http://reboot.pro/fi...313-offlinereg/)
example : OfflineReg "c:\temp\system" a_key setvalue a_binary_value 0a,0b,0c,0d,0e,0f 3

The 3 appended to the command is the key type (REG_BINARY)

Misty

#23 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 21 January 2018 - 10:39 PM

No its not 3 as says not a valid integer value

 

Tried 7 but that creates it as a REG_MULTI_SZ rather than a REG_EXPAND_SZ

 

Found out it is 2 to create REG_EXPAND_SZ - documentation on page wrong, but just running offlinereg shows correct value

 

However it writes but shows in registry as 

 

hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,64,00,61,00,74,00,61,00,65,00,78,00,63,00,68,00,61,00,6e,00,67,00,65,00,2e,00,64,00,6c,00,6c,00,00,00

 

rather than changing it to a file path like it does if I add it via .reg file e.g.

 

%SystemRoot%\system32\dataexchange.dll



#24 misty

misty

    Gold Member

  • Developer
  • 1066 posts
  •  
    United Kingdom

Posted 21 January 2018 - 10:52 PM

@Darren rose
I've not tested it, however the Offlinereg support topic mentions an option to import from a reg file.

#25 darren rose

darren rose

    Frequent Member

  • Advanced user
  • 455 posts
  • Location:Norwich, Norfolk
  •  
    United Kingdom

Posted 21 January 2018 - 11:47 PM

@misty

 

Excellent, hadn't noticed that - will give it a try






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users