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!
Checking a registry key
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
MSIcode:
Human Readable:
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~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/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/

