mr-es335 Posted 5 hours ago Posted 5 hours ago (edited) Good day, I have 4 installation scripts - which are executed "back-to-back". All scripts are nearly identical - except for the application that is being uninstalled at that particular time. All 4 installations terminate with a "Finish" button that requires a "wait time" to be enabled. Some time ago Resiak1811 provided a "solution" to my query which, at first , appeared to work, but I am now having some "issues"!?! Here is the combined script: Spoiler expandcollapse popup; ----------------------------------------------- ; 3/20/2026 2:10:02 PM ; ----------------------------------------------- #include "ExtMsgBox.au3" ; ----------------------------------------------- Opt("MustDeclareVars", 1) ; ----------------------------------------------- ;~ Global $sRootPath = "D:\App_Install\Digital_Audio\2_GR5\" ; --------------------- Global $iEMBWidth = 1500 Global $iMsgDelay = 2 Global $iFuncPause = 200 ; --------------------- Global $sUninstallPathGR5 = "C:\ProgramData\{DA31E3B5-AD7E-4759-A162-75CF964B70AC}\Setup.exe REMOVE = True MODIFY = FALSE" Global $sUninstallPathRammfire = "C:\ProgramData\{9608D7A3-DD22-4121-8066-31C4251301D0}\Rammfire Setup PC.exe REMOVE=TRUE MODIFY=FALSE" Global $sUninstallPathReflektor = "C:\ProgramData\{257F5A78-3D55-4131-B8C1-9019C078130A}\Reflektor Setup PC.exe REMOVE=TRUE MODIFY=FALSE" Global $sUninstallPathTraktors12 = "C:\ProgramData\{A317ECCB-5477-47A6-B8C5-A4FFB482B48A}\Traktors 12 Setup PC.exe REMOVE=TRUE MODIFY=FALSE" ; ----------------------------------------------- Remove_NIApps() ; ----------------------------------------------- Func Remove_NIApps() Remove_GR5() Remove_Rammfire() Remove_Reflektor() Remove_Traktors12() EndFunc ;==>Remove_NIApps ; ----------------------------------------------- Func Remove_GR5() AutoItSetOption("MouseCoordMode", 0) ; ----------------------------------------------- Local $sSrcPath = $sUninstallPathGR5 Local $sMsg = "Native Instruments Guitar Rig 5 uninstallation...is now completed!" ; --------------------- ; 1st dialog > Welcome... Run($sSrcPath) WinWait("Native Instruments Guitar Rig 5 - InstallAware Wizard", "") WinActivate("Native Instruments Guitar Rig 5 - InstallAware Wizard", "") ControlClick("Native Instruments Guitar Rig 5 - InstallAware Wizard", "", "&Next >") ; --------------------- ; 2nd dialog > Begin removal... > Completing... ConsoleWrite("Just before Do|Loop..." & @CRLF) Do Sleep(100) Until ControlCommand("Native Instruments Guitar Rig 5 - InstallAware Wizard", "Finish", "[CLASS:TButton; INSTANCE:2]", "IsEnabled") ; --------------------- ControlClick("Native Instruments Guitar Rig 5 - InstallAware Wizard", "", "TButton2") ; ----------------------------------------------- ; Confirm uninstallation Sleep($iFuncPause) ; --------------------- _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth) _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay) EndFunc ;==>Remove_GR5 ; ----------------------------------------------- Func Remove_Rammfire() AutoItSetOption("MouseCoordMode", 0) ; ----------------------------------------------- Local $sSrcPath = $sUninstallPathRammfire Local $sMsg = "Native Instruments Rammfire uninstallation...is now completed!" ; --------------------- ; 1st dialog > Welcome... Run($sSrcPath) WinWait("Native Instruments Rammfire - InstallAware Wizard", "") WinActivate("Native Instruments Rammfire - InstallAware Wizard", "") ControlClick("Native Instruments Rammfire - InstallAware Wizard", "", "&Next >") ; --------------------- ; 2nd dialog > Begin removal... > Completing... Do Sleep(100) Until ControlCommand("Native Instruments Rammfire - InstallAware Wizard", "Finish", "[CLASS:TButton; INSTANCE:2]", "IsEnabled") ; --------------------- ControlClick("Native Instruments Rammfire - InstallAware Wizard", "", "TButton2") ; ----------------------------------------------- ; Confirm uninstallation Sleep($iFuncPause) ; --------------------- _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth) _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay) EndFunc ;==>Remove_Rammfire ; ----------------------------------------------- Func Remove_Reflektor() AutoItSetOption("MouseCoordMode", 0) ; ----------------------------------------------- Local $sSrcPath = $sUninstallPathReflektor Local $sMsg = "Native Instruments Reflektor uninstallation...is now completed!" ; --------------------- ; 1st dialog > Welcome... Run($sSrcPath) WinWait("Native Instruments Reflektor - InstallAware Wizard", "") WinActivate("Native Instruments Reflektor - InstallAware Wizard", "") ControlClick("Native Instruments Reflektor - InstallAware Wizard", "", "&Next >") ; --------------------- ; 2nd dialog > Begin removal... > Completing... Do Sleep(100) Until ControlCommand("Native Instruments Reflektor - InstallAware Wizard", "Finish", "[CLASS:TButton; INSTANCE:2]", "IsEnabled") ; --------------------- ControlClick("Native Instruments Reflektor - InstallAware Wizard", "", "TButton2") ; ----------------------------------------------- ; Confirm uninstallation Sleep($iFuncPause) ; --------------------- _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth) _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay) EndFunc ;==>Remove_Reflektor ; ----------------------------------------------- Func Remove_Traktors12() AutoItSetOption("MouseCoordMode", 0) ; ----------------------------------------------- Local $sSrcPath = $sUninstallPathTraktors12 Local $sMsg = "Native Instruments Traktors 12 uninstallation...is now completed!" ; --------------------- ; 1st dialog > Welcome... Run($sSrcPath) WinWait("Native Instruments Traktors 12 - InstallAware Wizard", "") WinActivate("Native Instruments Traktors 12 - InstallAware Wizard", "") ControlClick("Native Instruments Traktors 12 - InstallAware Wizard", "", "&Next >") ; --------------------- ; 2nd dialog > Begin removal... > Completing... Do Sleep(100) Until ControlCommand("Native Instruments Traktors 12 - InstallAware Wizard", "Finish", "[CLASS:TButton; INSTANCE:2]", "IsEnabled") ; --------------------- ControlClick("Native Instruments Traktors 12 - InstallAware Wizard", "", "TButton2") ; ----------------------------------------------- ; Confirm uninstallation Sleep($iFuncPause) ; --------------------- _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth) _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay) EndFunc ;==>Remove_Traktors12 ; ----------------------------------------------- My issue is with regards to the first uninstall - which is also the longest in terms of time, has the final dialog NOT exiting when expected, or the exit of this dialog is intermittent! As can be observed all scripts as noted previously, are nearly identical. My question is: "Why is the first dialog not exiting when all 3 remaining dialogs do? Also, If I execute a 2nd install|uninstall, the the first dialog exists as expected?? Any assistance here would be greatly appreciated. Edited 5 hours ago by mr-es335 mr-es335 Sentinel Music Studios
ioa747 Posted 2 hours ago Posted 2 hours ago (edited) I would ask why does the first one have spaces in REMOVE = True MODIFY = FALSE and the others don't? Edited 2 hours ago by ioa747 I know that I know nothing
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now