I had a requirement to extract files from a .msi setup to a local folder, i.e. without running the installer, I found this blog post useful for my purpose
The command is:
msiexec /a msifilepath /qn TARGETDIR=TargetDirectoryPath
/a represents administrative purpose
/qn displays no user interface
The blog post above uses /qb as the second switch for extraction to target directory but In my case, I used a different switch /qn
/qb displays basic user interface whereas use /qn if you don't want any UI.
You can find more about the command and the switches here