myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Anyone know how to create a Custom MIF in VB??

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Anyone know how to create a Custom MIF in VB?? Page: [1]
Login
Message << Older Topic   Newer Topic >>
Anyone know how to create a Custom MIF in VB?? - 5/6/2008 2:20:05 PM   
msmith877

 

Posts: 42
Score: 0
Joined: 12/6/2006
Status: offline
I have a client that is testing upgrading their SMS 2003 SP1 clients to SP3 using software distribution. They are advertising a VB script that calls CCMSETUP with the /USERONLY switch and some code that increases the cache size. (Their method is not my idea and I am powerless to change it). As part of their testing they try to 'break' the install by logging off or shutting down the workstation during the install. Their issue is that receive exit code=0 (success) even when the upgrade fails. They want better status of the upgrade. The only idea I have (besides changing their method) is to add code to create a custom MIF file to their VB script. I am not sure how to do this. Anyone know how to do this or have a better suggestion??? Thanks!!
Post #: 1
RE: Anyone know how to create a Custom MIF in VB?? - 5/6/2008 8:48:10 PM   
skissinger


Posts: 1857
Score: 123
Joined: 9/13/2001
From: Sherry Kissinger
Status: offline
I'm going to guess that the return code of 0 is coming from the "I successfully launched the vbscript, but I'm not going to tell you how successful the actual install inside of the vbscript went".

In the vbscript, try something like this:

quote:

On Error Resume Next
Set sho = Wscript.CreateObject("Wscript.Shell")
strcmd = "whatever their command line is for ccmsetup + switches"
intretval = sho.run(strCmd,0,True)
if intretval = 3010 or 0 then
'Their other code here for increasing Cache size--
'why they don't put it on the ccmsetup line neither of us know
end if
wscript.quit(IntretVal)


_____________________________

mofmaster@smsexpert.com (version 2007) | http://www.smsexpert.com | http://www.sccmexpert.com
Microsoft MVP - ConfigMgr

(in reply to msmith877)
Post #: 2
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Anyone know how to create a Custom MIF in VB?? Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.282