Archive: Howto detect enabled Aero Glass (Vista) using NSIS?


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


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?

http://msdn2.microsoft.com/en-us/library/aa969518.aspx


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


I will try to figure out how the system plugin works (not very familiar with that).

Thanks @ Anders!


I could get it work. I tried something like this:

System::Get "dll::DwmIsCompositionEnabled(i r0)"
Pop $0
System::Call "$0"
MessageBox MB_OK "$0"
as well as this:
System::Call "dll::DwmIsCompositionEnabled(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. :cry: I tried very hard but failed. Any help is very welcome!! :)

System::Call "dwmapi::DwmIsCompositionEnabled(*i .r0)i"

>MessageBox MB_OK "$0"
maybe (I don't have Vista to test on)

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! :D