Installation failed with error (0x80070004)


  • I have a simple bat file that copies an .exe file to "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\" on a Windows 7 PC.  in the smsts-XXXXXX-XXXXXX.log file I am receiving this error message.  Below is the bat file that I am using.  When I push this out to a PC that is already imaged and on the network, it is working fine.  But when I build this application in UDI and then run my TS it errors out.

    @echo off
    xcopy Printkey2000.exe "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\" /Y


    Installation failed with error (0x80070004) InstallSoftware 2/23/2011 12:39:50 PM 2796 (0x0AEC)


    Install Dynamic software action failed to install packageID: 'ABC00087', programID: 'Printkey 2000'. Error Code 0x80070004


    I am fairly new to SCCM and any help would be greatly appreciated.


    Wednesday, February 23, 2011 6:54 PM

All replies

  • First off, can you modify your script to the following:

    @if not defined debug echo off
    xcopy /y %~dps0\PrintKey2000.exe "%AllUsersProfile%\Microsoft\Windows\Start Menu\Programs\Startup"

    Wondering if the current path is the problem.

    Keith Garner ( - Deployment Consultant -
    Thursday, February 24, 2011 6:53 AM