Changeset 1545 for trunk/gsinstaller/gsinstall.cpp
- Timestamp:
- 2000-09-14T02:01:44+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/gsinstall.cpp
r1543 r1545 371 371 // if we are not running in the Windows temporary directory, copy this exe 372 372 // and the installation log to the temporary directory and run them there 373 MessageBox(0, tempPath.cString(), this->sourcePath->cString(), MB_OK); 373 374 if (*this->sourcePath != tempPath) 374 375 { … … 921 922 case WM_USER: 922 923 { 924 if (strstr(app_cmdLine, "-u") != NULL) 925 { 923 926 // uninstall action 924 if (strstr(app_cmdLine, "-u") != NULL) 925 { 927 926 928 // skip past the -u option itself 927 929 char *at = strstr(app_cmdLine, "-u"); 928 930 at += strlen("-u"); 929 931 930 932 // extract the log file path from the command line 931 933 while (*at == ' ') 932 { 934 { 933 935 at ++; 934 936 } … … 941 943 { 942 944 install.uninstall(); 943 945 944 946 // close the log to write back all changes to the log; if the file 945 947 // will be deleted, it must be closed; copying may also fail, so it's 946 948 // safer to close it before doing either. 947 949 install.closeLog(); 948 950 949 951 // if the install is empty, terminate all final items (currently the 950 952 // log and setup executables, … … 953 955 // delete the log file 954 956 DeleteFile(logPath.cString()); 955 957 956 958 // get it's parent to find where the gssetup executable will be 957 959 FilePath *logParent = logPath.parent(); … … 973 975 // install wizard 974 976 else 975 { 977 { 976 978 GSInstall install(false); 977 979 GSInstall_init_wizard(install); … … 1007 1009 break; 1008 1010 1011 case WM_USER + 1: 1012 break; 1013 1009 1014 case WM_CLOSE: 1010 1015 /*if (!file_ischanged || IDCANCEL != file_query(Window, file_name))*/ … … 1038 1043 app_instance, 1039 1044 NULL); 1040 1045 1041 1046 ShowWindow(app_window, Show); 1042 1047 1043 1048 PostMessage(app_window, WM_USER, 0, 0L); 1044 1049 } 1045 1050 1046 1051 void WinClassInit(void) 1047 { 1052 { 1048 1053 WNDCLASS Class; 1049 1054 … … 1055 1060 Class.lpszMenuName = NULL; 1056 1061 Class.hbrBackground = (HBRUSH) (COLOR_APPWORKSPACE+1); 1057 //Class.style = NULL;1058 1062 Class.style = 0; 1059 1063 Class.cbClsExtra = 0; 1060 1064 Class.cbWndExtra = 0; 1061 1065 RegisterClass(&Class); 1062 /*1063 Class.lpszClassName = "GSInstall:Splash";1064 Class.hInstance = app_instance;1065 Class.lpfnWndProc = (WNDPROC) splash_windproc;1066 Class.hCursor = LoadCursor(NULL, IDC_ARROW);1067 Class.hIcon = NULL;1068 Class.lpszMenuName = NULL;1069 Class.hbrBackground = (HBRUSH) (COLOR_WINDOW+1);1070 Class.style = NULL;1071 Class.cbClsExtra = 0;1072 Class.cbWndExtra = 0;1073 RegisterClass(&Class);*/1074 1066 } 1075 1067 … … 1080 1072 { 1081 1073 MSG msg; 1082 // HACCEL accel;1083 1074 1084 1075 app_cmdLine = (char *) malloc(lstrlen(CmdLine) + 1); … … 1091 1082 WinClassInit(); 1092 1083 InitCommonControls(); 1093 // grbStatic_registerClass(Current); 1094 } 1095 1084 } 1085 1096 1086 /* -- init instance */ 1097 1087 GSInstall_init(Current, CmdShow); 1098 1099 // config_init("ReTreeval");1100 1101 // accel = LoadAccelerators(Current, "ReTreevalMenu");1102 1088 1103 1089 while (GetMessage(&msg, NULL, 0, 0)) 1104 1090 { 1105 /*if (!TranslateAccelerator(app_window, accel, &msg))1106 { */1107 1091 TranslateMessage(&msg); 1108 1092 DispatchMessage(&msg); 1109 /*}*/1110 1093 } 1111 1094 return (int) msg.wParam;
Note:
See TracChangeset
for help on using the changeset viewer.