SCCM Package Issues
Ok, I am now officially at wit's end. I have created yet another package that will run just fine manually, but when I test it in SCCM 2007 it bombs out. This time I packaged up Text Pad v. 5 using the packaging tips found on this website (http://itninja.com/link/internet-explorer-6-administration-kit-(online)5). I even went so far as to download a trial version of MSI Studio to duplicate everything in the instructions. Nifty tool by the way.
To make a long story short, I tested the following command using the command prompt:
msiexec.exe /i "TextPad 5.msi" ALLUSERS=1 TRANSFORMS="TextPad 5.mst" /qn /l*v %temp%\texpad.log
It ran perfectly. All giddy with excitement, I created a task sequence in SCCM 2007 with the exact same command line. I ran it, the task sequence executed as it should have. I even saw the progress meter move...everything looked like it ran correctly. NOT!
Nothing was installed, no log files were generated...nothing but fireworks. When they burned out, there was no trace that I had done anything!
The same thing happened with Visual Studio 2008 as well.
What am I doing wrong? I have tried virtually every combination possible to get the install to run. CMD and BAT files, modifying the command line, creating a basic package, crossing my eyes, etc., nothing seems to work in SCCM.
I am very open to other ideas right now if anyone has any.
Thanks a bunch :)
To make a long story short, I tested the following command using the command prompt:
It ran perfectly. All giddy with excitement, I created a task sequence in SCCM 2007 with the exact same command line. I ran it, the task sequence executed as it should have. I even saw the progress meter move...everything looked like it ran correctly. NOT!
Nothing was installed, no log files were generated...nothing but fireworks. When they burned out, there was no trace that I had done anything!
The same thing happened with Visual Studio 2008 as well.
What am I doing wrong? I have tried virtually every combination possible to get the install to run. CMD and BAT files, modifying the command line, creating a basic package, crossing my eyes, etc., nothing seems to work in SCCM.
I am very open to other ideas right now if anyone has any.
Thanks a bunch :)
0 Comments
[ + ] Show comments
Answers (23)
Please log in to answer
Posted by:
kardock
13 years ago
Posted by:
bearden3
13 years ago
Posted by:
mstarks67
13 years ago
I tried ensuring the full and correct path was in the command line with no luck.
I removed the /qn switch...again, nothing. The package ran, then vanished. One thing stuck out though...I was not prompted for and responses even though I made sure interaction was allowed in SCCM.
Both tries ran as expected when performing them manually. In SCCM, they mimicked a good install but neither one installed anything.
I did find the following in a log file....
The task sequence execution engine successfully completed the action (Text Pad) in the group () with exit code 0
Action output: =======================[ smsswd.exe ] =======================
PackageID = 'MAD00153'
BaseVar = ', ContinueOnError='
SwdAction = '0001'
WinHttp credentials set
Retrying download...
Http result: 405
SendResourceRequest() failed with 0x80004005
WinHttp credentials set
Retrying download...
Http result: 405
SendResourceRequest() failed with 0x80004005
Tried all the available http based locations. SMB based locations will be attempted now.
Successfully connected to "\\revimage.revenue.wi.gov\SMSPKGD$\MAD00153"
Resolved source to 'C:\_SMSTaskSequence\Packages\MAD00153'
Working dir 'C:\_SMSTaskSequence\Packages\MAD00153'
Executing command line: Run command line
C:\_SMSTaskSequence\Packages\MAD00153>C:\_SMSTaskSequence\Packages\MAD00153\msiexec.exe /i "TextPad 5.msi" ALLUSERS=1 TRANSFORMS="TextPad 5.mst" /qn /l*v C:\Windows\TEMP\texpad.log.
I removed the /qn switch...again, nothing. The package ran, then vanished. One thing stuck out though...I was not prompted for and responses even though I made sure interaction was allowed in SCCM.
Both tries ran as expected when performing them manually. In SCCM, they mimicked a good install but neither one installed anything.
I did find the following in a log file....
The task sequence execution engine successfully completed the action (Text Pad) in the group () with exit code 0
Action output: =======================[ smsswd.exe ] =======================
PackageID = 'MAD00153'
BaseVar = ', ContinueOnError='
SwdAction = '0001'
WinHttp credentials set
Retrying download...
Http result: 405
SendResourceRequest() failed with 0x80004005
WinHttp credentials set
Retrying download...
Http result: 405
SendResourceRequest() failed with 0x80004005
Tried all the available http based locations. SMB based locations will be attempted now.
Successfully connected to "\\revimage.revenue.wi.gov\SMSPKGD$\MAD00153"
Resolved source to 'C:\_SMSTaskSequence\Packages\MAD00153'
Working dir 'C:\_SMSTaskSequence\Packages\MAD00153'
Executing command line: Run command line
C:\_SMSTaskSequence\Packages\MAD00153>C:\_SMSTaskSequence\Packages\MAD00153\msiexec.exe /i "TextPad 5.msi" ALLUSERS=1 TRANSFORMS="TextPad 5.mst" /qn /l*v C:\Windows\TEMP\texpad.log.
Posted by:
michaelnowell
13 years ago
Posted by:
anonymous_9363
13 years ago
Why a Task Sequence and not a Package? TextPad is one MSI, it's not like you have to run anything before or afterwards but, even if you did, you can create dependencies using the Package/Program route. Just asking...
Also, FFR, there is a dedicated SMS/SCCM forum on AppDeploy.
Also, FFR, there is a dedicated SMS/SCCM forum on AppDeploy.
Posted by:
mePeter
13 years ago
Posted by:
langa100
13 years ago
As VBScab mention not sure why you are using a task sequence ??? If you create this in a SCCM Package I can't see any problems with the install. As to your DP's I can see from the log file that the task is being found at \\servername\SMSPKGD$\MAD0013 have you checked on the machine that this is copied over to the working dir C:\_smsTaskSequence\packages\mad0013 ????? Also can you run the command line manually from this dir. If so I have had some issues in the past with Task Sequence but only when there was a popup from the application or some user intervention needed but even using the /qn switch it caused problems.
Posted by:
anonymous_9363
13 years ago
Posted by:
pjgeutjens
13 years ago
even though I made sure interaction was allowed in SCCM
As far as I know you CAN NOT run programs that have the 'local interaction allowed' flag set in an SCCM task sequence...
Even worse, if you first indicate a program in a task sequence, and then change this setting for the program, I've seen SCCM just quietly 'drop through' to the next viable program.
PJ
Posted by:
mstarks67
13 years ago
Good question,
We are creating task sequences for all of our software installs. Due to the large variety of different image builds we have, it is easier to copy existing task sequences into new image builds. Utilizing task sequences just makes it easier. We do not advertise many packages to our users unless they are third-party updates. It is much easier to chain sequences together in a task sequence as well.
langa100,
with regards to the downloaded installations, they run correctly using the command line from the C:\_smsTaskSequence folder. This is what baffles me.
When the sequence is executed, everything looks and runs correctly but nothing gets installed. There is no log file generated for reference either. The maunal install using the cached files installs correctly including the log files.
We are creating task sequences for all of our software installs. Due to the large variety of different image builds we have, it is easier to copy existing task sequences into new image builds. Utilizing task sequences just makes it easier. We do not advertise many packages to our users unless they are third-party updates. It is much easier to chain sequences together in a task sequence as well.
langa100,
with regards to the downloaded installations, they run correctly using the command line from the C:\_smsTaskSequence folder. This is what baffles me.
When the sequence is executed, everything looks and runs correctly but nothing gets installed. There is no log file generated for reference either. The maunal install using the cached files installs correctly including the log files.
Posted by:
mstarks67
13 years ago
Posted by:
admaai
13 years ago
Posted by:
langa100
13 years ago
Posted by:
srini
13 years ago
Executing command line: Run command line
C:\_SMSTaskSequence\Packages\MAD00153>C:\_SMSTaskSequence\Packages\MAD00153\msiexec.exe /i "TextPad 5.msi" ALLUSERS=1 TRANSFORMS="TextPad 5.mst" /qn /l*v C:\Windows\TEMP\texpad.log.
msiexec.exe location is system32 and in above log it is being executed from C:\_SMSTaskSequence\Packages\MAD00153\msiexec.exe which might be an issue. copy paste above cmd line with same pth and see how it goes.
C:\_SMSTaskSequence\Packages\MAD00153>C:\_SMSTaskSequence\Packages\MAD00153\msiexec.exe /i "TextPad 5.msi" ALLUSERS=1 TRANSFORMS="TextPad 5.mst" /qn /l*v C:\Windows\TEMP\texpad.log.
msiexec.exe location is system32 and in above log it is being executed from C:\_SMSTaskSequence\Packages\MAD00153\msiexec.exe which might be an issue. copy paste above cmd line with same pth and see how it goes.
Posted by:
mstarks67
13 years ago
I did. My last test was to create a batch file and run that from the command line. In the batch file was the following line:
msiexec.exe /i "TextPad 5.msi" TRANSFORMS="TextPad 5.mst" /qn /l*v %temp%\texpad.log
I ran this setup as a package and as a task sequence. Both appeared to run correctly and success was recorded in the log files. The installation still failed. I went to the cached folder for SCCM on the target machine and ran the batch file manually and Text Pad was installed without any problems.
I am starting to think that this problem has something to do with permission settings. I know it is something very simple, but that "something" is eluding me. I can execute the batch file properly but the SCCM execution fails...very strange.
msiexec.exe /i "TextPad 5.msi" TRANSFORMS="TextPad 5.mst" /qn /l*v %temp%\texpad.log
I ran this setup as a package and as a task sequence. Both appeared to run correctly and success was recorded in the log files. The installation still failed. I went to the cached folder for SCCM on the target machine and ran the batch file manually and Text Pad was installed without any problems.
I am starting to think that this problem has something to do with permission settings. I know it is something very simple, but that "something" is eluding me. I can execute the batch file properly but the SCCM execution fails...very strange.
Posted by:
anonymous_9363
13 years ago
Posted by:
mstarks67
13 years ago
Good News everyone...
I have solved the problem. I decided to eliminate the TRANSFORM installation completely. I ended up modifying the textpad.msi file directly, in particular, incorporating the registry key related to our license into the .msi file. I then created a new software package from the definition and voila'. I was able to successfully push the install out using SCCM and it installed perfectly. Something about TRANSFORM installs doesn't seen to sit well with SCCM.
Thanks to everyone for the great tips and assistance. I will probably be back...
Mike
I have solved the problem. I decided to eliminate the TRANSFORM installation completely. I ended up modifying the textpad.msi file directly, in particular, incorporating the registry key related to our license into the .msi file. I then created a new software package from the definition and voila'. I was able to successfully push the install out using SCCM and it installed perfectly. Something about TRANSFORM installs doesn't seen to sit well with SCCM.
Thanks to everyone for the great tips and assistance. I will probably be back...
Mike
Comments:
-
SCCM has no problem with transforms. VBSCAB is correct in this is no job for a task sequence. One problem you were probably having is running a per-user installation with admin rights. This runs a a local system account and has no access to any users profiles including any logged in user. It's generally not a good idea to modify vendor MSIs as many here will attest. An MST is almost always a safer method. At least you got it worked out though. - pmarshbu 12 years ago
-
I second and third about transforms. SCCM has no issue with them. When I have to use a task sequence in a program I create the program under the package then I use the Install Software component in the TS. Also, you don't have to do msiexec /i blah.msi TRANSFORMS=blah.mst /qb. I just point it to the msi file, add the TRANSFORMS=blah.mst then leave it. CM adds the other stuff for you. Hope this made sense. - Estes 12 years ago
Posted by:
snootworks
13 years ago
I may be out in left field here, but did you try...
a) using explicit paths and wrapping it in quotes - for example, in your command line use:
b) simply removing the spaces from your msi and mst filenames?
a) using explicit paths and wrapping it in quotes - for example, in your command line use:
msiexec.exe /i "C:\_SMSTaskSequence\Packages\MAD00153\TextPad 5.msi ALLUSERS=1 TRANSFORMS=C:\_SMSTaskSequence\Packages\MAD00153\TextPad 5.mst /qn /l*v C:\Windows\TEMP\texpad.log"
b) simply removing the spaces from your msi and mst filenames?
Posted by:
anonymous_9363
13 years ago
Posted by:
snootworks
13 years 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.