Changeset 106896 in vbox for trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
- Timestamp:
- Nov 8, 2024 4:39:19 PM (3 months ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Installer/InstallHelper/VBoxGuestInstallHelper.cpp
r106895 r106896 1 1 /* $Id$ */ 2 2 /** @file 3 * VBox DrvInst- Driver and service installation helper for Windows guests.3 * VBoxGuestInstallHelper - Driver and service installation helper for Windows guests. 4 4 */ 5 5 … … 59 59 #include <iprt/string.h> 60 60 #include <iprt/system.h> 61 #include <iprt/thread.h> /* For RTThreadSleep(). */ 61 62 #include <iprt/utf16.h> 62 63 … … 594 595 } 595 596 597 /** 598 * Shows a deprecation notice for a command. 599 * 600 * @param pszCmd Command which is deprecated. 601 */ 602 static void showCmdDeprecationNotice(const char *pszCmd) 603 { 604 PrintStr("!!! Deprecation Notice !!!\n"); 605 PrintSSS("\tThe command \"", pszCmd, "\" is deprecated, is not supported anymore\n"); 606 PrintStr("\tand will be removed in a future version.\n"); 607 PrintStr("!!! Deprecation Notice !!!\n\n"); 608 PrintStr("Please use VBoxGuestInstallHelper.exe instead.\n\n"); 609 610 RTThreadSleep(RT_MS_10SEC); /* Make it painful to use. */ 611 } 612 596 613 /** Handles 'driver install'. */ 597 614 static int handleDriverInstall(unsigned cArgs, wchar_t **papwszArgs) 598 615 { 616 showCmdDeprecationNotice("install"); 617 599 618 char *pszInfFile = NULL; 600 619 int rc = RTUtf16ToUtf8(papwszArgs[0], &pszInfFile); … … 637 656 static int handleDriverUninstall(unsigned cArgs, wchar_t **papwszArgs) 638 657 { 658 showCmdDeprecationNotice("uninstall"); 659 639 660 char *pszInfFile = NULL; 640 661 int rc = RTUtf16ToUtf8(papwszArgs[0], &pszInfFile); … … 683 704 static int handleDriverExecuteInf(unsigned cArgs, wchar_t **papwszArgs) 684 705 { 706 showCmdDeprecationNotice("executeinf"); 707 685 708 char *pszInfFile = NULL; 686 709 int rc = RTUtf16ToUtf8(papwszArgs[0], &pszInfFile); … … 2219 2242 "Version: " RT_XSTR(VBOX_VERSION_MAJOR) "." RT_XSTR(VBOX_VERSION_MINOR) "." RT_XSTR(VBOX_VERSION_BUILD) "r" RT_XSTR(VBOX_SVN_REV) "\r\n" 2220 2243 "\r\n" 2221 "Syntax: VBox DrvInst<command> <subcommand>\r\n"2244 "Syntax: VBoxGuestInstallHelper <command> <subcommand>\r\n" 2222 2245 "\r\n" 2223 2246 "Drivers:\r\n" 2224 " VBox DrvInstdriver install <inf-file> [pnp-id] [log-file]\r\n"2225 " VBox DrvInstdriver uninstall <inf-file> <model> [pnp-id] [log-file]\r\n"2226 " VBox DrvInstdriver executeinf <inf-file> [section]\r\n"2227 " VBox DrvInstdriver nt4-install-video [install-dir]\r\n"2247 " VBoxGuestInstallHelper driver install <inf-file> [pnp-id] [log-file]\r\n" 2248 " VBoxGuestInstallHelper driver uninstall <inf-file> <model> [pnp-id] [log-file]\r\n" 2249 " VBoxGuestInstallHelper driver executeinf <inf-file> [section]\r\n" 2250 " VBoxGuestInstallHelper driver nt4-install-video [install-dir]\r\n" 2228 2251 "\r\n" 2229 2252 "Service:\r\n" 2230 " VBox DrvInstservice create <name> <display-name> <service-type>\r\n"2253 " VBoxGuestInstallHelper service create <name> <display-name> <service-type>\r\n" 2231 2254 " <start-type> <binary-path> [load-order] [deps] [user] [password]\r\n" 2232 " VBox DrvInstservice delete <name>\r\n"2255 " VBoxGuestInstallHelper service delete <name>\r\n" 2233 2256 "\r\n" 2234 2257 "Network Provider:\r\n" 2235 " VBox DrvInstnetprovider add <name> <position>\r\n"2236 " VBox DrvInstnetprovider remove <name>\r\n"2258 " VBoxGuestInstallHelper netprovider add <name> <position>\r\n" 2259 " VBoxGuestInstallHelper netprovider remove <name>\r\n" 2237 2260 "\r\n" 2238 2261 "Registry:\r\n" 2239 " VBox DrvInstregistry write <root> <sub-key> <value-name> <type> <value>\r\n"2262 " VBoxGuestInstallHelper registry write <root> <sub-key> <value-name> <type> <value>\r\n" 2240 2263 " [binary-conversion] [max-size]\r\n" 2241 " VBox DrvInstregistry delete <root> <sub-key> <value-name>\r\n"2264 " VBoxGuestInstallHelper registry delete <root> <sub-key> <value-name>\r\n" 2242 2265 /** @todo Add roots for these two. */ 2243 " VBox DrvInstregistry addmultisz <sub-key> <value-name> <to-add> <position>\r\n"2244 " VBox DrvInstregistry delmultisz <sub-key> <value-name> <to-remove>\r\n"2245 " VBox DrvInstregistry addlistitem <root> <sub-key> <value-name> <to-add>\r\n"2266 " VBoxGuestInstallHelper registry addmultisz <sub-key> <value-name> <to-add> <position>\r\n" 2267 " VBoxGuestInstallHelper registry delmultisz <sub-key> <value-name> <to-remove>\r\n" 2268 " VBoxGuestInstallHelper registry addlistitem <root> <sub-key> <value-name> <to-add>\r\n" 2246 2269 " [position [dup|no-dup]]\r\n" 2247 " VBox DrvInstregistry dellistitem <root> <sub-key> <value-name> <to-remove>\r\n"2270 " VBoxGuestInstallHelper registry dellistitem <root> <sub-key> <value-name> <to-remove>\r\n" 2248 2271 "\r\n" 2249 2272 "Standard options:\r\n" 2250 " VBox DrvInst[help|--help|/help|-h|/h|-?|/h] [...]\r\n"2251 " VBox DrvInst[version|--version|-V]\r\n"2273 " VBoxGuestInstallHelper [help|--help|/help|-h|/h|-?|/h] [...]\r\n" 2274 " VBoxGuestInstallHelper [version|--version|-V]\r\n" 2252 2275 ); 2253 2276 RT_NOREF(cArgs, papwszArgs); … … 2270 2293 } s_aActions[] = 2271 2294 { 2272 { "driver", "install", 1, 3, handleDriverInstall }, 2273 { "driver", "uninstall", 2, 4, handleDriverUninstall }, 2274 { "driver", "executeinf", 1, 3, handleDriverExecuteInf }, 2295 { "driver", "install", 1, 3, handleDriverInstall }, /* Deprecated */ 2296 { "driver", "uninstall", 2, 4, handleDriverUninstall }, /* Deprecated */ 2297 { "driver", "executeinf", 1, 3, handleDriverExecuteInf }, /* Deprecated */ 2275 2298 { "driver", "nt4-install-video", 0, 1, handleDriverNt4InstallVideo }, 2276 2299 { "service", "create", 5, 9, handleServiceCreate },
Note:
See TracChangeset
for help on using the changeset viewer.