Checking a registry key

Got a problem you cannot solve? Try here.
Post Reply
Zero-G.
Posts: 41
Joined: Thu Nov 19, 2009 7:42 am

Checking a registry key

Post 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!
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post 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
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Zero-G.
Posts: 41
Joined: Thu Nov 19, 2009 7:42 am

Post by Zero-G. »

WOW

Thanks. - I was looking for the MSI.... :o

No, not really, Thanks for the correct Human Code!

THX
Post Reply