[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
-
Please mark your question as answered. Note that you may need to post an answer first. - chucksteel 5 years ago