Stevester Posted March 9, 2008 Share Posted March 9, 2008 Hi folks, long time lurker...first time poster. I'm working on a script to uninstall the Novell Client from Workstations. Users being what they are I have need to put up an info box for the duration of the uninstall telling them not to cancel the process..and essentially hide it from them. I have the dialog box created and the uninstall script works fine but the uninstall screens still pop in front of my dialog box that COULD give the users the chance to cancel it if they wanted to. Is there any way to keep my dialog box in front and have it take up most of the screen while the background script is running? Here is my script: #include <GUIConstants.au3> GUICreate("Client Uninstall", 400, 200) GUICtrlCreateLabel("UNINSTALLING NOVELL CLIENT", 110, 50) GUICtrlCreateLabel("DO NOT CANCEL", 150, 100) GUICtrlCreateLabel("YOUR PC WILL REBOOT WHEN FINISHED", 90, 150) GUISetState(@SW_SHOW) Sleep(30000) Run("RUNDLL32.EXE NWSETUP.DLL NWUninstallClient") If WinWait("RUNDLL", "loading NWSETUP", 3) Then Exit EndIf If WinWait("Uninstall Novell Client for Windows", "uninstall the Novell Client", 60) Then ControlClick("Uninstall Novell Client for Windows", "uninstall the Novell Client", "Button1") WinActivate("Client Uninstall", "UNINSTALLING NOVELL CLIENT") WinWait("Uninstall Novell Client for Windows", "shut down and restart your computer") ControlClick("Uninstall Novell Client for Windows", "shut down and restart your computer", "Button1") EndIf Thanks in Advance! Stevester Link to comment Share on other sites More sharing options...
Malkey Posted March 9, 2008 Share Posted March 9, 2008 (edited) Try adding to GUICreate("Client Uninstall", 400, 200) so that it looks like :- GUICreate("Client Uninstall", 400, 200, -1,-1, -1, $WS_EX_TOPMOST) Found in help file under GUICreate - exStyle (the link) Edit: Welcome to the Autoit Forums Edited March 10, 2008 by Malkey Link to comment Share on other sites More sharing options...
Stevester Posted March 10, 2008 Author Share Posted March 10, 2008 Worked like a charm, thanks mate Try adding to GUICreate("Client Uninstall", 400, 200)so that it looks like :- GUICreate("Client Uninstall", 400, 200, -1,-1, -1, $WS_EX_TOPMOST)Found in help file under GUICreate - exStyle (the link)Edit: Welcome to the Autoit Forums Link to comment Share on other sites More sharing options...
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