bitman Posted March 26, 2006 Share Posted March 26, 2006 Hey I need to hide the windows in the following installation if WinExists("Certificate") then ; English version WinWait("Certificate","General") ControlClick("Certificate","General","Button1") WinWait("Certificate Import Wizard","A certificate, which is issued") ControlClick("Certificate Import Wizard","A certificate, which is issued","Button2") WinWait("Certificate Import Wizard","Certificate stores are system ") ControlClick("Certificate Import Wizard","Certificate stores are system ","Button5") WinWait("Certificate Import Wizard","You have specified the followi") ControlClick("Certificate Import Wizard","You have specified the followi","Button6") if WinExists("Security Warning","You are about to install a cer") Then WinWait("Security Warning","You are about to install a cer") ControlClick("Security Warning","You are about to install a cer","Button1") EndIf WinWait("Certificate Import Wizard","The import was successful.") ControlClick("Certificate Import Wizard","The import was successful.","Button1") WinWait("Certificate","General") ControlClick("Certificate","General","Button5") ExitLoop EndIf I am not sure if this can be done. If not is it then possible to create a "super window" there can hide the installation? Link to comment Share on other sites More sharing options...
nfwu Posted March 27, 2006 Share Posted March 27, 2006 2 methods: 1. (this is the lazy method, which I often use): have an image, then use this:SplashImageOn ( "Importing Certificate...", "PATH_TO_IMAGE", @desktopwidth, @desktopheight, 0, 0) 2. Hide the window, using:WinSetState ( "PUT_TITLE_HERE", "", @SW_HIDE ) #) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 27, 2006 Moderators Share Posted March 27, 2006 @nwfu - That's fairly sneaky!! My first question would be ... Why hide them (are they not yours ). Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
bitman Posted March 28, 2006 Author Share Posted March 28, 2006 [quote My first question would be ... Why hide them (are they not yours ). Link to comment Share on other sites More sharing options...
GaryFrost Posted March 28, 2006 Share Posted March 28, 2006 certmgr.exe /add certname.cer -s Root SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
bitman Posted March 28, 2006 Author Share Posted March 28, 2006 certmgr.exe /add certname.cer -s Root dogh dogh dogh I should have know this commando for 3 weeks ago. I am not sure what I am doing wrong in my script though(it works in the dos prompt) run("certmgr.exe -add cacert.pem.cer -s Root -c") have also tried run("certmgr.exe /add cacert.pem.cer -s Root -c")==> Unable to execute the external program.: Link to comment Share on other sites More sharing options...
GaryFrost Posted March 28, 2006 Share Posted March 28, 2006 (edited) dogh dogh dogh I should have know this commando for 3 weeks ago. I am not sure what I am doing wrong in my script though(it works in the dos prompt) run("certmgr.exe -add cacert.pem.cer -s Root -c") have also tried run("certmgr.exe /add cacert.pem.cer -s Root -c") ==> Unable to execute the external program.: try Run(@ComSpec & ' /c ' & $path & '\certmgr.exe /add ' & $certpath & '\cacert.pem.cer -s Root','',@SW_HIDE) Edited March 28, 2006 by gafrost SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
bitman Posted March 29, 2006 Author Share Posted March 29, 2006 try Run(@ComSpec & ' /c ' & $path & '\certmgr.exe /add ' & $certpath & '\cacert.pem.cer -s Root','',@SW_HIDE) thanks for helping me . The reason why it worked in dos promtp was because I used the one delivered by visual studio 2005. When I called certMgr.exe in the autoscript windows it did not know the exe file because I have not put it into the environment variables. I have to ask you about another thing because I have not been able to install the other certificates with certmgr Is This possible? My certificates that have to be installed at the clients are. Cert.12 personal certificate Client-cert.pem.cer signed certificate Cacert.pem.cer root certificate (have to install this or windows will ask the user if they trust my certificate every time it is used) 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