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:


  


Deploying XP SP3 - Issues

 
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 >> Deploying XP SP3 - Issues Page: [1]
Login
Message << Older Topic   Newer Topic >>
Deploying XP SP3 - Issues - 10/3/2008 5:43:12 PM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
Can somebody assist?

I downloaded the network install version of SP3.

Put it on my SMS 2003 server.

My command string is: WindowsXP-KB936929-SP3-x86-ENU.exe /quiet /warnrestart:600

I'm getting a error of: A failure exit code of 61686 was returned.

I believe that is incorrect syntax.

I'm not using ITMU (don't know how to use it).

Can somebody assist?

Post #: 1
RE: Deploying XP SP3 - Issues - 10/3/2008 7:14:23 PM   
mniehaus


Posts: 218
Score: 11
Joined: 6/4/2001
From: Michael Niehaus
Status: offline
I've not tried the /warnrestart:600 switch (can't find any examples that use it with a service pack), but I would suggest doing this a little differently. Specify a command line like this:

WindowsXP-KB936929-SP3-x86-ENU.exe /quiet /norestart /overwriteoem

Then, set the program to "SMS restarts the computer". It will then display the standard SMS restart dialog, with the site-configured countdown value.

-Michael

(in reply to AMLM Admin)
Post #: 2
RE: Deploying XP SP3 - Issues - 10/5/2008 2:23:15 PM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
How can I throw up a warning or notification window while the SP3 is installing? Or is that asking too much?

(in reply to mniehaus)
Post #: 3
RE: Deploying XP SP3 - Issues - 10/6/2008 12:40:03 AM   
xneilpetersonx

 

Posts: 168
Score: 1
Joined: 7/18/2006
Status: offline
I have not deployed SP3, nor looked at the documentation, but I bet /passive instead of /quiet will give you a progress bar while the install is beeing preformed.

neilp

(in reply to AMLM Admin)
Post #: 4
RE: Deploying XP SP3 - Issues - 10/6/2008 7:17:47 AM   
astrodomine

 

Posts: 25
Score: 0
Joined: 4/18/2007
Status: offline
/passive does give a progress bar , but also gives a cancel button for users which they can accidently click. 

/warnrestart funtion didnt work for me too using SMS. followed the same as suggested above, let SMS restart computer.

(in reply to xneilpetersonx)
Post #: 5
RE: Deploying XP SP3 - Issues - 10/6/2008 9:52:37 AM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
Thanks! I will test those out on my test machines!

My 2nd post, I know some companies, when they push out SMS packages, they are able to display a window like:

"WARNING. Patches are being applied to your machine. You are getting:

Windows XP SP3, etc.

This process can take 30-60 mins. Please save all your work, etc.

If you have any questions, please contact....."

How can I do something like this?

(in reply to astrodomine)
Post #: 6
RE: Deploying XP SP3 - Issues - 10/6/2008 11:13:28 AM   
swipe


Posts: 149
Score: 2
Joined: 2/17/2006
Status: offline
quote:

ORIGINAL: AMLM Admin

Thanks! I will test those out on my test machines!

My 2nd post, I know some companies, when they push out SMS packages, they are able to display a window like:

"WARNING. Patches are being applied to your machine. You are getting:

Windows XP SP3, etc.

This process can take 30-60 mins. Please save all your work, etc.

If you have any questions, please contact....."

How can I do something like this?



If reboots are required for a program, I normally create a hta popup informing the user that an installation is about to take place and put in all the necessary info. The reason I use a hta is because you can embed both vbscript and javascript. For example, I sometimes use some VB script code to check to see if explorer.exe is running (meaning someone is logged on to the PC) and, if not, quit the script and move on to run my programs. If someone is logged on I normally display a countdown timer using some javascript code and also a "close window" button. If you require the code for this send me a PM.

But to create a simple informational message window save this code to a popup.hta file:


<html>
<HEAD>
<TITLE>SP3 Upgrade</TITLE>
<HTA:APPLICATION ID="oMyApp"
   APPLICATIONNAME="SP3 Upgrade"
   BORDER="3"
   CAPTION="yes"
   SHOWINTASKBAR="yes"
   SINGLEINSTANCE="yes"
   SYSMENU="yes"
   #WINDOWSTATE="maximize">

   <script language="javascript" type="text/javascript">
   function RestoreWindowSize()   
   {   
   window.resizeTo(640, 480);
   }
   </script>

  
