/build/static/layout/Breadcrumb_cap_w.png

[SOLVED] Managed Install: Can't copy file to system32

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


1 Comment   [ + ] Show comment
  • Please mark your question as answered. Note that you may need to post an answer first. - chucksteel 5 years ago

Answers (1)

Answer Summary:
Posted by: itzauberer 5 years ago
White Belt
0

Top Answer

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

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