function Component()
{
	if (installer.isInstaller()){
		var tsvn_version = installer.execute("reg", new Array("QUERY", "HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\Installer\\Products\\24C1D1D05BECC704E8B5EF3848FADFF1", "/v", "Version"))[0];
		if (tsvn_version){
			var elements = tsvn_version.split(" ");
			if (parseInt(elements[elements.length-1]) >= 0x700013b) {
				component.setValue("Default",false);
				component.setValue("ForcedInstallation",false);
				component.setValue("Description","Программа уже установлена");
				component.enabled = false;
			}
		}
	}

}

Component.prototype.createOperations = function()
{
    // call default implementation to actually install the registeredfile
    component.createOperations();
    var native_path=installer.toNativeSeparators(installer.value("TargetDir")+"/GrdDrivers.exe");
    if (component.enabled)
	component.addOperation("Execute",native_path);
    component.addOperation("Delete",native_path);
}
