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.
- Best AI tools for Software Engineers - November 4, 2024
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024