#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
HWND hwnd = NULL;
while (hwnd == NULL)
{
hwnd = FindWindow (NULL, "Installation Complete");
Sleep (1000);
}
SendMessage (hwnd, WM_CLOSE, 0, 0);
return 0;
}
Compiled "3wareAcknowledge" binary takes only 36KB of disk space.
Here's my mt39 script:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <mt39> <version>0.3.1</version> <item> <program>%systemdrive%\3wareAcknowledge.exe</program> <arguments>bogus</arguments> <hide>0</hide> <wait>-1</wait> </item> <item> <program>%systemdrive%\Drivers.exe</program> <arguments>-y /q /r:n</arguments> <hide>0</hide> <wait>0</wait> </item> </mt39>
When the 3ware "Installation Complete" dialog box pops up at T33 minutes, the "3wareAcknowledge" program, which was spawned off as a background process by mt39, kicks in and dismisses the dialog box automatically.
You may have a bug with null argument processing with mt39 (haven't tried your latest version yet). I had to pass a bogus argument for "3wareAcknowledge" to prevent mt39 from crashing (see script above).
Thank you for the mt39 utility!



Help

Back to top









