Jump to content

lozman

Members
  • Posts

    1
  • Joined

  • Last visited

lozman's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I am currently trying to automate an install using AutoIT 3, but I can't get something to work right. Here is the code (I put the msgbox statements in just for troubleshooting); ShellExecute("install.msi") MsgBox(1, "Msg1", "Msg1") WinWaitActive("Open File - Security Warning") Send("!r") MsgBox(1, "Msg2", "Msg2") If I run this install.msi file manually a windows dialog appears to warn me that it is unsigned. This is the only dialog that comes up as part of the install and I want to get autoit to automatically hit the "Run" button. (this is what the script above is supposed to do). However although ShellExecute is supposed execute the file then carry on through the script, it doesn't seem to do that in this case. The reason I have put the MsgBoxes there is to try and figure out if it was simply a problem with WinWaitActive finding the correct window, but even the MsgBox line doesn't get executed (Msg1 doesn't appear). This is what seems to be happening; 1. I run script above. 2. AutoIt executes "install.msi". 3. as part of install.msi executing, the dialog comes up warning that the msi file is unsigned. 4. At this point you would expect the first MsgBox (Msg1) to be displayed but it is not. 5. Only after I hit "Run" on the warning dialog (manually) does Msg1 get displayed. From this, I can tell that the script is pausing right after the ShellExecute line until I hit Run on the warning dialog. The question is why? How can I get around this? If you need any further info please ask Thanks, Lozman.
×
×
  • Create New...