Jump to content


  • 0
bbengs

Installation failed with error (0x80070004)

Question

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

exit

 

 

 

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.

 

Thanks.

Share this post


Link to post
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Since nobody has chimed in I thought I'd toss this out there.... Keeping in mind I don't use the UDI stuff... The "PrintKey2000.exe" file is in the source files for the package, correct? Have you tried using "C:\Windows\system32\Xcopy.exe" in your batch file to make sure it's trying to use the right utility?

 

Otherwise, here's some rough VBScript code that you could try using:

 

Option Explicit

Dim objWshShell, objFSO, SystemDrive, strScriptFileDirectory

 

Set objWshShell = WScript.CreateObject("WScript.Shell")

Set objFSO = CreateObject("Scripting.FileSystemObject")

SystemDrive = objWshShell.ExpandEnvironmentStrings("%SystemDrive%")

strScriptFileDirectory = objFSO.GetParentFolderName(wscript.ScriptFullName)

 

If objFSO.FileExists(strScriptFileDirectory & "\PrintKey2000.exe") Then

objFSO.CopyFile(strScriptFileDirectory & "\PrintKey2000.exe"), (SystemDrive & "\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\PrintKey2000.exe"), True

End If

 

Wscript.Quit

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.