Jump to content
Sign in to follow this  
Wena

Driver signing as child

Recommended Posts

Wena

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

Share this post


Link to post
Share on other sites
Neutro

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 by Neutro

Share this post


Link to post
Share on other sites
Wena

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

Share this post


Link to post
Share on other sites
Wena

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

Share this post


Link to post
Share on other sites
Neutro

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

Share this post


Link to post
Share on other sites
ffdshow

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.

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.