Jump to content

Recommended Posts

Posted (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
; -----------------------------------------------
; 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 by mr-es335
Posted

ioa747,

Thanks for the new pairs of eyes [....to scan the overall text...I do hoe that this makes sense?

After updating the script, the issues still exists.

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"

I am not all sure what to do next. As I noted, If I repeat the entire process, the dialog then closes. However, on the first execution, the dialog often does not exit...and is therfore, rather intermittent!!

Posted

iao747,

Yes in Remove_GR5().

I have added: Global $iTimeOut = 250 ...and... replaced all of the Sleep(100) ...with... Sleep($iTimeOut)

Increasing the $iTimeOut from 100 to 250 seems to have helped.

I am also assuming that a WinExists() may be appropriate here.

 

Posted (edited)

Hello,

So what of this?

Spoiler
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...
    Do
        Sleep($iTimeOut)
    Until ControlCommand("Native Instruments Guitar Rig 5 - InstallAware Wizard", "Finish", "[CLASS:TButton; INSTANCE:2]", "IsEnabled")
    ; ---------------------
    ControlClick("Native Instruments Guitar Rig 5 - InstallAware Wizard", "", "TButton2")
    ; -----------------------------------------------
    If WinExists("[CLASS:TPoolTemplate]") Then
        ConsoleWrite("Window exists" & @CRLF)
        WinActivate("[CLASS:TPoolTemplate]")
        Sleep(100)
        Send("{ENTER}")
    Else
        ConsoleWrite("Window does not exist" & @CRLF)
    EndIf
    ; -----------------------------------------------
    ; Confirm uninstallation
    Sleep($iFuncPause)
    ; ---------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay)
EndFunc   ;==>Remove_GR5
; -----------------------------------------------

 

The real question here is..."Is why is the Do|Loop not working as expected here?"

Edited by mr-es335
Posted (edited)

try with ConsoleWrite, to see where he stumbles

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)
    Local $hWnd = WinWait("Native Instruments Guitar Rig 5 - InstallAware Wizard", "")
    WinActivate($hWnd)
    Local $check = ControlClick($hWnd, "", "&Next >")
    ConsoleWrite("&Next > $check=" & $check & @CRLF)
    ; ---------------------
    ; 2nd dialog > Begin removal... > Completing...
    ConsoleWrite("Just before Do|Loop..." & @CRLF)
    Do
        Sleep(100)
    Until ControlCommand($hWnd, "Finish", "TButton2", "IsEnabled")
    ; ---------------------
    Sleep(100)
    $check = ControlClick($hWnd, "", "TButton2")
    ConsoleWrite("TButton2 $check=" & $check & @CRLF)
    ; -----------------------------------------------
    ; Confirm uninstallation
    Sleep($iFuncPause)
    ; ---------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay)
EndFunc   ;==>Remove_GR5

 

Edited by ioa747

I know that I know nothing

Posted (edited)

Will do...

Results:

&Next > $check=1
Just before Do|Loop...

Interestingly, the final  ConsoleWrite("TButton2 $check=" & $check & @CRLF) ... output is NEVER reached!?!

Edited by mr-es335
Posted

do the process manually and once you reach the last stage of the uninstallation
with the autoit info tool mark the button you want (to finish the installation)
and post the results from the Summary tab

I know that I know nothing

Posted

ios747,

This Do|Loop was provided, as noted int eh first post by Resiak1811 - "solution".

I do have this:

###AutoIt Control Viewer Report File###

Environment
===========
System:   Microsoft Windows 7 Professional 64-bit
Aero:     Disabled

Window
======
Title:    Native Instruments Guitar Rig 5 - InstallAware Wizard
Class:    TPoolTemplate
Style:    0x16CA0000
ExStyle:  0x00050100
Position: 708, 347
Size:     503, 385
Handle:   0x000000000009040E
PID:      3552
Path:     C:\ProgramData\{DA31E3B5-AD7E-4759-A162-75CF964B70AC}\Setup.exe

Control
=======
Class:    TButton
Instance: 2
ID:       918422
Style:    0x54010001
ExStyle:  0x00000000
Position: 325, 325
Size:     75, 23
Handle:   0x00000000000E0396
Text:     Finish

 

Posted

How is this?:

>>>> Window <<<<
Title:  Native Instruments Guitar Rig 5 - InstallAware Wizard
Class:  TPoolTemplate
Position:   708, 347
Size:   503, 385
Style:  0x16CA0000
ExStyle:    0x00050100
Handle: 0x00000000000603DE

>>>> Control <<<<
Class:  TButton
Instance:   2
ClassnameNN:    TButton2
Name:   
Advanced (Class):   [CLASS:TButton; INSTANCE:2]
ID: 1442684
Text:   Finish
Position:   325, 325
Size:   75, 23
ControlClick Coords:    38, 14
Style:  0x54010001
ExStyle:    0x00000000
Handle: 0x000000000016037C

>>>> Mouse <<<<
Position:   1074, 708
Cursor ID:  0
Color:  0x302E71

>>>> StatusBar <<<<

>>>> ToolsBar <<<<

>>>> Visible Text <<<<
< &Back
Finish
Cancel

>>>> Hidden Text <<<<

 

Posted (edited)

try with
 

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)
    Local $hWnd = WinWait("Native Instruments Guitar Rig 5 - InstallAware Wizard", "")
    ConsoleWrite("$hWnd=" & $hWnd & @CRLF)
    WinActivate($hWnd)
    Local $check = ControlClick($hWnd, "", "&Next >")
    ConsoleWrite("&Next > $check=" & $check & @CRLF)
    ; ---------------------
    ; 2nd dialog > Begin removal... > Completing...
    ConsoleWrite("Just before Do|Loop..." & @CRLF)
    
    Do
        Sleep(3000)
        ConsoleWrite("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" & @CRLF)
        Local $CtrlEnabled, $aList = WinList("Native Instruments Guitar Rig 5")
        ConsoleWrite("Count $aList=" & $aList[0][0] & @CRLF)
        For $i = 1 To $aList[0][0]
            ConsoleWrite("    Handle: " & $aList[$i][1] & "  Title: " & $aList[$i][0] & @CRLF)
            
            $CtrlEnabled = ControlCommand($aList[$i][1], "", "TButton2", "IsEnabled", "")
            ConsoleWrite("    $CtrlEnabled=" & $CtrlEnabled & @CRLF)
            If $CtrlEnabled Then 
                $hWnd = $aList[$i][1]
                ExitLoop
            EndIf
        Next
        
    Until $CtrlEnabled
    ; ---------------------
    Sleep(100)
    $check = ControlClick($hWnd, "", "TButton2")
    ConsoleWrite("TButton2 $check=" & $check & @CRLF)
    ; -----------------------------------------------
    ; Confirm uninstallation
    Sleep($iFuncPause)
    ; ---------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay)
EndFunc   ;==>Remove_GR5

 

Edited by ioa747
correction

I know that I know nothing

Posted (edited)

Will do...

I had noticed that from Resiak1811sampling that he had a Sleep(1500)...wherein I had Sleep(1500)?!?

Changing to Sleep(1500) seems to have helped...but I WILL check your offering!

Here are the results of your recent offering:

$hWnd=0x00000000000D0280
&Next > $check=1
Just before Do|Loop...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Count $aList=2
    Handle: 0x00000000000C031E  Title: Native Instruments Guitar Rig 5 - InstallAware Wizard
    $CtrlEnabled=0
    Handle: 0x00000000000D0280  Title: Native Instruments Guitar Rig 5 - InstallAware Wizard
    $CtrlEnabled=0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Count $aList=2
    Handle: 0x00000000000C031E  Title: Native Instruments Guitar Rig 5 - InstallAware Wizard
    $CtrlEnabled=0
    Handle: 0x00000000000D0280  Title: Native Instruments Guitar Rig 5 - InstallAware Wizard
    $CtrlEnabled=0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Count $aList=3
    Handle: 0x0000000000090366  Title: Native Instruments Guitar Rig 5 - InstallAware Wizard
    $CtrlEnabled=1
TButton2 $check=1
Edited by mr-es335
Posted

ioa747,

Well, from my more-ignorant observations:

1) A new "handle" is coming from "somewhere" - just not sure from where?
2) It would appear that there are 2 passes through the Do|Loop
3) The first 2 passes have $CtrlEnabled set to 0 - meaning failure!
4) The last-and-third pass has $CtrlEnabled set to 1 - meaning success!
5) I am assuming that TButton2 $check=1 is confirmation of the success!

Other than that, I am really-and-truly at a complete loss here!

What I would really like to know-and-to-understand here, is why is is it only the first script that is exhibiting errors, whilst the other 3 are not?

Even increasing Sleep from 100 to 1500 is very intermittent!

 

 

 

  • Solution
Posted (edited)

