/build/static/layout/Breadcrumb_cap_w.png
04/25/2019 230 views

The software I'm deploying needs a certain .dll file to be copied to C:\Windows\system32\drivers\


I link my zipped folder with install.bat to the installation and...


It says "File was copied" in the cmd-window but in fact it was 'not' copied.


I've tried


copy source destination

xcopy ..

start /wait copy ...

added a timeout before the file gets copied ..


I've written a loop that checks if the file exists... "yeah it exists" it says .. but it doesn't.


Any ideas for a workaround?


Thanks


Edit:

Just realized that the kace agent is 32 bit and it gets copied to the syswow64 folder instead

im trying %windir%\Sysnative now, which seems to redirect to system32 for 32-bit-applications

can't see it anywhere but apparently only 32 bit apps see this folder..


Edit2 :

got it to work.

here's the code:


SET LookForFile="C:\windows\sysnative\drivers\UMDF\xxx.dll"

COPY C:\windows\system32\DriverStore\FileRepository\xxx\xxx.dll C:\windows\sysnative\drivers\UMDF\xxx.dll

Answer Summary:
1 Comment   [ + ] Show comment

Comments

  • Please mark your question as answered. Note that you may need to post an answer first.

Answer Chosen by the Author

0

got it to work.

here's the code:


SET LookForFile="C:\windows\sysnative\drivers\UMDF\xxx.dll"

COPY C:\windows\system32\DriverStore\FileRepository\xxx\xxx.dll C:\windows\sysnative\drivers\UMDF\xxx.dll

Answered 04/28/2019 by: itzauberer
White Belt