/build/static/layout/Breadcrumb_cap_w.png

Script to install AutoCAD says failure even on success during first run, but says success on subsequent runs

With AutoCAD, you're able to create a silent deployment.  It's super easy to call, it's just \\path\to\share\Setup.exe and then a few flags on the end.  I've created a script within our K1000 to run said command as an administrator user.  It's successful and I can see AutoCAD on the workstation within 10 minutes (it's a large install).

For some reason, even though the installation is successful, the K1000 administrator console shows that it failed.  Is it possible for me to rectify this?  It's hard to tell an end user that I'm 100% sure that the software installed if it comes up as a failure.

From the Run Now Status log:

Output Log

Running as credntials provided
Directory DOES exist: C:\Program Files (x86)
Creating process returned non-zero: \\domain.com\DFS\IT\Deployments\AutoCAD_2015\Img\Setup.exe /W /q /I \\domain.com\DFS\IT\Deployments\AutoCAD_2015\Img\AutoCAD_2015.ini /language en-us: (0) The operation completed successfully.
Error Code: 0
Status Code: 1641

Activity Log

Checking if directory exists: C:\Program Files (x86)
Launching program: '\\domain.com\DFS\IT\Deployments\AutoCAD_2015\Img\Setup.exe' '/W /q /I \\domain.com\DFS\IT\Deployments\AutoCAD_2015\Img\AutoCAD_2015.ini /language en-us' wait='true'


If I rerun the script after this failure, it finishes almost instantly with a success.  Here's the corresponding log for the success:

Output Log

Running as credntials provided
Directory DOES exist: C:\Program Files (x86)
Launched Process: Setup.exe

Activity Log

Checking if directory exists: C:\Program Files (x86)
Launching program: '\\domain.com\DFS\IT\Deployments\AutoCAD_2015\Img\Setup.exe' '/W /q /I \\domain.com\DFS\IT\Deployments\AutoCAD_2015\Img\AutoCAD_2015.ini /language en-us' wait='true'

What gives?

0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: Chris.Thomson@Sitel.Com 8 years ago
Yellow Belt
0

Top Answer

1641 means ERROR_SUCCESS_REBOOT_INITIATED

So it's actually indicating a successful install. If you suppress the reboot you'll get 3010 (ERROR_SUCCESS_REBOOT_REQUIRED)

Not sure if you can tell K1000 to ignore 1641 or not...but try suppressing the reboot and see if it will ignore 3010 instead.

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