Jump to content

Recommended Posts

Posted

I've been using SMS for almost 2 years now. I thought I finally got the hang of it, but today its totally baffling me again!

I'm trying to install some testing software. It's in MSI format, but I need to run multiple MSIs. So, I've put it into a batch script. My code is shown below:

xcopy \\Server\Share\Sleep\SLEEP.EXE c:\windows\system32 /y
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2005-P-ABC 2215\KS3ICT-2005-P-ABC 2215.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2005-P-FMA 3084\KS3ICT-2005-P-FMA 3084.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2005-P-FMB 3084\KS3ICT-2005-P-FMB 3084.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2005-S-PRE 1431\KS3ICT-2005-S-PRE 1431.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2006-P-ABC 2292\KS3ICT-2006-P-ABC 2292.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2006-P-PFM 1614\KS3ICT-2006-P-PFM 1614.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2006-P-TSF 1021\KS3ICT-2006-P-TSF 1021.msi" /qb
Sleep 5
msiexec /i "\\Server\e$\QCA Testing\Admin Point System\FILE_STORE\TPS\KS3ICT-2006-P-SUP 1727\KS3ICT-2006-P-SUP 1727.msi" /qb

Now, whats baffling me is the script works totally fine when I run it manually! I have no problems whatsoever, and the package is fully installed and I have tested to see that this is the case.

The problem is, when I try to deploy it using SMS, I get an Exit Code of 1. It's never had problems running batch scripts I created before, only up until recently. So Does anyone know what might be causing it to fail when I deploy it with SMS? I've had this issue with quite a few different batch scripts now.

Zoom7000


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...