Reputation: 21
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
Reputation: 55601
It appears your installer is really an MSI inside of a self extracting EXE. Please see:
Mypackage.exe /extract:"C:\My work"
Once extracted you can use other tools to reflect the MSI.
Upvotes: 1