Anyone know how to create a Custom MIF in VB?? (Full Version)

All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003



Message


msmith877 -> Anyone know how to create a Custom MIF in VB?? (5/6/2008 2:20:05 PM)

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!!




skissinger -> RE: Anyone know how to create a Custom MIF in VB?? (5/6/2008 8:48:10 PM)

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)




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.9375