Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

197 lines
11 KiB

  1. //***************************************************************************
  2. //* Copyright (c) Microsoft Corporation 1996. All rights reserved. *
  3. //***************************************************************************
  4. //* *
  5. //* WEXTRACT.RC - *
  6. //* *
  7. //***************************************************************************
  8. #include <winuser.h>
  9. #include <commctrl.h>
  10. #include <windows.h>
  11. #include "resource.h"
  12. //***************************************************************************
  13. //* Copyright (c) Microsoft Corporation 1996. All rights reserved. *
  14. //***************************************************************************
  15. //* *
  16. //* WEXTRACT.DLG - *
  17. //* *
  18. //***************************************************************************
  19. IDD_LICENSE DIALOG DISCARDABLE 0, 0, 250, 200
  20. STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
  21. DS_MODALFRAME | WS_POPUP
  22. CAPTION "License"
  23. FONT 8, "MS Shell Dlg"
  24. BEGIN
  25. LTEXT "Please read the following license agreement. Press the PAGE DOWN key to see the rest of the agreement.",
  26. IDC_UNUSED,7,4,234,24
  27. EDITTEXT IDC_EDIT_LICENSE,7,32,234,118,
  28. WS_BORDER|WS_VSCROLL|ES_MULTILINE|ES_READONLY
  29. LTEXT "Do you accept all of the terms of the preceding License Agreement? If you choose No, Install will close. To install you must accept this agreement.",
  30. IDC_UNUSED,7,154,234,24
  31. PUSHBUTTON "&Yes",IDYES,136,182,50,14
  32. PUSHBUTTON "&No",IDNO,193,182,50,14
  33. END
  34. // Temp Directory dialog
  35. IDD_TEMPDIR DIALOG DISCARDABLE 0, 0, 241, 66
  36. STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
  37. DS_MODALFRAME | WS_POPUP
  38. CAPTION "Temporary folder"
  39. FONT 8, "MS Shell Dlg"
  40. BEGIN
  41. LTEXT "Please type the location where you want to place the extracted files.",
  42. IDC_TEMPTEXT,7,4,234,22
  43. EDITTEXT IDC_EDIT_TEMPDIR,7,26,170,12,WS_BORDER|ES_AUTOHSCROLL
  44. PUSHBUTTON "&Browse...",IDC_BUT_BROWSE,184,25,50,14
  45. PUSHBUTTON "OK",IDOK,127,46,50,14
  46. PUSHBUTTON "Cancel",IDCANCEL,184,46,50,14
  47. END
  48. // Overwrite file dialog
  49. IDD_OVERWRITE DIALOG DISCARDABLE 0, 0, 200, 52
  50. STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
  51. DS_MODALFRAME | WS_POPUP
  52. CAPTION "Overwrite file"
  53. FONT 8, "MS Shell Dlg"
  54. BEGIN
  55. LTEXT "Do you want to overwrite the file:",
  56. IDC_UNUSED,7,4,193,8
  57. LTEXT "",IDC_TEXT_FILENAME,7,14,193,16
  58. PUSHBUTTON "&Yes",IDYES,7,34,50,14
  59. PUSHBUTTON "Yes To &All",IDC_BUT_YESTOALL,64,34,50,14
  60. PUSHBUTTON "&No",IDNO,121,34,50,14
  61. END
  62. // Dialog 1 has a progress bar and AVI
  63. IDD_EXTRACT DIALOG DISCARDABLE 0, 0, 250, 84
  64. STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
  65. DS_MODALFRAME | WS_POPUP
  66. CAPTION "Extract"
  67. FONT 8, "MS Shell Dlg"
  68. BEGIN
  69. PUSHBUTTON "&Cancel",IDCANCEL,192,62,50,14
  70. LTEXT "Extracting",IDC_EXTRACTINGFILE,7,48,235,8,NOT
  71. WS_VISIBLE
  72. LTEXT "",IDC_FILENAME,45,48,235,8
  73. LTEXT "Initializing... Please wait...",IDC_EXTRACT_WAIT,7,48,235,8
  74. CONTROL "Generic1",IDC_GENERIC1,"msctls_progress32",0x0,7,62,176,8
  75. CONTROL "User1",IDC_USER1,ANIMATE_CLASS,WS_TABSTOP | 0x03,7,7,184,36
  76. END
  77. // Dialog 2 is minimal - no progress bar or AVI for NT3.5
  78. IDD_EXTRACT_MIN DIALOG DISCARDABLE 0, 0, 250, 84
  79. STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX |
  80. DS_MODALFRAME | WS_POPUP
  81. CAPTION "Extract"
  82. FONT 8, "MS Shell Dlg"
  83. BEGIN
  84. PUSHBUTTON "&Cancel",IDCANCEL,192,62,50,14
  85. LTEXT "Extracting",IDC_EXTRACTINGFILE,7,48,235,8,NOT
  86. WS_VISIBLE
  87. LTEXT "",IDC_FILENAME,45,48,235,8
  88. LTEXT "Initializing... Please wait...",IDC_EXTRACT_WAIT,7,48,235,8
  89. END
  90. IDD_WARNING DIALOG DISCARDABLE 0, 0, 186, 95
  91. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  92. CAPTION "Warning"
  93. FONT 8, "MS Shell Dlg"
  94. BEGIN
  95. PUSHBUTTON "E&xit",IDC_EXIT,129,76,50,14
  96. DEFPUSHBUTTON "&Continue",IDC_CONTINUE,73,76,50,14
  97. LTEXT "",IDC_WARN_TEXT,12,12,163,29
  98. LTEXT "Do you want to continue?",IDC_UNUSED,12,52,82,8
  99. END
  100. // Resources added by CABPACK.EXE
  101. //
  102. // TITLE RCDATA Title of all WExtract windows
  103. // LICENSE RCDATA License file to display
  104. // SHOWWINDOW RCDATA Installation window: 0 (DEFAULT), 1 (HIDDEN,
  105. // 2 (MINIMIZED), 3 (MAXIMIZED).
  106. // RUNPROGRAM RCDATA Installation program, or INF file
  107. // CABINET RCDATA CAB file
  108. // UPROMPT RCDATA Prompt to continue installation
  109. // CUSTOM RCDATA 1 if RUNPROGRAM is a custom command,
  110. // 0 if RUNPROGRAM is a file within the CAB.
  111. // NUMFILES RCDATA Total number of files in the CAB
  112. // FILExx RCDATA Filename in the CAB #xx
  113. // SIZExx RCDATA Size of the file #xx
  114. //***************************************************************************
  115. //* STRING TABLES *
  116. //***************************************************************************
  117. STRINGTABLE DISCARDABLE
  118. BEGIN
  119. IDS_SELECTDIR "Please select a folder to store the extracted files."
  120. IDS_PROMPT "%s"
  121. IDS_ERR_GET_DISKSPACE "Failed to get disk space information from: %s.\n\nSystem Message: %s."
  122. IDS_ERR_NO_RESOURCE "A required resource cannot be located."
  123. IDS_ERR_RESOURCEBAD "A required resource appears to be corrupted."
  124. IDS_ERR_USER_CANCEL "Are you sure you want to cancel?"
  125. IDS_ERR_OS_VERSION "Unable to retrieve operating system version information."
  126. IDS_ERR_NO_MEMORY "Memory allocation request failed."
  127. IDS_ERR_CREATE_THREAD "Unable to create extraction thread."
  128. IDS_ERR_INVALID_CABINET "Cabinet is not valid."
  129. IDS_ERR_FILETABLE_FULL "Filetable full."
  130. IDS_ERR_CHANGE_DIR "Can not change to destination folder."
  131. IDS_ERR_NO_SPACE_BOTH "Setup could not find a drive with %s KB free disk space to install the program. Please free up some space first and press RETRY or press CANCEL to exit setup."
  132. IDS_ERR_NO_SPACE_ERR "Setup could not find a drive with %s KB free disk space to install the program. Please free up some space and try again."
  133. IDS_ERR_NO_SPACE_INST "To install this program, you need %s KB disk space on drive %s. It is recommended that you free up the required disk space before you continue. \n\nDo you still want to continue?"
  134. IDS_ERR_INVALID_DIR "That folder is invalid. Please make sure the folder exists and is writable."
  135. IDS_ERR_EMPTY_DIR_FIELD "You must specify a folder with fully qualified pathname or choose Cancel."
  136. IDS_ERR_UPDATE_DIR "Could not update folder edit box."
  137. IDS_ERR_LOADFUNCS "Could not load functions required for browser dialog."
  138. IDS_ERR_LOADDLL "Could not load Shell32.dll required for browser dialog."
  139. IDS_ERR_CREATE_PROCESS "Error creating process <%s>. Reason: %s"
  140. IDS_ERR_UNKNOWN_CLUSTER "The cluster size in this system is not supported."
  141. IDS_ERR_NO_INF_INSTALLS "Windows 95 or Windows NT 4.0 Beta 2 or greater is required for this installation."
  142. IDS_ERR_LOAD_DLL "Error loading %s"
  143. IDS_ERR_GET_PROC_ADDR "GetProcAddress() failed on function '%s'. Possible reason: incorrect version of advpack.dll being used."
  144. IDS_ERR_OS_UNSUPPORTED "Windows 95 or Windows NT is required to install"
  145. IDS_ERR_CREATE_DIR "Could not create folder '%s'"
  146. IDS_ERR_GET_WIN_DIR "Error retrieving Windows folder"
  147. IDS_ERR_BADCMDLINE "Command line option syntax error. Type Command /? for Help."
  148. IDS_HELPMSG "Command line options:\n\n/Q -- Quiet modes for package,\n\n/T:<full path> -- Specifies temporary working folder,\n\n/C -- Extract files only to the folder when used also with /T.\n\n/C:<Cmd> -- Override Install Command defined by author.\n"
  149. IDS_RESTARTYESNO "You must restart your computer before the new settings will take effect.\n\nDo you want to restart your computer now?"
  150. IDS_NOTADMIN "You do not have administrator privileges on this machine. Some installations cannot be completed correctly unless they are run by an administrator."
  151. IDS_CREATE_DIR "The folder '%s' does not exist. Do you want to create it?"
  152. IDS_ERR_OPENPROCTK "NT Shutdown: OpenProcessToken error."
  153. IDS_ERR_ADJTKPRIV "NT Shutdown: AdjustTokenPrivileges error."
  154. IDS_ERR_EXITWINEX "NT Shutdown: ExitWindowsEx error."
  155. IDS_ERR_LOWSWAPSPACE "Extracting file failed. It is most likely caused by low memory (low disk space for swapping file) or corrupted Cabinet file."
  156. IDS_ERR_GETVOLINFOR "The setup program could not retrieve the volume information for drive (%s) . \nSystem message: %s."
  157. IDS_ERR_ALREADY_RUNNING "Another copy of the '%s' package is already running on your system. You can only run one copy at a time."
  158. IDS_ERR_DIALOGBOX "The installation program appears to be damaged or corrupted. Contact the vendor of this application."
  159. IDS_MULTIINST "Another copy of the '%s' package is already running on your system. Do you want to run another copy?"
  160. IDS_ERR_TARGETOS "The '%s' package is not compatible with the version of Windows you are running."
  161. IDS_ERR_FILEVER "The '%s' package is not compatible with the version of the file: %s on your system."
  162. IDS_ERR_FILENOTEXIST "Could not find the file: %s."
  163. END
  164. //***************************************************************************
  165. //* ICON RESOURCES *
  166. //***************************************************************************
  167. IDI_WEXICON ICON WEXTRACT.ICO
  168. //***************************************************************************
  169. //* BITMAP RESOURCES *
  170. //***************************************************************************
  171. IDA_FILECOPY AVI FILECOPY.AVI
  172. //***************************************************************************
  173. //* VERSION STAMP *
  174. //***************************************************************************
  175. RCINCLUDE wextract.rcv