Ask a Question

Trying to open the File Explorer to then browse to an executable to check its digital signature

SOLVED
al666940
Occasional Contributor

Trying to open the File Explorer to then browse to an executable to check its digital signature

Hello there!

I want to verify the digital signature of an executable file (an installer) via TestComplete, but even though all the windows can be seen on the Object Browser (and thus can be mapped and manipulated via aliases), I'm stuck before that: how best to:

  1. Open the File Browser
  2. Go to the proper location (copy/paste of path on address bar I guess)
  3. Select (via "ClickR()" I would think) the expected installer to open the popup menu which has the Properties option.

I pasted as example WinSCP installer's Properties window.

I am totally stuck at opening the File Browser. I managed to open it (button on botom menu) but I simply cannot seem to paste the path of the executable on the address bar (will no allow SetText).

5 REPLIES 5
Marsha_R
Community Hero

You may find these references useful

 

https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/window-and-process/op...

 

https://support.smartbear.com/testcomplete/docs/reference/program-objects/aqfile/getfileattributes.h...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
AlexKaras
Community Hero

Hi,

 

I would do it via API excluding UI and File Explorer.

For example:

https://stackoverflow.com/questions/19052030/vbscript-read-digital-signature-of-file

https://www.vbforums.com/showthread.php?630167-RESOLVED-Determine-if-file-is-digitally-signed

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-authenticodesig...

https://www.google.com/search?q=powershell+check+file+digital+signature

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
al666940
Occasional Contributor

Thanks, but they are not what I want.

al666940
Occasional Contributor

The powershell solution is sure interesting, but insufficient for the checks I want to do (just check for it to be valid is not enough).

I ended up doing it the old fashioned way: opened File Explorer, browsed (since I could not paste the path on the address bar) to the installer location, opened Properties dialog and checked everything I needed.
Thanks anyway for the suggestions!

Hi,

 

Good to know that the problem has been solved.

 

since I could not paste the path on the address bar

This command

explorer c:\windows

opens Windows Explorer at C:\Windows folder.

So you may call

explorer <path to tested installer>

to exclude navigation in explorer and improve performance and reliability.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
cancel
Showing results for 
Search instead for 
Did you mean: