Unfortunately I know nothing about MSIs and am unsure whether I need to edit
database tables manually, or if there is an API I can use from C#. Either
way, could someone give me some nudges in the right direction?
Thanks
If this does not work for you, you can look at the source for Wix, which
would then tell you how to manipulate msi's directly from C#.
Wix can be found at http://wix.sourceforge.net .
Hope that helps!
/ Rage
You should probably seek advice from a lawyer if you aren't sure after
you've read the license text.
You haven't been too specific what kinds of change might be
necessary/acceptable. For example, to add a file, you typically rebuild
the MSI file from scratch. For altering it, it would be best if you
could express the modifications in terms of properties (key/value
pairs), and if you then arrange to use these properties in a uniform
way.
For example, adding registry keys to contain the property settings
would be fairly easy - if it *must* be an INI file, you could create
a custom action to generate/modify it.
I would advise against using Wix for this kind of application. Instead,
Installer has a convenient API which you can readily use from C#.
Regards,
Martin
Regards
Fyodor.
=?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= <mar...@v.loewis.de> spake the secret code
<430c1ca0$0$13071$9b62...@news.freenet.de> thusly:
>I would advise against using Wix for this kind of application. Instead,
>Installer has a convenient API which you can readily use from C#.
Well, not *quite* so readily. I mean, using an individual function or
two is not so painful, but anything beyond the most basic of tasks is
tedious. If you want to manipulate MSI files from C#, use the interop
library taht I wrote:
<http://sourceforge.net/project/showfiles.php?group_id=40188&package_id=110212>
It organizes the API into objects that follow the automation object
model and handles all the management of the underlying unmanaged
handles for you via IDisposable.
--
"The Direct3D Graphics Pipeline"-- code samples, sample chapter, FAQ:
<http://www.xmission.com/~legalize/book/>
Pilgrimage: Utah's annual demoparty
<http://pilgrimage.scene.org>