Re: Examples using msilib to build windows installers

2008-04-04 Thread Martin v. Löwis
> It would appear to me that the msilib library included with standard > python 2.5 would allow be to do this. I found the source code that > builds the python distrubition installer packages, but I was wondering > if there were other examples that I can learn from. Actually, the inst

Examples using msilib to build windows installers

2008-04-03 Thread imageguy
I have been using InnoSetup to distribute my wxpython app and ir works great, howver, I would like to offer a *.msi installer to customers as an option and this isn't available using Innosetup. It would appear to me that the msilib library included with standard python 2.5 would allow be

Re: MSI read support in msilib?

2008-01-17 Thread Floris Bruynooghe
On Jan 16, 7:03 pm, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > The introduction from the msilib documentation in python 2.5 claims it > > supports reading an msi. However on the Record class there is only a > > GetFieldCount() method and some Set*() me

Re: MSI read support in msilib?

2008-01-16 Thread Martin v. Löwis
> The introduction from the msilib documentation in python 2.5 claims it > supports reading an msi. However on the Record class there is only a > GetFieldCount() method and some Set*() methods. I was expecting to > see GetString() and GetInteger() methods to be able to read

MSI read support in msilib?

2008-01-16 Thread Floris Bruynooghe
Hi The introduction from the msilib documentation in python 2.5 claims it supports reading an msi. However on the Record class there is only a GetFieldCount() method and some Set*() methods. I was expecting to see GetString() and GetInteger() methods to be able to read the values. Maybe I&#

Re: MsiLib

2007-08-23 Thread Martin v. Löwis
> Thank you. I would be willing to help out, but as of now I have no idea > how to get started on it. If you would be willing to provide some > guidance, then I would be fine with giving it a shot if nothing more. My > guess is that it would have to implement the MsiRecordGetString function > so th

Re: MsiLib

2007-08-23 Thread Charlie
Quoting "Martin v. Löwis" <[EMAIL PROTECTED]>: > Charlie schrieb: >> Thank you everybody for your help. It finally runs without errors and I >> should be able to use this as I figure out more of it. I am curios if >> there is any idea as to when GetString will be implemented? > > If I can find the

Re: MsiLib

2007-08-23 Thread Martin v. Löwis
Charlie schrieb: > Thank you everybody for your help. It finally runs without errors and I > should be able to use this as I figure out more of it. I am curios if > there is any idea as to when GetString will be implemented? If I can find the time, it may be for Python 2.6. If not, Python 2.7, 3.1

Re: MsiLib

2007-08-23 Thread Charlie
Thank you everybody for your help. It finally runs without errors and I should be able to use this as I figure out more of it. I am curios if there is any idea as to when GetString will be implemented? Charlie -- http://mail.python.org/mailman/listinfo/python-list

Re: MsiLib

2007-08-22 Thread Martin v. Löwis
Charlie schrieb: > This doesn't seem to be my day for this. When I add view.Execute() to > the script, it gives me an error of Execute() takes exactly 1 argument > (0 given). I can't seem to find anything on the Microsoft page that > concerns the execute function that states what exactly needs to b

Re: MsiLib

2007-08-22 Thread Charlie
This doesn't seem to be my day for this. When I add view.Execute() to the script, it gives me an error of Execute() takes exactly 1 argument (0 given). I can't seem to find anything on the Microsoft page that concerns the execute function that states what exactly needs to be included as an

Re: MsiLib

2007-08-22 Thread Martin v. Löwis
Charlie schrieb: > Thanks for pointing that out. It solved the one problem and along came > another. Now I get the following error when I try running it. Thanks for > the help. > > Traceback (most recent call last): > File "msi.py", line 7, in > record = view.Fetch() > _msi.MSIError: functi

Re: MsiLib

2007-08-22 Thread Charlie
Thanks for pointing that out. It solved the one problem and along came another. Now I get the following error when I try running it. Thanks for the help. Traceback (most recent call last): File "msi.py", line 7, in record = view.Fetch() _msi.MSIError: function failed -- http://mail.

Re: MsiLib

2007-08-22 Thread Jarek Zgoda
t not working that should and my system is screwed up > somewhere? Thanks. > > import msilib > > c = msilib.OpenDatabase('test.msi', MSIDBOPEN_READONLY) I think this should read msilib.MSIDBOPEN_READONLY. -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: MsiLib

2007-08-22 Thread Charlie
screwed up somewhere? Thanks. import msilib c = msilib.OpenDatabase('test.msi', MSIDBOPEN_READONLY) view = c.OpenView("SELECT * FROM Registry") record = view.Fetch() -- http://mail.python.org/mailman/listinfo/python-list

Re: MsiLib

2007-08-22 Thread Martin v. Löwis
> I am trying to figure out how to use msilib to extract the registry > information from an MSI file and I really could use a good example of > how that is accomplished or even just an example using msilib in > general. Does anybody happen to know of an example for this as I wasn'

MsiLib

2007-08-22 Thread Charlie
Hi, I am trying to figure out how to use msilib to extract the registry information from an MSI file and I really could use a good example of how that is accomplished or even just an example using msilib in general. Does anybody happen to know of an example for this as I wasn't ab