supraspecies Posted February 9, 2015 Posted February 9, 2015 Making a silent install for a program, but there is one thing installer does after it finishes: opens developer's homepage. CMD window is being called up when that happens. I'm wondering if I can somehow intercept that command so program wouldn't open its homepage at the end of the installation. If I can't interpt command/CMD window, then maybe there is a way to close default browser in case it is being called up or something.
MikahS Posted February 9, 2015 Posted February 9, 2015 If it brings up an IE window you could do something like this: #include <IE.au3> Opt("WinTitleMatchMode") While 1 closeWin() Sleep(100) WEnd Func closeWin() Local $oIE = _IEAttach("Internet Explorer", "windowtitle") If @error = 0 Then _IEQuit($oIE) Exit EndIf EndFunc ;==>closeWin You could also probably use the: WinClose() WinKill() functions as well. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
jguinch Posted February 9, 2015 Posted February 9, 2015 Which product are you installing ? Maybe its command line options can avoid this ? If you close the browser, in will close all tabs. The user will be happy Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
MikahS Posted February 9, 2015 Posted February 9, 2015 If you close the browser, in will close all tabs. The user will be happy Agreed, but depends on the environment that this is being installed in. Snips & Scripts My Snips: graphCPUTemp ~ getENVvarsMy Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4 Feel free to use any of my code for your own use. Forum FAQ
supraspecies Posted February 9, 2015 Author Posted February 9, 2015 (edited) Installing File Renamer Turbo from Kristanix. There is an /S switch, yes, but I don't want the program to be installed into default folder. So I'm running through setup dialogs with AutoIT and inserting my own path. If there are any other switches for silent/unattended install, I didn't see them being documented anywhere. Solution with killing the window is very familiar to me, but as the program launches default browser (which can be anything), matching window title isn't easy. I was thinking along the lines of somehow intercepting or blocking the command that installer sends (supposedly just site address?). But so far I'm guessing there is no easy way around this. Edited February 9, 2015 by supraspecies
Solution jguinch Posted February 9, 2015 Solution Posted February 9, 2015 (edited) File Renamer Turbo installer seems to use NSIS. So you can easily set the destination directory with /D=<Destination> : RunWait("filerenamerturbo-setup.exe /S /D=c:\apps\FileRenamerTurbo") ; replace it by your path Edited February 9, 2015 by jguinch Spoiler Network configuration UDF, _DirGetSizeByExtension, _UninstallList Firefox ConfigurationArray multi-dimensions, Printer Management UDF
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