How would I do it?    (note that I can't test it)

#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()
    _Uninstall_Wizard($sUninstallPathGR5, "Native Instruments Guitar Rig 5 - InstallAware Wizard")
    _Uninstall_Wizard($sUninstallPathRammfire, "Native Instruments Rammfire - InstallAware Wizard")
    _Uninstall_Wizard($sUninstallPathReflektor, "Native Instruments Reflektor - InstallAware Wizard")
    _Uninstall_Wizard($sUninstallPathTraktors12, "Native Instruments Traktors 12 - InstallAware Wizard")
EndFunc   ;==>Remove_NIApps
; -----------------------------------------------
Func _Uninstall_Wizard($sFilePath, $sWindowTitle)
    AutoItSetOption("MouseCoordMode", 0)

    Local $PartTitle = StringSplit($sWindowTitle, " - ", 1)
    $PartTitle = $PartTitle[1]

    Local $sMsg = "! Error: Could not run " & $sFilePath
    Local $iPID = Run($sFilePath)

    If $iPID Then

        ; Wait for the 1st dialog > Welcome...
        $sMsg = "! Error: Window timeout for " & $sWindowTitle
        Local $hWnd = WinWait($sWindowTitle, "", 15) ; 15 sec timeout

        If $hWnd Then
            WinActivate($hWnd)
            ControlClick($hWnd, "", "[CLASS:TButton; TEXT:&Next >]")

            ; 2nd dialog > Begin removal... > Completing...
            ConsoleWrite("> Monitoring uninstallation: " & $sWindowTitle & @CRLF)

            Local $iCtrlEnabled = 0

            Do
                Sleep(500) ; <- ??
                Local $aList = WinList($sWindowTitle)

                ; Scan all windows with the same title
                For $i = 1 To $aList[0][0]
                    $hWnd = $aList[$i][1]

                    ; Check if the "Finish" button is enabled in this $hWnd
                    $iCtrlEnabled = ControlCommand($hWnd, "", "[CLASS:TButton; TEXT:Finish]", "IsEnabled", "")
                    If $iCtrlEnabled Then ExitLoop
                Next

            Until $iCtrlEnabled Or Not WinExists($sWindowTitle) ; Safety exit if window is closed manually

            ; Finish
            Sleep(300)
            WinActivate($hWnd)
            ControlClick($hWnd, "", "[CLASS:TButton; TEXT:Finish]")
            $sMsg = $PartTitle & " uninstallation...is now completed!"
        EndIf
    EndIf

    ; ---------------------
    _ExtMsgBoxSet(64, 4, Default, Default, 16, "Corbel Bold", $iEMBWidth)
    _ExtMsgBox(64, " ", " Notice!", $sMsg, $iMsgDelay)

    Sleep(500) ; [Optional] Small pause before starting the next uninstallation
EndFunc

 

Edited by ioa747
corrected the REMOVE = True MODIFY = FALSE"

I know that I know nothing

Posted

ioa747,

The above appears to working as it should!

I still need to test this script update within the the 2 main scripts that I implement - one script for pre-sign-out and one script for post sign-on.

For example, the pre-sign-out scripts...

Func Procedure2()
    StartNotice()
    RestoreFileData()
    Install_NIApps()
    ActvateApps()
    LaunchExitGR5()
    SignMeOut()
EndFunc   ;==>Procedure2

...and the post-sign-in scripts...

Func On_SignOn()
    On_SignInNotice()
    ExportNIRegKeys()
    BackupRestore(True)
    Remove_NIApps()
    RemoveFileFolderData()
    ImportRegKeys()
    BackupRestore(False)
    LaunchExitApp()
    DeleteStatupLinks()
    EndNotice()
EndFunc   ;==>On_SignOn

By-the-way, I do employ 2 scripts that implement "BlockInput($BI_DISABLE)" and "BlockInput($BI_ENABLE)" - to ensure that I do not interfere with the automation scripts!

I will keep you updated!!

Posted (edited)

ioa747,

Hhhmmm....something interesting is occurring here.

Firstly you r updated script has worked on two run-throughs without issue - except for on time thing...

Withing your script you have the following:

Local $sMsg = "Error!: Application could not be launched..." & $sFilePath
    Local $iPID = Run($sFilePath)

1) As can be observed in the above "post-sign-in script", your removal script  occurring 4th in the listing.
2) However, the above messages [of which there are 4] occurs at the end of the final "EndNotice()" script!

I will test each of the script individually to see if I can ascertain why these dialogs are being displayed...unless you have some further insights!

Update!
1) So, after testing each of the script separately, the above message is not being displayed.
2) I then performed the the "pre-sign-out scripts" separately, followed by the complete "post-sign-in script" - the above message is again being displayed!

Update#2!
My "bad"! I had a misplaced function call...I will test again!!

Update#3!
After 2 more tests all appears to be working as it should!

Edited by mr-es335

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...