Setting a Restore Point from a Custom Action
Custom actions must not call the SRSetRestorePoint function because this may result in a restore entry point being written into the middle of a Windows Installer installation.
For more information, see System Restore Points and the Windows Installer.