Changeset 43878 in vbox for trunk/src/VBox/Installer/win/Stub
- Timestamp:
- Nov 15, 2012 2:36:09 PM (12 years ago)
- Location:
- trunk/src/VBox/Installer/win/Stub
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Stub/Makefile.kmk
r42288 r43878 31 31 VBoxStub_SOURCES = \ 32 32 VBoxStub.cpp \ 33 VBoxStubCertUtil.cpp \ 33 34 VBoxStub.rc 35 36 $$(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h: $(VBOX_BIN2C) $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer 37 $(VBOX_BIN2C) _VBoxStubPublicCert $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer $@ 38 34 39 VBoxStub_SDKS += \ 35 40 VBOX_NTDLL 36 41 VBoxStub_LIBS = \ 37 42 $(VBOX_LIB_RUNTIME_STATIC) \ 38 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib 43 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib \ 44 crypt32.lib 39 45 40 46 VBoxStub.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV) 41 VBoxStub.cpp_DEPS = $(VBOX_SVN_REV_KMK) 47 VBoxStub.cpp_DEPS = \ 48 $(VBOX_SVN_REV_KMK) \ 49 $(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h 50 VBoxStub.cpp_INCS += $(VBoxStub_0_OUTDIR) 42 51 43 52 # The icon location is configurable. -
trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp
r43850 r43878 49 49 #include "resource.h" 50 50 51 #include "VBoxStubCertUtil.h" 52 #include "VBoxStubPublicCert.h" 53 51 54 #ifndef _UNICODE 52 55 #define _UNICODE … … 364 367 bool fExtractOnly = false; 365 368 bool fEnableLogging = false; 369 bool fEnableSilentCert = true; 366 370 char szExtractPath[RTPATH_MAX] = {0}; 367 371 char szMSIArgs[4096] = {0}; … … 376 380 { "-silent", 's', RTGETOPT_REQ_NOTHING }, 377 381 { "/silent", 's', RTGETOPT_REQ_NOTHING }, 382 { "--no-silent-cert", 'c', RTGETOPT_REQ_NOTHING }, 383 { "-no-silent-cert", 'c', RTGETOPT_REQ_NOTHING }, 384 { "/no-silent-cert", 'c', RTGETOPT_REQ_NOTHING }, 378 385 { "--logging", 'l', RTGETOPT_REQ_NOTHING }, 379 386 { "-logging", 'l', RTGETOPT_REQ_NOTHING }, … … 411 418 break; 412 419 420 case 'c': 421 fEnableSilentCert = false; 422 break; 423 413 424 case 'l': 414 425 fEnableLogging = true; … … 446 457 "--extract - Extract file contents to temporary directory\n" 447 458 "--silent - Enables silent mode installation\n" 459 "--no-silent-cert - Do not install VirtualBox Certificate automatically when --silent option is specified\n" 448 460 "--path - Sets the path of the extraction directory\n" 449 461 "--msiparams <parameters> - Specifies extra parameters for the MSI installers\n" … … 544 556 545 557 RTStrFree(pszPathCustomDir); 558 } 559 560 /* 561 * If --silent command line option is specified, do force public 562 * certificate install in background (i.e. completely prevent 563 * user interaction) 564 */ 565 if (TRUE == g_fSilent && TRUE == fEnableSilentCert) 566 { 567 if (!addCertToStore(CERT_SYSTEM_STORE_LOCAL_MACHINE, 568 "TrustedPublisher", 569 g_ab_VBoxStubPublicCert, 570 sizeof(g_ab_VBoxStubPublicCert))) 571 { 572 /* Interrupt installation */ 573 vrc = VERR_NO_CHANGE; 574 break; 575 } 546 576 } 547 577
Note:
See TracChangeset
for help on using the changeset viewer.