Page 1 of 1
Checking a registry key
Posted: Sun Jan 10, 2010 2:59 pm
by Zero-G.
Hey
I use IA9
Can anyone please help me, how to write a MSI Code, which should do a thing like:
If RegistryKey(HKEY_Current_User\\Software\\My\\isInstalled) = False then
abort installation
End IF
THX!
Posted: Sun Jan 10, 2010 3:49 pm
by MichaelNesmith
MSIcode:
Code: Select all
~InstallAware Clipboard Data~
~End~
~{775F1628-FC6F-4C2E-A94C-0CE21F5FA5D5}~
~Terminate Install~
~{62A6104F-72AA-454D-9458-751C66E77A91}~
~If~
~{D3A06801-7F9A-4C08-803C-50E010C53215}~
~REG_VALUE~
~0~
~FALSE~
~FALSE~
~Read Registry~
~{EA7A7087-1785-49B4-855C-1F5FB0B2E455}~
~REG_VALUE~
~1~
~Software\\My~
~isInstalled~
Human Readable:
Code: Select all
Read Registry Key HKCU\\Software\\My\\isInstalled into REG_VALUE
if Variable REG_VALUE Equals FALSE
Terminate Installation
end
Posted: Sun Jan 10, 2010 3:59 pm
by Zero-G.
WOW
Thanks. - I was looking for the MSI....
No, not really, Thanks for the correct Human Code!
THX