Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Install Type during Basic install CA


1 reply to this topic

sijmen

sijmen
  • Members
  • 9 posts

Posted 26 November 2002 - 07:50

Hi,

During a basic installation, I have a custom action based on a C/C++ DLL function. Within the CA, how can I determine what type of install is being performed? (eg, Install, Modify, Repair, Uninstall)

A code sample would be greatly appreciated.

Regards,
Sijmen.

hambone

hambone
  • Members
  • 206 posts

Posted 26 November 2002 - 15:56

one method is to use the MSIGetMode function.  this fn. will return a boolean response based upon the specified run mode.

it takes two parameters, the current installer handle and the run mode to check.  if you want to check for a maintenance re-install/reconfig the run mode would be "MSIRUNMODE_MAINTENANCE".  when queried the fn. would return true if a maintenance install is occurring...

depending on the requirement this might satisfty your needs ?

full details can be found in the Windows Installer - Platform SDK, search for MSIGetMode...