Need help on detecting if Adobe AIR is installer
Hello...i´m trying to make an installer that is capable to detect if Adobe AIR is installed...
Looked into the registry and have found two keys that holds the Adobe Air data.
[HKEY_CLASSES_ROOT\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC]
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC]
both with the same data in each.
So i have found this code to detect the path and version of Adobe Flash IE Plugin
Name "Output"
OutFile "Output.exe"
!include "FileFunc.nsh"
!insertmacro GetFileVersion
Section
ReadRegStr $0 HKLM "SOFTWARE\Classes\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC" "ProductName"
IfErrors notinst
${GetFileVersion} '$0' $1
IfErrors notinst
MessageBox MB_OK '$$0={$0}$\n$$1={$1}' IDOK end
notinst:
MessageBox MB_OK 'Macromedia Flash Player component for IE is not found, Valor $$0=$0'
end:
SectionEnd
And if you see...i´m trying to read that Key, but the awful result is an empty string ans the error set to true
I have included the key export to reg file for you to see...
Please advise.
Thanks a lot!
EDIT: I dont know whit the attachment is gone...
Here is the registry export.
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC]
"ProductName"="Adobe Integrated Runtime (AIR)"
"PackageCode"="99E592108416019478501F9180E3C1ED"
"Language"=dword:00000409
"Version"=dword:01000005
"Assignment"=dword:00000001
"AdvertiseFlags"=dword:00000184
"InstanceType"=dword:00000000
"AuthorizedLUAApp"=dword:00000000
"Clients"=hex(7):3a,00,00,00,00,00
@=""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC\SourceList]
"PackageName"="setup.msi"
"LastUsedSource"=hex(2):6e,00,3b,00,31,00,3b,00,43,00,3a,00,5c,00,44,00,4f,00,\
43,00,55,00,4d,00,45,00,7e,00,31,00,5c,00,4d,00,61,00,72,00,74,00,69,00,6e,\
00,5c,00,4c,00,4f,00,43,00,41,00,4c,00,53,00,7e,00,31,00,5c,00,54,00,65,00,\
6d,00,70,00,5c,00,41,00,49,00,52,00,32,00,39,00,2e,00,74,00,6d,00,70,00,5c,\
00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC\SourceList\Media]
"1"=";"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\D51CF99160E2EB743BAEAC80F6BC49FC\SourceList\Net]
"1"=hex(2):43,00,3a,00,5c,00,44,00,4f,00,43,00,55,00,4d,00,45,00,7e,00,31,00,\
5c,00,4d,00,61,00,72,00,74,00,69,00,6e,00,5c,00,4c,00,4f,00,43,00,41,00,4c,\
00,53,00,7e,00,31,00,5c,00,54,00,65,00,6d,00,70,00,5c,00,41,00,49,00,52,00,\
32,00,39,00,2e,00,74,00,6d,00,70,00,5c,00,00,00