Issue with WizardForm.Color := clNone Transparency in Inno Setup (Win11 Style)

79 views
Skip to first unread message

super big mouth

unread,
May 17, 2025, 4:30:54 PM5/17/25
to innosetup

Dear Support,

I’ve been highly impressed with Inno Setup – it’s one of the most robust installation tools I’ve ever used. However, I’m currently stuck on an issue that neither Google searches nor AI assistants could resolve. I’d sincerely appreciate your help!

Problem:

  • Trying to achieve a modern Windows 11-style window (rounded corners + drop shadow).
  • Using Inno Setup 5.6+ with a 32-bit transparent PNG (attached).
  • Set WizardForm.Color := clNone (documented as "transparent"), but shadow edges turn black instead of blending.

What I’ve Tried:
✔ Confirmed PNG has alpha channel (tested in Photoshop).
✔ Tested multiple versions (5.6.0+).

Could you advise how to properly implement transparency? Thank you for your expertise!

bg.png

Eivind Bakkestuen

unread,
May 17, 2025, 10:51:00 PM5/17/25
to inno...@googlegroups.com
Did your multiple versions test include the latest v6.x?

--
You received this message because you are subscribed to the Google Groups "innosetup" group.
To unsubscribe from this group and stop receiving emails from it, send an email to innosetup+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/innosetup/be03ddef-eb36-4187-95d7-7b58b2aa17edn%40googlegroups.com.

super big mouth

unread,
May 18, 2025, 4:06:34 AM5/18/25
to innosetup

Yes, including v6.4.3 (see attached).

clNone is black.

20250518153345.png
screenshot_2025-05-18_15-55-30.png

Martijn Laan

unread,
May 18, 2025, 8:51:05 AM5/18/25
to innosetup
Op 17-5-2025 om 17:18 schreef super big mouth:
Trying to achieve a modern Windows 11-style window (rounded corners + drop shadow).

Are you talking about getting this on older versions of Windows? Because on Windows 11 the corners of the wizard should be rounded already.

This transparency and shadow is handled by Windows' Desktop Window Manager (DWM) and your current approach is never going to work. You will need to call DWM functions instead to make such changes but I don't know which ones (if any) would get you rounded corners on older version of Windows. Also don't think it's a good idea to begin with: on an older version like Windows 10 the wizard should look like a Windows 10 window and not a Windows 11 window.

Many DWM functions are undocumented BTW, and risky to call, especially from an installer which is supposed to always work.

Greetings,
Martijn

Reply all
Reply to author
Forward
0 new messages