writeReg()
{
QString installPath = QApplication::applicationDirPath();
QDir appDir(QDir::toNativeSeparators(QApplication::applicationDirPath()));
appDir.cdUp();
QString starterFileWithPath = QDir::toNativeSeparators(appDir.absolutePath());
QSettings *reg = new QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\a.exe", QSettings::NativeFormat);
reg->setValue(".", starterFileWithPath);
reg->deleteLater();
reg = new QSettings("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\" + PRODUCT_NAME, QSettings::NativeFormat);
reg->setValue("DisplayIcon", starterFileWithPath);
reg->setValue("DisplayName", PRODUCT_NAME + VERSION);
reg->setValue("DisplayVersion", VERSION);
reg->deleteLater();