InstallShield Answer File and SCCM
I've created a package for an InstallShield .exe with an answer file. It works great when I manually run it but when I push the package out from SCCM the .log file returns an error code 5. However, if I hard code the path to the distribution point it'll work (i.e. setup.exe /s /f1<networkpath>\setup.iss). This is fine as long as it never gets moved or I only ever use one distribution point.
I've tried the following to try to get it to work.
setup.exe /s /sms /f1setup.iss
setup.exe /s /sms /f1%cd%\setup.iss
setup.exe /s /sms /f1%~dp0setup.iss
setup.exe /s /sms /f1"%~dp0setup.iss"
setup.exe /s /sms /f1%SMSDP%setup.iss
I've also tried all those with a - instead of a / in front of the arguments.
Any ideas?
I've tried the following to try to get it to work.
setup.exe /s /sms /f1setup.iss
setup.exe /s /sms /f1%cd%\setup.iss
setup.exe /s /sms /f1%~dp0setup.iss
setup.exe /s /sms /f1"%~dp0setup.iss"
setup.exe /s /sms /f1%SMSDP%setup.iss
I've also tried all those with a - instead of a / in front of the arguments.
Any ideas?
0 Comments
[ + ] Show comments
Answers (13)
Please log in to answer
Posted by:
dunnpy
12 years ago
You could set it to download and run, rather than running from the DP - I think I've seen that work in the past for a similar problem.
Hope it helps,
Dunnpy
Hope it helps,
Dunnpy
Comments:
-
Hi everyone,
I'm using SCCM 2012 and I'm trying to install BWise 4.1 using this command:
%~dp0setup.exe /s /a /s /SMS /f1"%~dp0setup.iss" /f2"%~dp0setup.log"
Locally works like a charm but on SCCM it just keeps failing, why ?
Notice that I tested using the SCCM files that were downloaded to the cache folder to run a Local installation and it works too, So there's no problem at all with the file distribution.
What could be the problem deploying with SCCM ? Is the command line to execute it because I'm using /SMS?
I already tried to repackage this application but it failed due to some functionality issues despite was installing perfectly locally and with SCCM. So I have no choice here than to use this Setup.exe with the switches.
Please let me know I will appreciate it.
Regards. - derspinne 11 years ago -
derspinne - You'd be better off creating a new question rather than posting a question on the end of a thread that hasn't had any activity since last year.
That way it will appear in the Q&A section and people are more likely to read/reply to your post. - dunnpy 11 years ago
Posted by:
mikehorton
12 years ago
Posted by:
mindless
12 years ago
Posted by:
mikehorton
12 years ago
Posted by:
bitofcopy
12 years ago
Posted by:
mikehorton
12 years ago
bitofcopy, you mean you created a program (under Software Distribution->Packages) that points to a command file with the install commands in it or you did it as part of a task sequence?
I originally ran into the problem last summer but at the time the error message I was getting was something along the lines of the package not matching what was on the distro point so I just had it installing via a task sequence command line pointing right at the dp. I also used the same command line in a TS that installs multiple programs but it's not an ideal solution as there's no easy way of verifying that it was installed correctly. I discovered last week that the problem was because there was a hidden file in my original install (http://iboyd.net/index.php/2009/01/11/sccm-content-downloaded-to-the-client-does-not-match-the-content-specified-in-the-content-source/) which is why I'm now revisiting this.
I originally ran into the problem last summer but at the time the error message I was getting was something along the lines of the package not matching what was on the distro point so I just had it installing via a task sequence command line pointing right at the dp. I also used the same command line in a TS that installs multiple programs but it's not an ideal solution as there's no easy way of verifying that it was installed correctly. I discovered last week that the problem was because there was a hidden file in my original install (http://iboyd.net/index.php/2009/01/11/sccm-content-downloaded-to-the-client-does-not-match-the-content-specified-in-the-content-source/) which is why I'm now revisiting this.
Posted by:
bitofcopy
12 years ago
I have a package for the application created under Software Distribution->Packages yes then i create a program (ex. Run) and point the command line to the command file i created in the source files location. distribute the package to the distribution points. I did not realize you are using Task Sequence. It looks like the programs i have used for Task Sequence the command line file called is a *.bat not *.cmd The source file still resides in the source location of the package file source. I have multiple secondary servers with dp's. I distribute my packages via SCCM to the dp's.
Posted by:
mikehorton
12 years ago
Posted by:
jwedepohl
12 years ago
Posted by:
andys0123
12 years ago
Posted by:
mikehorton
12 years ago
Oops. Forgot to reply back here with what finally worked for me. I ended up with a .cmd file that contained the following.... setup.exe -s -sms -f2c:\setup.log. If I tried to use /f1 it would complain about not being able to find the file and .iss files are automatically called from the parent directory if you use -s anyways.
Thanks for the help everyone.
Thanks for the help everyone.
Posted by:
kingskawn
12 years ago
Posted by:
Sukhdeep420
1 year ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.