I am using AI-6.4 and building an enterprise project. In my .aip project there are some customized dialogs, I would like to show/ hide or enable/disable any of them programatically. Say, i've added a checkbox and want to show/hide through custom action which is in VC 6.0 DLL.
I've gone through some code at MSDN site
http://msdn.microsoft.com/en-us/library ... S.85).aspx
Code: Select all
UINT __stdcall HideCancelButton(MSIHANDLE hInstall)
{
PMSIHANDLE hRecord = MsiCreateRecord(2);
if ( !hRecord)
return ERROR_INSTALL_FAILURE;
if (ERROR_SUCCESS != MsiRecordSetInteger(hRecord, 1, 2)
|| ERROR_SUCCESS != MsiRecordSetInteger(hRecord, 2, 0))
return ERROR_INSTALL_FAILURE;
MsiProcessMessage(hInstall, INSTALLMESSAGE_COMMONDATA, hRecord);
return ERROR_SUCCESS;
}
How could i achieve this? Plz give me some VC code to perform this task.
Regards,
Vicky
FOLLOW US
Get the latest news in Application Packaging