1

I know you can change it using cscript.exe on Windows. Is there a Linux program providing cscript-like functionality? Or is there some other way I can change the database in Linux?

Jieren
  • 1,952
  • 4
  • 18
  • 26

1 Answers1

2

CScript is just the script execution engine; it knows nothing about MSI directly. Check out Wine; it implements some/most of msi.dll, so as long as functions like MsiDatabaseOpenView and MsiViewExecute are correctly implemented, you should be able to use it to modify an .msi package.

Bob Arnson
  • 21,377
  • 2
  • 40
  • 47
  • Ugh. Yeah this is probably the way to do it. I think I'm going to end up running a Windows box instead of mucking around in a bunch of C libraries. – Jieren Aug 19 '11 at 20:19
  • I ported Wine's code to a standalone library that can run on Linux - see http://stackoverflow.com/a/13748696/111698 for more details. Help is welcome, the source code is also on github at github.com/bonzini/msitools.git – Paolo Bonzini Dec 06 '12 at 17:06