function Component()
{
    if (installer.isInstaller()) {
        installer.addWizardPage( component, "CreateDesktopEntry", QInstaller.ReadyForInstallation );
    }
}

Component.prototype.createOperations = function()
{
    // call default implementation to actually install README.txt!
    component.createOperations();

    if (systemInfo.productType === "windows") {
        component.addOperation("CreateShortcut", "@TargetDir@/roadcenter.exe", "@StartMenuDir@/АРМ оператора.lnk",
            "workingDirectory=@TargetDir@", "iconPath=@TargetDir@/roadcenter.exe",
            "description=АРМ оператора АСУДД Спектр");
        component.addOperation("CreateShortcut", "@TargetDir@/maintenancetool.exe", "@StartMenuDir@/Изменить АРМ оператора.lnk",
            "--sr", "workingDirectory=@TargetDir@", "iconPath=@TargetDir@/maintenancetool.exe",
            "description=Изменить АРМ оператора АСУДД Спектр");
		var create_desktop_entry = installer.value("create_desktop_entry","0");
		if (create_desktop_entry == "0"){
			var widget = gui.pageWidgetByObjectName("DynamicCreateDesktopEntry");
			if (widget == null)
				return;
			create_desktop_entry = widget.createEntry.checked?"1":"0";
			installer.setValue("create_desktop_entry",create_desktop_entry)
		}
		if (create_desktop_entry == "1") {
			//QMessageBox.information("","i","installationStarted +2 "+"@StartMenuDir@\\АРМ оператора.lnk "+QDesktopServices.storageLocation(QDesktopServices.DesktopLocation));
			var desktop_dir = installer.toNativeSeparators(QDesktopServices.storageLocation(QDesktopServices.DesktopLocation));
			component.addOperation("Execute", "cmd", "/c", "copy", "@StartMenuDir@\\АРМ оператора.lnk", desktop_dir,"UNDOEXECUTE","cmd","/c","del",desktop_dir+"\\АРМ оператора.lnk");
		}
    }
}

