lessmsi icon indicating copy to clipboard operation
lessmsi copied to clipboard

Add a command line option to dump all the tables to a destination directory.

Open JoePlant opened this issue 9 years ago • 1 comments

At the moment, the lessmsi command line allows the dumping of a single table to stdout.

I would like a command line option to dump all the tables in the msi to a set of msi files in the specified directory (or an Excel file).

A possible command line might be: lessmsi t -csv <msi_name> <path_for_csv_files>

t : means table output -csv : use csv format

JoePlant avatar Dec 09 '14 07:12 JoePlant

I think I would like to see a csv command added and deprecate the existing l command. It would take a single argument (as you expected in issue #44) and if the argument were all it would dump all tables. For example:

lessmsi.exe csv Component setup.msi < Would dump the Component table to csv. lessmsi.exe csv all setup.msi < Would dump all tables to csv.

Some tasks off the top of my head:

  • Add unit tests for the current syntax and the new proposed syntax.
  • Refactor https://github.com/activescott/lessmsi/blob/master/src/LessMsi.Cli/ListTableCommand.cs into two classes. One that has the current logic and one that preserves the current syntax of (l t=...)
  • Update the docs to remove the existing l command (but leave it working behind the scenes for compatibility?)
  • What else??

activescott avatar Dec 18 '14 08:12 activescott