Not directly with a VS setup project, no. You need a custom action firing
off the Next button and VS doesn't have IDE support for that. Other tools
can build that kind of thing (and you could do it with the Windows Installer
SDK but it would be a lot of work). The documentation that comes closest to
that is here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;253683

Signature
Phil Wilson [MVP Windows Installer]
----
Phil, thanks for the response.
I created a custom action similar to that in the documentation that you
referred to and it worked.
the only drawback of the provided sample was that it used MessageBox api to
display an error to the user, which would show underneath of the main msi UI
because it has no parent window. since i found no way to obtain the parent
from the msi, I decided to use MsiProcessMessage to show my error message:
PMSIHANDLE hrecord = MsiCreateRecord(1);
if (hrecord == NULL || MsiRecordSetInteger(hrecord, 1, 25001) !=
ERROR_SUCCESS)
{
return ERROR_INSTALL_FAILURE;
}
MsiProcessMessage(hinstall,
INSTALLMESSAGE(INSTALLMESSAGE_ERROR|MB_OK|MB_ICONERROR), hrecord);
where 25001 is the ID of the error that i manually put into the Error table.
but this does not show any message box and simply follows the UI sequence as
if i called no MsiProcessMessage. the verbose log shows no message at all
also. looks like it cannot find the error message because deleting my error
row from the Error table makes no difference. why?
would appreciate any help!
konstantin
> Not directly with a VS setup project, no. You need a custom action firing
> off the Next button and VS doesn't have IDE support for that. Other tools
[quoted text clipped - 17 lines]
> > thanks
> > konstantin
Phil Wilson - 09 May 2004 19:36 GMT
I'm not sure why your MessageBox has that behavior in the UI sequence, but
it might be related to the OS version you're using.
That MsiCreateRecord doesn't look right to me. You need two fields, not one,
field 0 probably empty and field 1 your error number.

Signature
Phil Wilson
[MVP Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
> Phil, thanks for the response.
>
[quoted text clipped - 49 lines]
> > > thanks
> > > konstantin