AutoIT install of Belarc or SIW

joe3k

Member
Reaction score
0
Guys I tried to install SIW via AutoIT but I could not find a silent switch for it. I am unsure if one is needed but rather than waste time I tried Belarc instead. I managed to get Belarc installed automatically via AutoIT, however I want it to autosave the profile created.

Problem is: the profile is a webpage. Can autoIT send something like Ctrl-S and input filenames and where to save?

Can SIW be automated even... as it would be better anyhow.

Here's my attempted AutoIT script but the ctrl-s doesn't work:
Code:
RunWait("advisor.exe /S ")
WinWaitActive("Belarc Analysis - Check for New Definitions")
Send("{TAB}{ENTER}")
WinWaitActive("Belarc Advisor Current Profile")
Send("{CTRL}+{S}")
Exit
 
I got siw running, but as you say good learning so I practiced a bit more on Belarc...

Code:
; Script Start
RunWait("advisor.exe")
WinWaitActive("Open File - Security Warning", "Do you want to run this file?")
Send("!r")
WinWaitActive("Belarc Advisor", "Belarc, Inc. End-User License Agreement")
Send("{TAB}, {ENTER}")
WinWaitActive("Belarc Advisor Installation", "This program will install")
Send("{ENTER}")
WinWaitActive("Belarc Analysis - Check for New Definitions")
Send("{TAB}{ENTER}")
WinWaitActive("Advisor")
Send("{ENTER}")
; It is here that it pops up the html page
WinWaitActive("Belarc Advisor Current Profile")
Send("!F")
Send("^a")
Send("BelarcReport")
Send("!s")
Exit

I had this working before using the /s (silent install), but when I started from scratch and tried with the full install (without the /s switch)... it doesn't seem to want to pass the License agreement? Any idea why?

Anyhow I tried again with the silent install and modified the code to below and still having a little trouble. It's also a bit sloppy selecting the web page html opion... do you know a better way? Anyhow even after this comes up an error when saving. Here's the code I used:

Code:
RunWait("advisor.exe /S ")
WinWaitActive("Belarc Analysis - Check for New Definitions")
Send("{TAB}{ENTER}")
WinWaitActive("Belarc Advisor Current Profile")
Send("^s")
WinWaitActive("Save As")
Send("BelarcReport")
Send("{TAB}{DOWN}{w}{DOWN}{DOWN}{w}{DOWN}{TAB}")
Send("!s")
Exit

Belarc downloaded from their main site.
 
I got siw running, but as you say good learning so I practiced a bit more on Belarc...

Code:
; Script Start
RunWait("advisor.exe")
WinWaitActive("Open File - Security Warning", "Do you want to run this file?")
Send("!r")
WinWaitActive("Belarc Advisor", "Belarc, Inc. End-User License Agreement")
Send("{TAB}, {ENTER}")
WinWaitActive("Belarc Advisor Installation", "This program will install")
Send("{ENTER}")
WinWaitActive("Belarc Analysis - Check for New Definitions")
Send("{TAB}{ENTER}")
WinWaitActive("Advisor")
Send("{ENTER}")
; It is here that it pops up the html page
WinWaitActive("Belarc Advisor Current Profile")
Send("!F")
Send("^a")
Send("BelarcReport")
Send("!s")
Exit

I had this working before using the /s (silent install), but when I started from scratch and tried with the full install (without the /s switch)... it doesn't seem to want to pass the License agreement? Any idea why?

Anyhow I tried again with the silent install and modified the code to below and still having a little trouble. It's also a bit sloppy selecting the web page html opion... do you know a better way? Anyhow even after this comes up an error when saving. Here's the code I used:

Code:
RunWait("advisor.exe /S ")
WinWaitActive("Belarc Analysis - Check for New Definitions")
Send("{TAB}{ENTER}")
WinWaitActive("Belarc Advisor Current Profile")
Send("^s")
WinWaitActive("Save As")
Send("BelarcReport")
Send("{TAB}{DOWN}{w}{DOWN}{DOWN}{w}{DOWN}{TAB}")
Send("!s")
Exit

Belarc downloaded from their main site.
mmm...Unfortunatly you can't run macro's in silent mode :(
 
Marius,

Where do you currently stand with the Belarc script? I am also working on this but I'm not too good with AutoIT. Is your script working without user intervention? I realy don't care if it runds silently or not. I just need it to install, run report, and close. I have another script that will go grab the finished report for me.
 
Back
Top