</HEAD>

<body bgcolor="white" onload="RestoreWindowSize();" >

<p><align="center"><font color="red" size="6" face="Arial">
<strong>
WARNING: Windows XP Service Pack 3 info etc. Please contact....!</strong>
</align></font>
</p>
<br>

<p><align="center"><font size="6" face="Arial">
<strong>
The computer will restart once the installation is complete!
</align></font>
</p>
<br>

</body>
</html>




(in reply to AMLM Admin)
Post #: 7
RE: Deploying XP SP3 - Issues - 10/6/2008 11:35:32 AM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
swipe, PM.

(in reply to swipe)
Post #: 8
RE: Deploying XP SP3 - Issues - 10/6/2008 12:48:57 PM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
Swipe, can you also hit me up with the countdown JS code included with the one you just posted?

(in reply to AMLM Admin)
Post #: 9
RE: Deploying XP SP3 - Issues - 10/7/2008 4:26:10 AM   
swipe


Posts: 149
Score: 2
Joined: 2/17/2006
Status: offline
I was going to PM this but it was too big for a PM so I'll paste here instead. Anyone, please feel free to correct any bad/inefficient coding. For most normal programs that just require a reboot I'll use miniNotify but for stuff that needs lots of informational stuff I use this method:


Firstly, paste this code into notepad and save as XP_SP3_Popup.hta or whatever else you want to call it. Then all you do is create another program under your SP3 SMS package (which I assume you have already done, if you haven't create a Package and a program for your SP3 exe ) and call the XP_SP3_Popup.hta file. Under the Environment tab, set it to run with admin rights but allow the "user to interact with the program" and also set to run "whether user is logged on or not." You then need to go to your Service pack 3 program properties (which I assume you alreday have) and in the Advanced tab under "Run another program first" choose the SP3 package and the XP_SP3_Popup.hta program you just created. I always tick it to run this everytime too. Then advertise the SP3 program which then call the hta program first when it runs.


Here is the code. I've tried to comment the sections the best I can:


<html>
<HEAD>
  <TITLE>SP3 Upgrade</TITLE>
  <HTA:APPLICATION ID="oMyApp"
    APPLICATIONNAME="SP3 Upgrade"
    BORDER="3"
    CAPTION="yes"
    SHOWINTASKBAR="yes"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="maximize">

   
<!--Script to resize window-->

    <script language="javascript" type="text/javascript">
    function RestoreWindowSize()   
    {   
    window.resizeTo(1024, 670);
    }
    </script>

   
<!--CSS to set the text to red for the countdown timer (see right down below for "function countdown"-->
   
<style>
#countdown { position: relative; top: +12px; color: red;}
</style>


<!--VBscript to check if user is logged in. If user is logged in explorer.exe process will be running. If not the message window will quit (by killing the mshta.exe popup window process) and will move on and run the next SMS program in the chain-->
   
<script LANGUAGE="VBScript">
Set objWMI = GetObject("winmgmts:")
Set colProcessList = objWMI.ExecQuery ("Select * from Win32_Process Where Name = 'explorer.exe'")
If colProcessList.Count = 0 Then
Kill_hta_popup
Else
End if

Function Kill_hta_popup

Set oWMI = CreateObject("wBEMScripting.sWBEMLocator")

Set oServer = oWMI.ConnectServer

Set ProcessSet = oServer.InstancesOf("Win32_Process")

For Each oProcess in ProcessSet
    If oProcess.Name = "mshta.exe" then
        oProcess.Terminate
    End if
Next
End Function
</script>
   
</HEAD>

<body bgcolor="white" onload="RestoreWindowSize();" >


<!--Here I call my company logo image file. If you are not using a logo remove this part -->

<p>
<img src="companylogo.gif"
>
</p>



<!-- Seperate lines and paragraphs for text and font/style/colour for the message window -->

<p><align="center"><font color="black" size="5" face="Arial">
<strong>
Windows XP Service Pack 3 is about to install on this PC. This may take up to 90 minutes to complete depending on the age of the computer. Please save your work now before closing this window.</strong>
</align></font>
</p>
<br>

<p><align="center"><font size="5" face="Arial">
<strong>
To begin the installation, you may close this message window now otherwise it will count down from 30 minutes and then the installation will commence. The computer will automatically restart (without warning) once the installation is complete and then you may log back on.</strong>
</align></font>
</p>
<br>

<p><align="center"><font color="red" size="5" face="Arial">
<strong>
Under no circumstances should you attempt to shut down this computer until the process is complete or you risk rendering it in an unusable state. Please do not work on the PC while the update is installing.
</align></font>
</p>


<br>
<p><align="center"><font size="5" face="Arial">
<strong>
Time remaining (min:secs) until XP SP3 installation: </strong><div id="countdown"></div>
<div id="notifier"></div></p>


</align></font>

<!-- Javascript code for countdown timer. Please note the time is set in seconds, unlike the close window timer for the popup window which is in milliseconds-->

<script type="text/javascript">

  function display( notifier, str ) {
    document.getElementById(notifier).innerHTML = str;
  }
   
  function toMinuteAndSecond( x ) {
    return Math.floor(x/60) + ":" + x%60;
  }
   
  function setTimer( remain, actions ) {
    (function countdown() {
       display("countdown", toMinuteAndSecond(remain));       
       actions[remain] && actions[remain]();
       (remain -= 1) >= 0 && setTimeout(arguments.callee, 1000);
    })();
  }

 // Change this setTimer value to set timer. Currently set to 30minutes
 
  setTimer(1800, {
    // Optional things below (commented out) that you can add
    //10: function () { display("notifier", "Just 10 seconds to go"); },
    //5: function () { display("notifier", "5 seconds left");        },
    // 1: function () { display("notifier", "Installation will now begin");       }

  });   

</script>
</strong><br>


<!-- This code will close the window after the time set (in miliseconds). Currently set to 30minutes to match the countdown above. Change this value to increase or decrease timeout. Make sure it mnatches the timeout sepcified in the JS timeout above.-->

<script>
setTimeout("self.close();",18000000)
</script>


<!--Code to insert close window button on the window-->

<BUTTON onclick= 'window.close()'>Close Window</BUTTON>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


</body>
</html>

Now, you asked about another popup to display while the XP Service Pack is running. Well, SMS won't run any other programs while it is currently running a program so I use a little trick. Let me know if you want to know how to do that. It involves using SMSinstaller to create an exe file that spawns a hta popup and then quits the exe but leaves the popup on the screen, allowing SMS to move on a run the next program. I also call another SP3 completed hta popup that is set to run on logon after the final reboot to let the users know it has finished.

I hope this helps. As always, test, test and test before deploying to a production environment.

Swipe

(in reply to AMLM Admin)
Post #: 10
RE: Deploying XP SP3 - Issues - 10/7/2008 5:05:44 AM   
swipe


Posts: 149
Score: 2
Joined: 2/17/2006
Status: offline
Fixed a bug in the script. It wouldn't let me edit my previous post so sorry for the spam:

<html>
<HEAD>
  <TITLE>SP3 Upgrade</TITLE>
  <HTA:APPLICATION ID="oMyApp"
    APPLICATIONNAME="SP3 Upgrade"
    BORDER="3"
    CAPTION="yes"
    SHOWINTASKBAR="yes"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="maximize">

   
<!--Script to resize window-->

    <script language="javascript" type="text/javascript">
    function RestoreWindowSize()   
    {   
    window.resizeTo(1024, 670);
    }
    </script>

   
<!--CSS to set the text to red for the countdown timer (see right down below for "function countdown"-->
   
<style>
#countdown { position: relative; top: +12px; color: red;}
</style>


<!--VBscript to check if user is logged in. If user is logged in explorer.exe process will be running. If not the message window will quit (by killing the mshta.exe popup window process) and will move on and run the next SMS program in the chain-->
   
<script LANGUAGE="VBScript">
Set objWMI = GetObject("winmgmts:")
Set colProcessList = objWMI.ExecQuery ("Select * from Win32_Process Where Name = 'explorer.exe'")
If colProcessList.Count = 0 Then
Kill_hta_popup
Else
End if

Function Kill_hta_popup

Set oWMI = CreateObject("wBEMScripting.sWBEMLocator")

Set oServer = oWMI.ConnectServer

Set ProcessSet = oServer.InstancesOf("Win32_Process")

For Each oProcess in ProcessSet
    If oProcess.Name = "mshta.exe" then
        oProcess.Terminate
    End if
Next
End Function
</script>
   
</HEAD>

<body bgcolor="white" onload="RestoreWindowSize();" >


<!--Here I call my company logo image file. If you are not using a logo remove this part -->

<p>
<img src="companylogo.gif"
>
</p>



<!-- Seperate lines and paragraphs for text and font/style/colour for the message window -->

<p><align="center"><font color="black" size="5" face="Arial">
<strong>
Windows XP Service Pack 3 is about to install on this PC. This may take up to 90 minutes to complete depending on the age of the computer. Please save your work now before closing this window.</strong>
</align></font>
</p>
<br>

<p><align="center"><font size="5" face="Arial">
<strong>
To begin the installation, you may close this message window now otherwise it will count down from 30 minutes and then the installation will commence. The computer will automatically restart (without warning) once the installation is complete and then you may log back on.</strong>
</align></font>
</p>
<br>

<p><align="center"><font color="red" size="5" face="Arial">
<strong>
Under no circumstances should you attempt to shut down this computer until the process is complete or you risk rendering it in an unusable state. Please do not work on the PC while the update is installing.
</align></font>
</p>

<!-- This code will close the window after the time set (in miliseconds). Currently set to 30minutes to match the countdown below. Change this value to increase or decrease timeout. Make sure it matches the timeout sepcified in the JS timeout below.-->

<script>
setTimeout("self.close();",18000000)
</script>

<br>
<p><align="center"><font size="5" face="Arial">
<strong>
Time remaining (min:secs) until XP SP3 installation: </strong><div id="countdown"></div>
<div id="notifier"></div></p>


</align></font>

<!-- Javascript code for countdown timer. Please note the time is set in seconds, unlike the close window timer for the popup window which is in milliseconds-->

<script type="text/javascript">

  function display( notifier, str ) {
    document.getElementById(notifier).innerHTML = str;
  }
   
  function toMinuteAndSecond( x ) {
    return Math.floor(x/60) + ":" + x%60;
  }
   
  function setTimer( remain, actions ) {
    (function countdown() {
       display("countdown", toMinuteAndSecond(remain));       
       actions[remain] && actions[remain]();
       (remain -= 1) >= 0 && setTimeout(arguments.callee, 1000);
    })();
  }

 // Change this setTimer value to set timer. Currently set to 30minutes
 
  setTimer(1800, {
    // Optional things below (commented out) that you can add
    //10: function () { display("notifier", "Just 10 seconds to go"); },
    //5: function () { display("notifier", "5 seconds left");        },
    // 1: function () { display("notifier", "Installation will now begin");       }

  });   

</script>
</strong><br>





<!--Code to insert close window button on the window-->

<BUTTON onclick= 'window.close()'>Close Window</BUTTON>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />


</body>
</html>

(in reply to swipe)
Post #: 11
RE: Deploying XP SP3 - Issues - 10/7/2008 5:58:05 AM   
swipe


Posts: 149
Score: 2
Joined: 2/17/2006
Status: offline
PS: you can delete the last line above </body>:

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

Not sure how that got left in there.

(in reply to swipe)
Post #: 12
RE: Deploying XP SP3 - Issues - 10/10/2008 2:42:37 PM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
swipe, everything seems to be running well, except one thing.

when the countdown is finished, the window remains. it doesn't close. so if the user doesnt manually close the window, the rest of the program wont continue (the actual sp3 install).

thoughts?

edit, sorry for the delayed response. had a busy week, and just now got a chance to try everything out.


< Message edited by AMLM Admin -- 10/10/2008 2:43:06 PM >

(in reply to swipe)
Post #: 13
RE: Deploying XP SP3 - Issues - 10/13/2008 3:28:15 AM  1 votes
swipe


Posts: 149
Score: 2
Joined: 2/17/2006
Status: offline
I think I had one too many 0s on the setTimeout("self.close(). it should be:

setTimeout("self.close();",1800000)

< Message edited by swipe -- 10/13/2008 3:40:25 AM >

(in reply to AMLM Admin)
Post #: 14
RE: Deploying XP SP3 - Issues - 10/13/2008 1:27:11 PM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
sounds good. i'll modify and test again. thanks! i'll update as soon as i find out.

(in reply to swipe)
Post #: 15
RE: Deploying XP SP3 - Issues - 10/21/2008 4:36:32 PM   
AMLM Admin

 

Posts: 79
Score: 1
Joined: 5/21/2007
From: DC
Status: offline
:) Worked perfect!

(in reply to AMLM Admin)
Post #: 16
Page:   [1]
All Forums >> [Management Products] >> Microsoft Systems Management Server >> SMS 2003 >> Deploying XP SP3 - Issues 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.344