Jump to content

GUI for automated install


roodbwoy
 Share

Recommended Posts

Hi!

I recently discovered this wonderfull scripting program and I have to say that I am having a blast with it!

Now I have this idea and searched the forums for some answers but couldn't find any direct answers to my problem.

I have automated a lot of program installers and combined them in a single executable, this makes me the lazy sysadmin that I am juts run the script at a users PC and go for some coffee and a smoke :lmao:

Now I have this idea, the installers work great the only downside is that he users where I install it see the installation screens on their screen and I want to fix that.

Is it possible to make a screen/gui that hides those installation windows and only show some text + maybe even a progress bar... and is it possible to disable user keyboard/mouse input while the script is running?

thanks in advance

The lazy sysadmin... ;)

btw here is the source for the automated VNC installer that I use

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.1.1.0
 Author:         Erik Jan van de Wal

 Script Function:
    VNC Automated Install Script.

#ce ----------------------------------------------------------------------------

; Script Start 

; Run the VNC installer
Run("vnc-4_1_2-x86_win32.exe")

; Welcome Screen
WinWaitActive("Setup - VNC")
Send("!n")

; License Agreement
WinWaitActive("Setup - VNC")
Send("!a")
Send("!n")

; Install Location
WinWaitActive("Setup - VNC")
Send("!n")

; Components to install
WinWaitActive("Setup - VNC")
Send("!n")

; Folder Creation
WinWaitActive("Setup - VNC")
Send("!n")

; Icons Etcetera
WinWaitActive("Setup - VNC")
Send("!n")

; Start Install
WinWaitActive("Setup - VNC")
Send("!i")

; Configure
WinWaitActive("VNC Server Properties (Service-Mode)")
Send("{Tab}")
Send("{ENTER}")
Send("password")
Send("{Tab}")
Send("password")
Send("{ENTER}")
Send("{Tab}")
Send("{Tab}")
Send("{ENTER}")

; Summary
WinActivate("Setup - VNC")
Send("!n")

; Finish
WinWaitActive("Setup - VNC")
Send("!f")

Exit

SELECT * FROM users WHERE clue > 1; no rows returned

Link to comment
Share on other sites

You could use SplashTextOn but the down side to that is that your send commands will not work properly. You should look into using ControlSend and ControlClick which can work on a window that does not have focus. To disable the keyboard and mouse you can use BlockInput.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Link to comment
Share on other sites

You could use SplashTextOn but the down side to that is that your send commands will not work properly. You should look into using ControlSend and ControlClick which can work on a window that does not have focus. To disable the keyboard and mouse you can use BlockInput.

Thanks alot BigDod, I'll look into it!

SELECT * FROM users WHERE clue > 1; no rows returned

Link to comment
Share on other sites

When you will make changes promoted by BigDod

you can make your simple GUI over all desktop with some background color/picture or label to hide instalation windows:

#include <GUIConstants.au3>

GUICreate("", @DesktopWidth, @DesktopHeight, 0, 0, $WS_POPUP)
GUISetBkColor(0xc8ffc8)
;GUICtrlCreatePic("some picture.jpg", ...)
GUICtrlCreateLabel("Instal in progress ...", 0, @DesktopHeight/2, @DesktopWidth, 100, BitOr($GUI_SS_DEFAULT_LABEL, $SS_CENTER))
GUICtrlSetFont (-1,18,900) 
GUICtrlSetColor(-1,0xff)
GUISetState(@SW_SHOW)

; --> your instal routine here ...
; ...

EDIT: added label

Edited by Zedna
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...