How to detect GDI+ runtime installed
Help...
5 posts
LoadLibrary.... easier 😉
!define PRODUCT "gdiplus"
Name ${PRODUCT}
OutFile ${PRODUCT}.exe
ShowInstDetails show
XPStyle on
Function .onInit
MSIBanner::Show /NOUNLOAD "Reading GDI+"
System::Call 'kernel32::LoadLibrary(t "gdiplus.dll") i .r1'
MSIBanner::Update /NOUNLOAD "Lookin with system plugin"
Sleep 1000
StrCmp $1 "" NoFoundIt FoundIt
FoundIt:
StrCpy $2 "Found it"
System::Call 'kernel32::FreeLibrary(i $1)'
goto Exit
NoFoundIt:
StrCpy $2 "No Found it"
Exit:
MSIBanner::Update /NOUNLOAD "Finishing..."
Sleep 1000
FunctionEnd
Section
MSIBanner:😁estroy
DetailPrint $2
SectionEnd