I'm trying to set the ARPPRODUCTICON property
(http://msdn.microsoft.com/en-us/library/windows/desktop/aa367593%28v=vs.85%29.aspx)
for an MSI I've created. According to the documentation, the value for
this property needs to be the name identifier of the Icon Table
(http://msdn.microsoft.com/en-us/library/windows/desktop/aa369210%28v=vs.85%29.aspx)
entry that describes the primary icon for the application.

The Icon Table entry itself consists of the name identifier (a unique
string), and binary data for the icon. It's this second parameter that
I can't figure out how to set.

I tried the following:

property_table = [
    ('ARPPRODUCTICON', open('MyApp.ico', 'rb').read()),
    ]

But when setting this property table an exception is thrown because it
seems I cannot pass a byte array for the binary data. I've also tried
setting it to various strings ('MyApp.ico', 'MyApp.exe',
'MyApp.exe,1') but none of these work.

So how do I create an Icon Table using cx_freeze? If that's not
possible, or not the correct approach for setting ARPPRODUCTICON, how
do I go about setting this property?

Regards,
Ashish.

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
cx-freeze-users mailing list
cx-freeze-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cx-freeze-users

Reply via email to