Lines Matching refs:updName
31 ByteString exeName = Platform::ExecutableName(), updName; in update_start() local
38 updName = exeName; in update_start()
41 updName = exeName.substr(0, exeName.length() - 4); in update_start()
42 updName = updName + "_upd.exe"; in update_start()
44 if (!MoveFile(exeName.c_str(), updName.c_str())) in update_start()
66 updName = exeName + "-update"; in update_start()
68 f = fopen(updName.c_str(), "w"); in update_start()
74 unlink(updName.c_str()); in update_start()
79 if (chmod(updName.c_str(), 0755)) in update_start()
81 unlink(updName.c_str()); in update_start()
85 if (rename(updName.c_str(), exeName.c_str())) in update_start()
87 unlink(updName.c_str()); in update_start()
100 ByteString exeName = Platform::ExecutableName(), updName; in update_finish() local
107 updName = exeName; in update_finish()
110 updName = exeName.substr(0, exeName.length() - 4); in update_finish()
111 updName = updName + "_upd.exe"; in update_finish()
114 printf("Update: Temp EXE name: %s\n", updName.c_str()); in update_finish()
117 while (!DeleteFile(updName.c_str())) in update_finish()
126 updName = exeName; in update_finish()
129 updName = exeName.substr(0, exeName.length() - 4); in update_finish()
130 updName = updName + "_update.exe"; in update_finish()
131 DeleteFile(updName.c_str()); in update_finish()