Can anyone give me an example of how to use python's msilib standard library module to create a msi file from a custom python module?
For example, let's say I have a custom module called cool.py with the following code
class Cool(object):
def print_cool(self):
print "cool"
and I want to create an msi file using msilib that will install cool.py in python's site-packages directory.
How can I do that?
You need to write a distutils setup script for your module, then you can do
python setup.py bdist_msi
and an msi-installer will be created for your module.
See also http://docs.python.org/distutils/apiref.html#module-distutils.command.bdist_msi
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With