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

Complete Guide to Software Packaging and Application Packaging

Here’s a comprehensive, in-depth tutorial covering all your sections and topics with enriched details. 1️⃣ What is a Package? A package is a namespace that organizes a…

Read More

Best & Most Popular 5 Code Editor for VBA programming Language

Visual Basic for Applications (VBA) is an implementation of Microsoft’s event-driven programming language Visual Basic 6, which was declared legacy in 2008, and is an associated integrated…

Read More

Best & Most Popular 5 Code Editor for R programming Language

What is the R programming language and how to work? R is an open-source programming language and is a free software environment for statistical computing. R was…

Read More

List Of Top 14 free Blogging websites in 2021 – I verified

What is Blogging :-A discussion or informational website published on the World Wide Web is called A Blog consisting of discrete, often informal diary-style posts. Posts are typically…

Read More

Top 5 Easy to USE and Best International Money Transfer Platform Online

International payments are still difficult to make without a third-party money transfer provider. Transfer apps offer the ability to send money across the world using different currencies…

Read More

How to Download Free O’Reilly Books?

Rajesh KumarI’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…

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