Setup.exe called from a batch file crashes with error 0x0000006
Posted
by
Alex
on Server Fault
See other posts from Server Fault
or by Alex
Published on 2012-10-26T01:13:56Z
Indexed on
2012/10/26
5:04 UTC
Read the original article
Hit count: 399
We're going to be installing some new software on pretty much all of our computers and I'm trying to setup a GPO to do it. We're running a Windows Server 2008 R2 domain controller and all of our machines are Windows 7.
The GPO calls the following script which sits on a network share on our file server. The script it self calls an executable that sits on another network share on another server. The executable will imediatelly crash with an error 0x0000006
. The event log just says this: Windows cannot access the file for one of the following reasons: there is a problem with the network connection, the disk that the file is stored on, or the storage drivers installed on this computer; or the disk is missing. Windows closed the program Setup.exe because of this error.
Here's the script (which is stored on \\WIN2K8R2-F-01\Remote Applications
):
@ECHO OFF
IF DEFINED ProgramFiles(x86) (
ECHO DEBUG: 64-bit platform
SET _path="C:\Program Files (x86)\Canam"
) ELSE (
ECHO DEBUG: 32-bit platform
SET _path="C:\Program Files\Canam"
)
IF NOT EXIST %_path% (
ECHO DEBUG: Folder does not exist
PUSHD \\WIN2K8R2-PSA-01\PSA Data\Client
START "" "Setup.exe" "/q"
POPD
) ELSE (
ECHO DEBUG: Folder exists
)
Running the script manually as administrator also results in the same error. Setting up a shortcut with the same target and parameters works perfectly. Manually calling the executable also works.
Not sure if it matters, but the installer is based on dotNETInstaller. I don't know what version though.
I'd appreciate any suggestions on fixing this. Thanks in advance!
UPDATE
I highly doubt this matters, but the network share that the script is hosted in is a shared drive, while the network share the script references for the executable is a shared folder.
Also, both shares have Domain Computers
listed with full access for the sharing and security tabs. And PUSHD
works without wrapping the path in quotes.
© Server Fault or respective owner