comparison netinstall/main.cc @ 657:ce0b3f2eff35

[xemacs-hg @ 2001-09-09 04:37:41 by andyp] DDE, netinstall and cygwin file fixes
author andyp
date Sun, 09 Sep 2001 04:37:48 +0000
parents 3078fd1074e8
children
comparison
equal deleted inserted replaced
656:4035041996d8 657:ce0b3f2eff35
49 HINSTANCE hPrevInstance, 49 HINSTANCE hPrevInstance,
50 LPSTR command_line, 50 LPSTR command_line,
51 int cmd_show) 51 int cmd_show)
52 { 52 {
53 hinstance = h; 53 hinstance = h;
54 int pos = -1;
55 if ((pos = strcspn(command_line, "-")) >= 0
56 &&
57 command_line[pos+1] == 'u')
58 {
59 next_dialog = IDD_UNINSTALL;
60 log (LOG_TIMESTAMP, "Starting XEmacs uninstall");
61 uninstall = 1;
62 }
63 else
64 {
65 next_dialog = IDD_SPLASH;
66 log (LOG_TIMESTAMP, "Starting XEmacs install");
67 }
54 68
55 next_dialog = IDD_SPLASH; 69 do_init(h);
56
57 log (LOG_TIMESTAMP, "Starting XEmacs install");
58
59 char cwd[_MAX_PATH];
60 GetCurrentDirectory (sizeof (cwd), cwd);
61 local_dir = strdup (cwd);
62 log (0, "Current Directory: %s", cwd);
63 70
64 while (next_dialog) 71 while (next_dialog)
65 { 72 {
66 switch (next_dialog) 73 switch (next_dialog)
67 { 74 {
68 case IDD_SPLASH: do_splash (h); break; 75 case IDD_SPLASH: do_splash (h); break;
76 case IDD_UNINSTALL: do_uninstall (h); break;
69 case IDD_SOURCE: do_source (h); break; 77 case IDD_SOURCE: do_source (h); break;
70 case IDD_LOCAL_DIR: do_local_dir (h); break; 78 case IDD_LOCAL_DIR: do_local_dir (h); break;
71 case IDD_ROOT: do_root (h); break; 79 case IDD_ROOT: do_root (h); break;
72 case IDD_NET: do_net (h); break; 80 case IDD_NET: do_net (h); break;
73 case IDD_SITE: do_site (h); break; 81 case IDD_SITE: do_site (h); break;