I am trying to use FileInUse dialog in my uninstall.
I want alert to user to close my main application.
During uninstall setup remove all file including my main.exe but main.exe process still running and I can use my tray icon.
I just want to do something like in InstallShield 5.5 - File Key
Install must check main.exe before uninstall and alert user.
In ISWI exist FileInUse dialog and I am trying to use it.
In Msi help InstallValidate topic says about record of FileInUseProcess property:
Property : FileInUseProcess
Value : <name of process>
Text : <Text contained in the caption of main window>
I am doing:
hRec = MsiCreateRecord(3);
MsiRecordSetString(hRec, 1, "FileInUseProcess");
MsiRecordSetString(hRec, 2, "main.exe");
MsiRecordSetString(hRec, 3, "main title");
MsiProcessMessage(hMSI,INSTALLMESSAGE_ACTIONDATA,hRec);
But it’s doesn’t work
I am not sure about MsiProcessMessage it’s my guess!!!
Please help.
Kiril