[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 552
  • Last Modified:

Adding data to _Streams Table of MSI (Windows Installer)

Hello,

I am explicitly adding a cabinet file to _Streams table as,

msidb.exe -d MySetup.msi -a MyCab.CAB

But I have to manually make entries to File, Component etc. tables for the files that are present in this CAB (CAB that was explicitly added as shown above). If there are 100 files, it actually kills my patience. Is there any way, any tool that will do this for me. I am looking for something that will make entries to File, Component etc. tables the moment I explicitly add CAB file.

Thanks in advance!!
0
milindsm
Asked:
milindsm
1 Solution
 
milindsmAuthor Commented:
Experts!!!!!!
0
 
NetcraftCommented:
You can use the Windows Installer WMI object to create your own script to manipulate an MSI:
http://msdn.microsoft.com/en-us/library/aa394523(VS.85).aspx

See for examples here:
http://www.jsware.net/jsware/msicode.php5
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now