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?
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)
Please log in to answer
Posted by:
rahvintzu
18 years ago
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
Posted by:
rahvintzu
18 years ago
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.
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
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
Hope this is helpful to you. I collect points, hint hint....
Regards, William
Posted by:
neo2000
18 years ago
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.
* 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
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.