{"id":1349,"date":"2017-12-04T07:32:03","date_gmt":"2017-12-04T07:32:03","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/?p=1349"},"modified":"2020-01-09T09:28:45","modified_gmt":"2020-01-09T09:28:45","slug":"windows-xp-sp3-installation-question","status":"publish","type":"post","link":"https:\/\/www.devopsschool.com\/blog\/windows-xp-sp3-installation-question\/","title":{"rendered":"Windows XP SP3 installation question&#8230;"},"content":{"rendered":"<p><strong>deployexpert created the topic: Windows XP SP3 installation question&#8230;<\/strong><br \/>\nI need help in suppressing CANCEL button during Windows XP SP3 install.<\/p>\n<p>I&#8217;m using \/quiet \/norestart switches along with the SP3 EXE. Are there any other switches to remove\/suppress CANCEL button during the install?<br \/>\nAny help is greatly appreciated.<\/p>\n<p><strong>applicationPackaging replied the topic: Re: Windows XP SP3 installation question&#8230;<\/strong><br \/>\nRight now i&#8217;m packaging Windows XP SP3 for our SP2 environment and i used AutoIT script to do the job.<\/p>\n<p>Use \/passive \/nobackup \/norestart \/log swicthes as<\/p>\n<p>\/passive will install with a progress bar<br \/>\n\/nobackup will remove the backup for uninstall<br \/>\n\/log will create a log file<\/p>\n<p>Try the following AutoIT script:<\/p>\n<p>;===================================================================================================<br \/>\n;Hides the AutoIT icon<br \/>\nOpt(&#8220;TrayIconHide&#8221;,1)<\/p>\n<p>; 1st section gives the user a warning that the sevice pack install will start<br \/>\n$PID=SplashTextOn(&#8220;Windows XP SP3 Installation&#8221;, &#8220;Installing Microsoft Windows XP Service Pack 3. The installation can take 30 minutes. Please wait until the completion message appears.&#8221;, 450, 85, -1, -1, 4, &#8220;10&#8221;)<br \/>\nSleep(20000)<br \/>\nSplashOff()<br \/>\nProcessWaitClose($PID)<\/p>\n<p>;RUN WINDOWS XP SP3 IN PASSIVE MODE WITH NO RESTART, NO BACKUP AND A LOG FILE<br \/>\nRun ( &#8220;WindowsXP-KB936929-SP3-x86-ENU.exe \/passive \/norestart \/nobackup \/log:c:\\WindowsXP-KB936929-SP3-x86-ENU.log&#8221; )<\/p>\n<p>; WAIT UNTILL SP3 WINDOW IS ACTIVE<br \/>\nWinWaitActive(&#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;)<\/p>\n<p>; SET SP3 WINDOW ACTIVE IF IT DOESN&#8217;T HAVE FOCUS<br \/>\nIf Not WinActive(&#8220;Software Update Installation Wizard&#8221;,&#8221;&#8221;) Then WinActivate(&#8220;Software Update Installation Wizard&#8221;,&#8221;&#8221;)<\/p>\n<p>; HIDE BACK BUTTON<br \/>\nControlHide ( &#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;, 12323 )<\/p>\n<p>; HIDE FINISH BUTTON<br \/>\nControlHide ( &#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;, 12325 )<\/p>\n<p>;CHANGE FOCUS TO HELP BUTTON<br \/>\nControlFocus(&#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;, 9)<\/p>\n<p>; HIDE CANCEL BUTTON<br \/>\nControlHide ( &#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;, 2 )<\/p>\n<p>; WAIT UNTILL SP3 WINDOW IS ACTIVE<br \/>\nWinWaitActive(&#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;)<br \/>\nSend(&#8220;{TAB}&#8221;)<\/p>\n<p>;HIDE HELP BUTTON<br \/>\nControlHide ( &#8220;Software Update Installation Wizard&#8221;, &#8220;&#8221;, 9 )<\/p>\n<p>;===================================================================================================<\/p>\n<p>You can actually change the script according to your requirement and it is easy to use.<\/p>\n<p>Let me know if you need anything.<\/p>\n<p><strong>deployexpert replied the topic: Re: Windows XP SP3 installation question&#8230;<\/strong><br \/>\nI will definitely give it a try.<\/p>\n<p>I&#8217;m aware of AutoIT but never created a script. Let me create an EXE with the above code and install.<\/p>\n<p>Thanks you very much for your solution. I really appreciate it.<\/p>\n<p><strong>deployexpert replied the topic: Re: Windows XP SP3 installation question&#8230;<\/strong><br \/>\nYou still can prevent<\/p>\n<p>You still can prevent shutdown. The following AutoIT code works for Windows XP provided you are using required silent switches:<\/p>\n<p>#NoTrayIcon<\/p>\n<p>$WM_QUERYENDSESSION = 0x0011<br \/>\nGUIRegisterMsg($WM_QUERYENDSESSION, &#8220;Cancel_Shutdown&#8221;)<\/p>\n<p>GUICreate(&#8220;PreventShutdownGUI&#8221;)<br \/>\nGUISetSTate(@SW_HIDE)<\/p>\n<p>While 1<br \/>\nsleep(10)<br \/>\nWEnd<\/p>\n<p>Func Cancel_Shutdown($hWndGUI, $MsgID, $WParam, $LParam)<br \/>\nReturn False<br \/>\nEndFunc<\/p>\n<p>I installed Symantec Endpoint Protection managed client on 250 PCs this way:<\/p>\n<p>#NoTrayIcon<\/p>\n<p>; Exit the script after 30 minutes<br \/>\nAdlibEnable( &#8220;Shutdown_Machine&#8221;, 1800000)<\/p>\n<p>$WM_QUERYENDSESSION = 0x0011<br \/>\nGUIRegisterMsg($WM_QUERYENDSESSION, &#8220;Cancel_Shutdown&#8221;)<\/p>\n<p>GUICreate(&#8220;PreventShutdownGUI&#8221;)<br \/>\nGUISetSTate(@SW_HIDE)<\/p>\n<p>MsgBox (0, &#8220;Symantec Endpoint&#8221;, &#8220;Symantec Endpoint Protection Will be Installed Now&#8221; &#038; @CRLF &#038; &#8220;Please DO NOT SHUTDOWN This Machine&#8221; &#038; @CRLF &#8220;Machine Will Restart When Setup is Finished&#8221;, 10)<br \/>\nRunAs(&#8220;Administrator&#8221;, &#8220;Domain_Name&#8221;, &#8220;Password&#8221;, 4, &#8220;\\\\Server_Name\\Shared_Folder_Name\\Setup.exe&#8221;)<\/p>\n<p>While 1<br \/>\nsleep(10)<br \/>\nWEnd<\/p>\n<p>Func Cancel_Shutdown($hWndGUI, $MsgID, $WParam, $LParam)<br \/>\nReturn False<br \/>\nEndFunc<\/p>\n<p>Func Shutdown_Machine()<br \/>\nExit<br \/>\nEndFunc<\/p>\n<p>It is worth noting that I changed setup.ini file under [Startup] section as follows:<br \/>\nCmdLine=\/l*v &#8220;%TEMP%\\SEP_INST.LOG&#8221;<br \/>\nTo:<br \/>\nCmdLine=\/q<\/p>\n<p>I don&#8217;t need the log file, so that I removed [\/l*v &#8220;%TEMP%\\SEP_INST.LOG&#8221;] switch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>deployexpert created the topic: Windows XP SP3 installation question&#8230; I need help in suppressing CANCEL button during Windows XP SP3 install. I&#8217;m using \/quiet \/norestart switches along with the SP3&#8230; <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[49],"tags":[235],"class_list":["post-1349","post","type-post","status-publish","format-standard","hentry","category-general","tag-installation"],"_links":{"self":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/comments?post=1349"}],"version-history":[{"count":1,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1349\/revisions"}],"predecessor-version":[{"id":1350,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/posts\/1349\/revisions\/1350"}],"wp:attachment":[{"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/media?parent=1349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/categories?post=1349"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.devopsschool.com\/blog\/wp-json\/wp\/v2\/tags?post=1349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}