3

It is possible to get the name of the current installation file (.msi) from the Installer class of custom action ?

I need something like this:

[RunInstaller(true)]
public partial class ProjectInstaller : Installer
{
    public ProjectInstaller()
    {
        InitializeComponent();

        **var fileName = CurrentMSIFileName();**
    }
}

Thank you!!

1 Answers1

1

I have found the solution based on Christopher Painter's Answer is by using OriginalDatabase property. Now I am able to get the msi installer file name in both during installation and uninstallation

Abdulkarim Kanaan
  • 1,703
  • 4
  • 20
  • 32