Omer
Omer

Reputation: 21

Is there an option to read table from exe like msi?

I know that there is an option to read the msi tables, edit them and etc. is there an option to do this to an exe file? I am building an installer which is an exe file.

an example to how the msi code will look like:

using (var database = new Database(@"D:\example-SetupFiles\example.exe", DatabaseOpenMode.Direct))
{
     database.Export("File", @"C:\Temp\data.txt");
     foo();
}

Upvotes: 1

Views: 58

Answers (1)

Christopher Painter
Christopher Painter

Reputation: 55601

It appears your installer is really an MSI inside of a self extracting EXE. Please see:

Advanced Installer User Guide

Mypackage.exe /extract:"C:\My work"

Once extracted you can use other tools to reflect the MSI.

Upvotes: 1

Related Questions