if ( DeploymentSetup.DoesRegistryKeyExist("HKEY_CLASSES_ROOT\\CLSID\\$REGISTRYKEY$" ) ) DeploymentSetup.CanInstallCode = false;