I've been trying(fruitlessly) to use a KACE 'scripted installation' in my k1000
appliance to copy certain DLL and OCX files to the System32 and SysWOW64 folders simultaneously and register these files.
I've uploaded a single zipped folder containing the script(that should do the copying) and the DLL and OCX files, as a dependency in KACE.
The "On success" portion in KACE says it should "Launch a program" which i've chosen to be the .bat file from the dependency directory "$(KACE_DEPENDECY_DIR)".
When I hit "Run now", it completes with no errors, but the files haven't been copied into either directory(and hence not registered either).
The files(DLL, OCX and .bat) do appear in the local dependency directory in "C:\Program Data..\..\..\.." after the script is run, though. But it isn't doing what it's supposed to do(which is, appearing in the System32 and SysWOW64 folders and proceeding to get registered).
I read somewhere that adding "start /wait" before the xcopy command could help with the copy process. But including that in the script didn't change anything for me and provided the same results as above. I have also tried the "Unzip a file" option from the "On success" portion and chosen to unzip it into the System32 and SysWOW64 directories and again the script runs and downloads the dependencies into the "C:\Program Data..\..\..\.." folder but not into the folders that I've chosen them to be unzipped into, and that's as far as it has always gone.
What am I doing wrong? If I don't prefer to use the "file sync" option in KACE, how do I go about getting this to actually work for me?
The script that I'm using in the batch file is:
cd /d %~dp0
for %%i in ("C:\Windows\System32","C:\Windows\SysWOW64") do copy /Y /V "dmimage_alt.dll" "%%i\"
for %%i in ("C:\Windows\System32","C:\Windows\SysWOW64") do copy /Y /V "OBXAltViewer.ocx" "%%i\"
for %%i in ("C:\Windows\System32","C:\Windows\SysWOW64") do copy /Y /V "OBXAltViewer.inf" "%%i\"
for /f %%i in ("C:\Windows\System32\dmimage_alt.dll","C:\Windows\SysWOW64\dmimage_alt.dll") do regsvr32 /s %%i
for /f %%i in ("C:\Windows\System32\OBXAltViewer.ocx","C:\Windows\SysWOW64\OBXAltViewer.ocx") do regsvr32 /s %%i
This is a great community, with a lot of immensely smart and helpful people.
Thanks in advance for any insight into my issue here, and for any pointers in the right direction!