I'm trying to set the ARPPRODUCTICON property
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
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?
Get latest updates about Open Source Projects, Conferences and News.