Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

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

4 Open Source Alternatives to Slack for Team Chat: IRC, Let’s Chat, Mattermost, and Rocket.Chat

If you want Slack-like team communication with more control, these four open source options are a practical starting point. This guide compares their strengths, trade-offs, and how to run a short technical pilot.

Read More

jstack Utility Deep Dive: JVM Thread Dumps, Deadlocks, and Mixed Stacks

This guide explains how to use jstack to diagnose JVM hangs and deadlocks, including forced dumps, core-file analysis, and mixed Java/native stack traces. It also clarifies where jcmd fits in modern JDK 8+ troubleshooting guidance.

Read More

Open Source Scanning Software: Evaluate Legacy Tools and Build a Modern SCA Workflow

The original post listed several tool names but no implementation guidance. This revised guide explains what open source scanning means in DevSecOps, how to interpret those legacy names, and how to implement a practical CI scanning workflow.

Read More

Lyca Mobile USSD Shortcuts: Check Balance and Data Balance Quickly

Use these Lyca Mobile USSD shortcuts to check your prepaid balance and remaining data in seconds. This updated reference includes quick steps, a workflow diagram, and troubleshooting guidance.

Read More

Single Sign-On Implementations: Practical Comparison and Evaluation Guide

This guide expands a short 2015 link list of SSO tools into a practical DevOps reference. You will learn how SSO flows work, how to compare implementations, and how to validate integrations with real commands.

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