Yes, it is related to what WixExitEarlyWithSuccess does. I'll explain a bit
more about how my installer is set up

I call the msi from within a C++ function which looks something like this:

// code start
-------------------------------------------------------------------------------------

  wstring command = wstring(L"\"") + sysDir + L"\\msiexec.exe\"" + L" /a \""
+ path + L"\"";
  // where sysDir is the system directory and path contains the path to my
msi

  wchar_t *cmd = new wchar_t[command.length()+1];
  wcscpy(cmd, command.c_str());

  // in the following, startupInfo is of type STARTUPINFO and processInfo is
of type PROCESS_INFORMATION
  // Ive done all the ZeroMemoring and everything else. Don't need to
mention all that here

  if(CreateProcess(NULL, cmd, NULL, NULL, FALSE, 0, NULL, NULL,
&startupInfo, &processInfo) == 0)
    SysError();

  while (true) {
    DWORD waitResult = WaitForSingleObject(processInfo.hProcess, 50);
    if (waitResult == WAIT_FAILED)
      SysError();
    if (waitResult != WAIT_TIMEOUT)
      break;
    MSG msg;
    while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)) {
      TranslateMessage(&msg);
      DispatchMessage(&msg);
    }
  }

  if(GetExitCodeProcess(processInfo.hProcess, &exitCode) == 0)
    SysError();
  else
    // continue to next task. I NEED TO END UP HERE WHEN THE 'CLICK NEXT TO
CONTINUE' BUTTON IS CLICKED.

// code end
-----------------------------------------------------------------------------------


The msi then checks whether a network image already exists and if so simply
displays a custom dialog box that I've created with a 'click next to
continue' button. What I require is the msi returning success when this
button is clicked.
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Returning-Success-on-clicking-a-button-in-dialog-tp5430920p5434511.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to