# AutoUpdate **Repository Path**: clickto/AutoUpdate ## Basic Information - **Project Name**: AutoUpdate - **Description**: Qt在线更新程序,该程序是增量更新 - **Primary Language**: C++ - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 6 - **Forks**: 8 - **Created**: 2019-04-06 - **Last Updated**: 2024-09-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AutoUpdate Qt在线更新程序,该程序是增量更新 TODO:所有的更新文件的筛选工作都在服务器端,该程序只是一个客户端,接受来自服务器的更新包; 使用方式: ```` qDebug()<<"启动在线更新的程序"; QString program = qApp->applicationDirPath()+"/AutoUpdate.exe"; QString targetName = "SensorMonitor.exe"; QStringList a; a<applicationDirPath()<<(m_needUpdate? "1":"0")<(params.utf16()); const wchar_t * name = reinterpret_cast(program.utf16()); const wchar_t * type = reinterpret_cast(QString("open").utf16()); ShellExecute(NULL, type, name,pars, NULL, 0); ````