/build/static/layout/Breadcrumb_cap_w.png

running scripts via sms?

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

Answers (6)

Posted by: rahvintzu 18 years ago
Orange Senior Belt
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
Posted by: AngelWorks 18 years ago
Senior Yellow Belt
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.
Posted by: rahvintzu 18 years ago
Orange Senior Belt
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.
Posted by: williamp 18 years ago
Orange Belt
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
Posted by: neo2000 18 years ago
Purple Belt
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.
Posted by: brenthunter2005 18 years ago
Fifth Degree Brown Belt
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.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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