Wena Posted September 19, 2013 Posted September 19, 2013 Hi All I am trying to write a simple script that will run driver software and when the Windows "Software Installation" warning sign appears in the task bar make it active and press ALT C "!C". For the life of me I can not get it to become active. My script however exits as if it has run successfully. Please see attached code and punch me in the right direction. I am running this on XP (WePos) Kind Regards Wena Esocket.au3
Neutro Posted September 19, 2013 Posted September 19, 2013 (edited) Hello, So here is your code: #region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Res_requestedExecutionLevel=asInvoker #AutoIt3Wrapper_Add_Constants=n #endregion ;**** Directives created by AutoIt3Wrapper_GUI **** #include <GUIConstants.au3> Run("c:\WINDOWS\system32\msiexec.exe /i c:\support\install.msi /norestart INSTALL_VX=1 PORT_VX=7") WinWait("Software Installation", "Continue Anyway") WinActivate("Software Installation", "Continue Anyway") If WinActive("Software Installation", "Continue Anyway") Then Send("!c") EndIf Check out msiexec.exe command line options here: http://d4rkcell.com/windows-installer /qn – quiet with no user interface. Same as /quiet, all errors are suppressed. example :Msiexec /i ProductName.msi /qn So you can try to change your code to this and see if it works: Run("c:\WINDOWS\system32\msiexec.exe /i c:\support\install.msi /qn /norestart INSTALL_VX=1 PORT_VX=7") Edited September 19, 2013 by Neutro Identify active network connections and change DNS server - Easily export Windows network settings Clean temporary files from Windows users profiles directories - List Active Directory Groups members Export content of an Outlook mailbox to a PST file - File patch manager - IRC chat connect example Thanks again for your help Water!
Wena Posted September 20, 2013 Author Posted September 20, 2013 Hi Neutro Thanks for the reply. The driver is not registed with windows hence the "software" warning and with that the /qn does not work. Prior to posting my first message I had investigated this. XP ignores the /qn on unregisted drivers. I know that the group policies can change driver signing to ignore but that would require our client to do a domain change to 17000 POS's and they are not willing to do that. It is such a simple task I want to do. Thanks Wena
Wena Posted September 20, 2013 Author Posted September 20, 2013 Hi I have tried everything but can not get this screen up correctly. I ran WinSetState("Software Installation", "", @SW_MAXIMIZE) but it made it full screen which is not the normal size and did not send the "!c". Hopefully someone out there will have a clue for me. Kind Regards Wena
Neutro Posted September 20, 2013 Posted September 20, 2013 Ok then, what you could try to do is use the "AutoIt Window Info" tool which you can find in the start menu inside AutoIT folder. When the warning messages pops-up, do a left-clic on the "finder tool" icon, then drag the target to the "continue anyway" button. After that, on the "Control" tab of the tool, you should see something under "ID" and "Text" lines. Then you simply need to use the fuction ControlClick("Window name", "Text", ID) and it should work Identify active network connections and change DNS server - Easily export Windows network settings Clean temporary files from Windows users profiles directories - List Active Directory Groups members Export content of an Outlook mailbox to a PST file - File patch manager - IRC chat connect example Thanks again for your help Water!
ffdshow Posted September 30, 2013 Posted September 30, 2013 Possible solution: extract the msi file with Universal Extractor or with /a switch, then go here and read about how to sign your unsigned driver. After your driver is signed, repack the msi with InstallShield (which is not easy) or make an exe installer with Inno Setup.
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