I want to install a program using SCCM 2007. I want SSCM to run the associated msi and copy a file from the same location of the msi to the c: drives of 15 or so win 7 clients.
The msi and file are on a network share.
the batch file is as below -
msiexec.exe /i “%~dp0sitectrlsetup.msi” /q
COPY /Y “%~dp0exception.sites" "C:\Users\%username%\AppData\LocalLow\Sun\Java\Deployment\security"
kramer.cmd is the name of the batch file.
The syntax of the above was copied from another package within SCCM ( flash installation ) which I know works.
I have altered the text to reflect what I want to install.
The package, program, distribution point, advert and collection have been configured, and are as i would expect.
The batch file ( kramer.cmd ) is in the same directory as the msi & the single file to be copied.
Within SCCM, software distribution reports, I am informed that the clients receive the program, but the clients fail to run the program as they cannot find the file specified or the report suggests there is a ' bad environment '
If i have SCCM configured to run just the msi ( not as part of a batch file...) the program executes fine.
This should be simple to execute but I just cannot get it to run.
What am I doing wrong ?