Skip to content
⌘ NSIS Forum Archive

Howto detect enabled Aero Glass (Vista) using NSIS?

7 posts

dbach#

Howto detect enabled Aero Glass (Vista) using NSIS?

Hi there,

I've got a problem. Our Software gets in trouble under Vista with Aero Glass enabled (due to direct-x reason). Never the less, we want to show a warning if a customer installs our Software and has Aero Glass enabled. But how can I check if Aero Glass is enabled or not?

Thanks for any help! 🙂

Good start in the week,
dbach
dbach#
I've found something with COM-Objects. But I never worked with them and they are also a level to high for me. Can anyone support me?

Anders#
Just because it returns HRESULT does not make it COM, looks like a normal function to me, you should be able to call it with the system plugin
dbach#
I will try to figure out how the system plugin works (not very familiar with that).

Thanks @ Anders!
dbach#
I could get it work. I tried something like this:

System::Get "dll:😁wmIsCompositionEnabled(i r0)"
Pop $0
System::Call "$0"
MessageBox MB_OK "$0"
as well as this:
System::Call "dll:😁wmIsCompositionEnabled(i r0)"
Pop $0
MessageBox MB_OK "$0"
I am really absolutly not familiar with this stuff and I can't get it working here. 😢 I tried very hard but failed. Any help is very welcome!! 🙂
Anders#
System::Call "dwmapi::DwmIsCompositionEnabled(*i .r0)i"
MessageBox MB_OK "$0" 
maybe (I don't have Vista to test on)
dbach#
Originally posted by Anders
System::Call "dwmapi::DwmIsCompositionEnabled(*i .r0)i"
MessageBox MB_OK "$0" 
maybe (I don't have Vista to test on)
It works. Thanks a lot! 😁