Docfxit Posted January 31, 2023 Share Posted January 31, 2023 I'd like to create a script to install UltraVNC. I created this script so far: #include "OSVersion.au3" _OSVersion() Opt("WinWaitDelay", 100) Opt("WinTitleMatchMode", 2) Opt("WinDetectHiddenText", 1) Opt("MouseCoordMode", 0) TrayTip("clears any tray tip","",0) AutoItSetOption("TrayIconDebug", 1) ;0-off Run('C:\Dnload\9xAddons\VNC UltraVNC_1_4_06_X64_Setup.exe') Sleep(325) WinWait("Select Setup Language","") If Not WinActive("Select Setup Language","") Then WinActivate("Select Setup Language","") WinWaitActive("Select Setup Language","") ControlClick('Select Setup Language', 'OK', 'TNewButton1') It isn't selecting the OK button. This is what the screen looks like: This is what the info window shows: I tried: Send("{ENTER}") And it didn't work. How can I select the OK button? Link to comment Share on other sites More sharing options...
Subz Posted January 31, 2023 Share Posted January 31, 2023 Ultavnc is an InnoSetup installer, so you can just use the silent switches to install, see UltraVNC Silent Install (How-To Guide) – Silent Install HQ. Note you can also create an unattended inf file which includes options you select during the install. See /SaveInf, /LoadInf Inno Setup Help (jrsoftware.org) Link to comment Share on other sites More sharing options...
Docfxit Posted January 31, 2023 Author Share Posted January 31, 2023 (edited) Thank you for the reply... I have created that install. The "/verysilent" and the "/silent" switch ignores the install folder. I want to install the software in a custom folder "C:\Programs\UltraVNC" I have an open thread at the UltraVNC forum complaining about that. That's why I'm trying to create my own install script. Can it be done with an InnoSetup installer? Edited January 31, 2023 by Docfxit Link to comment Share on other sites More sharing options...
Solution Subz Posted January 31, 2023 Solution Share Posted January 31, 2023 /Dir and or use the /saveinf, /loadinf switches https://jrsoftware.org/ishelp/index.php?topic=setupcmdline Docfxit 1 Link to comment Share on other sites More sharing options...
Docfxit Posted January 31, 2023 Author Share Posted January 31, 2023 I have been struggling with this for weeks. I did use the /saveinf and I am using the /loadinf in the cmd line. I just added /dir= to the cmd line. And it worked. 😁 Yea! I never found that documented anywhere else. You are super duper great. That saved me a lot of time and now I'll get it done. Thank you very very much, Docfxit 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