Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get the name of the current msi installation file from an Installer class

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!!

like image 271
Riccardo Bassilichi Avatar asked Dec 03 '25 05:12

Riccardo Bassilichi


1 Answers

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

like image 199
Abdulkarim Kanaan Avatar answered Dec 04 '25 19:12

Abdulkarim Kanaan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!