inno setup.exe fails with Floating point division by zero on Windows XP

后端 未结 3 1480
难免孤独
难免孤独 2021-02-20 02:37

I have setup an inno setup script that installs my application. The resulting setup.exe will install properly on windows vista/7 but fails with the division by zero error on wi

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-20 02:47

    You can use netpbm tools to convert to a bmp. ie from png:

    pngtopnm icon.png | ppmtobmp - > icon.bmp

    The answers above seem correct, unfortunately I ended up wasting a lot of time before I found them - and I could swear I had tried to tick gimp's "no colourspace" box. And so this is what I ended up doing instead, which can be scripted to convert many icons, and may also help someone facing the same issue.

提交回复
热议问题