I have to admit I know just the basics for SMS, but I can't figure this one out. I wrote a big long script to uninstall Creative Suite 2 from a PC in vbscript. Tested it on a single machine and it works just fine.

In SMS I went and created a new program called uninstall - in environment I said wscript removecs2.vbs - then I disabled the advertisement to install it and created a new advertisement to uninstall it.

However it never really executes.

In execmgr.log I get errors like,

<![LOG[Successfully raised SoftDistWaitingContentEvent event for program Uninstall]LOG]!><time="12:34:38.976+480" date="01-18-2006" component="execmgr" context="" type="1" thread="2408" file="executionrequest.cpp:1871">
<![LOG[Execution Request for program Uninstall state change from NotExist to WaitingContent]LOG]!><time="12:34:38.976+480" date="01-18-2006" component="execmgr" context="" type="1" thread="2408" file="executionrequest.cpp:372">
<![LOG[ContentAvailable ignoring update with no DPs for content request ID {B40755A2-4C46-42EB-8D3D-C0FBB6BAF877}]LOG]!><time="12:34:39.065+480" date="01-18-2006" component="execmgr" context="" type="2" thread="3252" file="execmgr.cpp:1397">

Any suggestions? Or is what I'm doing impossible?
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
ORIGINAL: AngelWorks

In SMS I went and created a new program called uninstall - in environment I said wscript removecs2.vbs - then I disabled the advertisement to install it and created a new advertisement to uninstall it.




In the environment? what do u mean here? command line field (pacakge->program)
You then say you disabled the advertisment ... which one? if its ur uninstall script advertisment then this means it cant run.
Isnt this just a script, why are u trying to uninstall the script? Did you package the script to be a full program?
Can you please re write your setup. Thx
Answered 01/18/2006 by: rahvintzu
Orange Senior Belt

Please log in to comment
0
I put the wscript command in the environment tab for the install program. The advertisement I disabled was the install advertisement for CS2. Then I made an uninstall advertisement and linked it to the new uninstall program.
Answered 01/19/2006 by: AngelWorks
Senior Yellow Belt

Please log in to comment
0
I dont really understand this enivronment tab
My program environement tab has options for install behaviour, logged in not logged in... use unc path etc.
Norm i specify the call to the script in the Program (General Tab), Command Line Attribute.
Then i simply browse to my script.
Maybe ur doing something tricky that im not aware of.
Answered 01/19/2006 by: rahvintzu
Orange Senior Belt

Please log in to comment
0
ORIGINAL: AngelWorks
<![LOG[ContentAvailable ignoring update with no DPs for content request ID {B40755A2-4C46-42EB-8D3D-C0FBB6BAF877}]LOG]!>


Log entry refers to distribution points ... did you Manage Distribution Points with your new program? (Right click on the package, sellect All Tasks)

Also, never call a vbscript with wscript in an SMS job if there is any chance that the job will be run with no user logged in. Use cscript instead. Why? Because if wscript throws up a MessageBox and nobody is logged in, your SMS job will, for all intents and purposes, hang. cscript will output such stuff to a console which does not need to actually exist, unlike with wscript.

Hope this is helpful to you. I collect points, hint hint....

Regards, William
Answered 01/24/2006 by: williamp
Orange Belt

Please log in to comment
0
WilliamP, i was not aware of that one.. Thanks. But; as AngelWorks said, he/she uses SMS to deploy the packages. In SMS, you can set the package to run:
* Whether or not a user is logged on;
* When no user is logged on
* Only when a user is logged on.

So using wscript shouldn't be a problem.

Angelworks, have you tried simply putting wscript (or, like WilliamP said, cscript) "packagename.msi" in the commandline of the actual software in SMS..? So in SMS, you would have:
created a package,
under the package there would be a software,
with commandline wscript "packagename.MSI" (optional switches like ALLUSERS=1 or /QB)

You used the environment tab to tell SMS to run another package before the new package..? You may need to re-advertise your advertisement as well.
Answered 02/09/2006 by: neo2000
Purple Belt

Please log in to comment
0
I think thats the issue; AngelWorks hasn't created a MSI package. AngelWorks has created a vbscript that will uninstall the CS2 application using only a vbscript.
Answered 02/10/2006 by: brenthunter2005
Fifth Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity