Changeset 43894 in vbox for trunk/src/VBox/Installer/win/Stub
- Timestamp:
- Nov 16, 2012 9:53:32 AM (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
r43878 r43894 29 29 VBoxStub_TEMPLATE= VBOXSTUB 30 30 VBoxStub_DEFS = _WIN32_WINNT=0x0501 IN_RT_R3 31 31 32 VBoxStub_SOURCES = \ 32 33 VBoxStub.cpp \ 33 VBoxStubCertUtil.cpp \34 34 VBoxStub.rc 35 36 $$(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h: $(VBOX_BIN2C) $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer37 $(VBOX_BIN2C) _VBoxStubPublicCert $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer $@38 35 39 36 VBoxStub_SDKS += \ … … 41 38 VBoxStub_LIBS = \ 42 39 $(VBOX_LIB_RUNTIME_STATIC) \ 43 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib \ 44 crypt32.lib 40 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Msi.lib 45 41 46 42 VBoxStub.cpp_DEFS += VBOX_SVN_REV=$(VBOX_SVN_REV) 47 VBoxStub.cpp_DEPS = \ 48 $(VBOX_SVN_REV_KMK) \ 49 $(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h 43 VBoxStub.cpp_DEPS = $(VBOX_SVN_REV_KMK) 44 45 # If signing mode is enabled, then add the possibility to 46 # install public certificate automatically in /silent mode 47 ifdef VBOX_SIGNING_MODE 48 49 VBoxStub_SOURCES += VBoxStubCertUtil.cpp 50 VBoxStub_LIBS += crypt32.lib 51 VBoxStub.cpp_DEPS += $(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h 50 52 VBoxStub.cpp_INCS += $(VBoxStub_0_OUTDIR) 53 VBoxStub.cpp_DEFS += VBOX_SIGNING_MODE 54 55 $$(VBoxStub_0_OUTDIR)/VBoxStubPublicCert.h: $(VBOX_BIN2C) $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer 56 $(VBOX_BIN2C) _VBoxStubPublicCert $(PATH_ROOT)/src/VBox/Additions/WINNT/tools/oracle-vbox.cer $@ 57 58 endif 51 59 52 60 # The icon location is configurable. -
trunk/src/VBox/Installer/win/Stub/VBoxStub.cpp
r43878 r43894 49 49 #include "resource.h" 50 50 51 #ifdef VBOX_SIGNING_MODE 51 52 #include "VBoxStubCertUtil.h" 52 53 #include "VBoxStubPublicCert.h" 54 #endif 53 55 54 56 #ifndef _UNICODE … … 367 369 bool fExtractOnly = false; 368 370 bool fEnableLogging = false; 371 #ifdef VBOX_SIGNING_MODE 369 372 bool fEnableSilentCert = true; 373 #endif 370 374 char szExtractPath[RTPATH_MAX] = {0}; 371 375 char szMSIArgs[4096] = {0}; … … 380 384 { "-silent", 's', RTGETOPT_REQ_NOTHING }, 381 385 { "/silent", 's', RTGETOPT_REQ_NOTHING }, 386 #ifdef VBOX_SIGNING_MODE 382 387 { "--no-silent-cert", 'c', RTGETOPT_REQ_NOTHING }, 383 388 { "-no-silent-cert", 'c', RTGETOPT_REQ_NOTHING }, 384 389 { "/no-silent-cert", 'c', RTGETOPT_REQ_NOTHING }, 390 #endif 385 391 { "--logging", 'l', RTGETOPT_REQ_NOTHING }, 386 392 { "-logging", 'l', RTGETOPT_REQ_NOTHING }, … … 418 424 break; 419 425 426 #ifdef VBOX_SIGNING_MODE 420 427 case 'c': 421 428 fEnableSilentCert = false; 422 429 break; 430 #endif 423 431 424 432 case 'l': … … 558 566 } 559 567 568 #ifdef VBOX_SIGNING_MODE 560 569 /* 561 570 * If --silent command line option is specified, do force public … … 575 584 } 576 585 } 577 586 #endif 578 587 /* Do actions on files. */ 579 588 for (BYTE k = 0; k < pHeader->byCntPkgs; k++)
Note:
See TracChangeset
for help on using the changeset viewer.