Sign in to follow this  
Followers 0
bitman

Smart Way To Hide Certificate Installation

8 posts in this topic

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?

Share this post


Link to post
Share on other sites



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 )

#)

Share this post


Link to post
Share on other sites

@nwfu - That's fairly sneaky!! :)

My first question would be ... Why hide them (are they not yours :mellow:).


[center]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.[/center]

Share this post


Link to post
Share on other sites

[quote My first question would be ... Why hide them (are they not yours :lmao:).

Share this post


Link to post
Share on other sites

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.:

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 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.

 

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0