Hi,
I need help on this please.
I basically want to check if an application A already exists in the system, if does not exist, install app A, if exists exit the program.
I am running this on windows 7 64 bit app. Once I install the app A, the uninstall string goes to HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{A5DCF955-5D4A-471D-8CB3-DCFDF5C5DEE7}
With DisplayVersion as 12.1.5337.5000
So here I am checking this value
Below is my script
item: Set Variable
Variable=REG
Value=SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
end
item: Set Variable
Variable=PRODUCTCODE
Value={A5DCF955-5D4A-471D-8CB3-DCFDF5C5DEE7}
end
item: Get Registry Key Value
Variable=TEST
Key=%REG%%PRODUCTCODE%
Value Name=DisplayVersion
Flags=00000100
end
item: Display Message
Title=%TEST%
end
item: Exit Installation
Variable=2
Value=
end
However here, when I run the script, even if the registry is there it still returns back a null value!!
Please advise...
Thanks in advance.