MYHOSPITALNOW.COM

Find Trusted Doctors & Hospitals

Discover healthcare providers, compare hospitals, and explore treatment options worldwide.

Free Treatment Quotes • Doctor Search • Hospital Comparison

Find Healthcare Options

www.myhospitalnow.com

Windows XP SP3 installation question…

deployexpert created the topic: Windows XP SP3 installation question…
I need help in suppressing CANCEL button during Windows XP SP3 install.

I’m using /quiet /norestart switches along with the SP3 EXE. Are there any other switches to remove/suppress CANCEL button during the install?
Any help is greatly appreciated.

applicationPackaging replied the topic: Re: Windows XP SP3 installation question…
Right now i’m packaging Windows XP SP3 for our SP2 environment and i used AutoIT script to do the job.

Use /passive /nobackup /norestart /log swicthes as

/passive will install with a progress bar
/nobackup will remove the backup for uninstall
/log will create a log file

Try the following AutoIT script:

;===================================================================================================
;Hides the AutoIT icon
Opt(“TrayIconHide”,1)

; 1st section gives the user a warning that the sevice pack install will start
$PID=SplashTextOn(“Windows XP SP3 Installation”, “Installing Microsoft Windows XP Service Pack 3. The installation can take 30 minutes. Please wait until the completion message appears.”, 450, 85, -1, -1, 4, “10”)
Sleep(20000)
SplashOff()
ProcessWaitClose($PID)

;RUN WINDOWS XP SP3 IN PASSIVE MODE WITH NO RESTART, NO BACKUP AND A LOG FILE
Run ( “WindowsXP-KB936929-SP3-x86-ENU.exe /passive /norestart /nobackup /log:c:\WindowsXP-KB936929-SP3-x86-ENU.log” )

; WAIT UNTILL SP3 WINDOW IS ACTIVE
WinWaitActive(“Software Update Installation Wizard”, “”)

; SET SP3 WINDOW ACTIVE IF IT DOESN’T HAVE FOCUS
If Not WinActive(“Software Update Installation Wizard”,””) Then WinActivate(“Software Update Installation Wizard”,””)

; HIDE BACK BUTTON
ControlHide ( “Software Update Installation Wizard”, “”, 12323 )

; HIDE FINISH BUTTON
ControlHide ( “Software Update Installation Wizard”, “”, 12325 )

;CHANGE FOCUS TO HELP BUTTON
ControlFocus(“Software Update Installation Wizard”, “”, 9)

; HIDE CANCEL BUTTON
ControlHide ( “Software Update Installation Wizard”, “”, 2 )

; WAIT UNTILL SP3 WINDOW IS ACTIVE
WinWaitActive(“Software Update Installation Wizard”, “”)
Send(“{TAB}”)

;HIDE HELP BUTTON
ControlHide ( “Software Update Installation Wizard”, “”, 9 )

;===================================================================================================

You can actually change the script according to your requirement and it is easy to use.

Let me know if you need anything.

deployexpert replied the topic: Re: Windows XP SP3 installation question…
I will definitely give it a try.

I’m aware of AutoIT but never created a script. Let me create an EXE with the above code and install.

Thanks you very much for your solution. I really appreciate it.

deployexpert replied the topic: Re: Windows XP SP3 installation question…
You still can prevent

You still can prevent shutdown. The following AutoIT code works for Windows XP provided you are using required silent switches:

#NoTrayIcon

$WM_QUERYENDSESSION = 0x0011
GUIRegisterMsg($WM_QUERYENDSESSION, “Cancel_Shutdown”)

GUICreate(“PreventShutdownGUI”)
GUISetSTate(@SW_HIDE)

While 1
sleep(10)
WEnd

Func Cancel_Shutdown($hWndGUI, $MsgID, $WParam, $LParam)
Return False
EndFunc

I installed Symantec Endpoint Protection managed client on 250 PCs this way:

#NoTrayIcon

; Exit the script after 30 minutes
AdlibEnable( “Shutdown_Machine”, 1800000)

$WM_QUERYENDSESSION = 0x0011
GUIRegisterMsg($WM_QUERYENDSESSION, “Cancel_Shutdown”)

GUICreate(“PreventShutdownGUI”)
GUISetSTate(@SW_HIDE)

MsgBox (0, “Symantec Endpoint”, “Symantec Endpoint Protection Will be Installed Now” & @CRLF & “Please DO NOT SHUTDOWN This Machine” & @CRLF “Machine Will Restart When Setup is Finished”, 10)
RunAs(“Administrator”, “Domain_Name”, “Password”, 4, “\\Server_Name\Shared_Folder_Name\Setup.exe”)

While 1
sleep(10)
WEnd

Func Cancel_Shutdown($hWndGUI, $MsgID, $WParam, $LParam)
Return False
EndFunc

Func Shutdown_Machine()
Exit
EndFunc

It is worth noting that I changed setup.ini file under [Startup] section as follows:
CmdLine=/l*v “%TEMP%\SEP_INST.LOG”
To:
CmdLine=/q

I don’t need the log file, so that I removed [/l*v “%TEMP%\SEP_INST.LOG”] switch.

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
I'm Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms. I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.

Related Posts

Datadog Tutorials: How to Monitor Apache using Datadog in Windows

To monitor Apache on Windows with Datadog, you expose Apache's mod_status page on localhost, then point the Datadog Agent's built-in Apache check at http://localhost/server-status?auto. The steps above…

Read More

How to install Kapitan in Windows using wsl?

Kapitan is a Python-based configuration management tool, and on Windows it runs best inside the Windows Subsystem for Linux (WSL). This guide fills in the commands the…

Read More

Windows Troubleshooting: Administrator Guide

To find which ports are in use on Windows, use netstat -ano in Command Prompt, Get-NetTCPConnection and Get-NetUDPEndpoint in PowerShell, or the graphical tools Resource Monitor and…

Read More

Openshift: How to update openshift with authentication of registry.redhat.io

An OpenShift cluster can only pull images from registry.redhat.io when its global pull secret, pull-secret in the openshift-config namespace, holds valid Red Hat credentials. The screenshots above…

Read More

Kubernetes: Pull an Image from a Private Registry using Yaml and Helm File

Kubernetes pulls images from a private registry using a kubernetes.io/dockerconfigjson Secret. A Pod references that Secret through imagePullSecrets, either directly or through its ServiceAccount. This page shows…

Read More

How to Install and Configure pre-commit on macOS, Windows, and Linux: Complete Step-by-Step Guide

SEO Title: How to Install and Configure pre-commit on Mac, Windows & Linux (2026) Meta Description: Learn how to install and configure pre-commit Git hooks on macOS,…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
0
Would love your thoughts, please comment.x
()
x