Skip to content

Commit

Permalink
Fix installer missing dlls and not asking for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
K4sum1 committed Jul 14, 2024
1 parent d1b4d9c commit 21af699
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 3 deletions.
1 change: 1 addition & 0 deletions application/basilisk/installer/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ifdef MOZ_NO_DEBUG_RTL
ifdef WIN32_REDIST_DIR
DEFINES += -DMOZ_PACKAGE_MSVC_DLLS=1
DEFINES += -DMSVC_C_RUNTIME_DLL=$(MSVC_C_RUNTIME_DLL)
DEFINES += -DMSVC_CMP_RUNTIME_DLL=$(MSVC_CMP_RUNTIME_DLL)
DEFINES += -DMSVC_CXX_RUNTIME_DLL=$(MSVC_CXX_RUNTIME_DLL)
endif
ifdef WIN_UCRT_REDIST_DIR
Expand Down
1 change: 1 addition & 0 deletions application/basilisk/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@
@BINPATH@/plugin-hang-ui@BIN_SUFFIX@
#if MOZ_PACKAGE_MSVC_DLLS
@BINPATH@/@MSVC_C_RUNTIME_DLL@
@BINPATH@/@MSVC_CMP_RUNTIME_DLL@
@BINPATH@/@MSVC_CXX_RUNTIME_DLL@
#endif
#if MOZ_PACKAGE_WIN_UCRT_DLLS
Expand Down
4 changes: 4 additions & 0 deletions application/palemoon/installer/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ DEFINES += -DMOZ_ANGLE_RENDERER=$(MOZ_ANGLE_RENDERER)
ifdef MOZ_D3DCOMPILER_VISTA_DLL
DEFINES += -DMOZ_D3DCOMPILER_VISTA_DLL=$(MOZ_D3DCOMPILER_VISTA_DLL)
endif
ifdef MOZ_D3DCOMPILER_XP_DLL
DEFINES += -DMOZ_D3DCOMPILER_XP_DLL=$(MOZ_D3DCOMPILER_XP_DLL)
endif
endif

DEFINES += -DMOZ_CHILD_PROCESS_NAME=$(MOZ_CHILD_PROCESS_NAME)
Expand All @@ -69,6 +72,7 @@ ifdef MOZ_NO_DEBUG_RTL
ifdef WIN32_REDIST_DIR
DEFINES += -DMOZ_PACKAGE_MSVC_DLLS=1
DEFINES += -DMSVC_C_RUNTIME_DLL=$(MSVC_C_RUNTIME_DLL)
DEFINES += -DMSVC_CMP_RUNTIME_DLL=$(MSVC_CMP_RUNTIME_DLL)
DEFINES += -DMSVC_CXX_RUNTIME_DLL=$(MSVC_CXX_RUNTIME_DLL)
endif
ifdef WIN_UCRT_REDIST_DIR
Expand Down
1 change: 1 addition & 0 deletions application/palemoon/installer/package-manifest.in
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
@BINPATH@/plugin-hang-ui@BIN_SUFFIX@
#if MOZ_PACKAGE_MSVC_DLLS
@BINPATH@/@MSVC_C_RUNTIME_DLL@
@BINPATH@/@MSVC_CMP_RUNTIME_DLL@
@BINPATH@/@MSVC_CXX_RUNTIME_DLL@
#endif
#if MOZ_PACKAGE_WIN_UCRT_DLLS
Expand Down
2 changes: 1 addition & 1 deletion build/win32/moz.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ if CONFIG['ENABLE_TESTS']:
NO_PGO = True

if CONFIG['WIN32_REDIST_DIR'] and CONFIG['COMPILE_ENVIRONMENT']:
for f in ['MSVC_C_RUNTIME_DLL', 'MSVC_CXX_RUNTIME_DLL']:
for f in ['MSVC_C_RUNTIME_DLL', 'MSVC_CMP_RUNTIME_DLL', 'MSVC_CXX_RUNTIME_DLL']:
FINAL_TARGET_FILES += [
'%%%s/%s' % (CONFIG['WIN32_REDIST_DIR'], CONFIG[f])
]
Expand Down
4 changes: 3 additions & 1 deletion js/src/old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ case "$target" in
19*)
_CC_SUITE=14
MSVS_VERSION=2015
MSVC_C_RUNTIME_DLL=vcruntime140.dll
MSVC_C_RUNTIME_DLL=vcruntime*.dll
MSVC_CMP_RUNTIME_DLL=vcomp140.dll
MSVC_CXX_RUNTIME_DLL=msvcp140.dll

# C5026: move constructor was implicitly defined as deleted
Expand All @@ -212,6 +213,7 @@ case "$target" in
esac
AC_SUBST(MSVS_VERSION)
AC_SUBST(MSVC_C_RUNTIME_DLL)
AC_SUBST(MSVC_CMP_RUNTIME_DLL)
AC_SUBST(MSVC_CXX_RUNTIME_DLL)

# Check linker version
Expand Down
4 changes: 3 additions & 1 deletion old-configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,8 @@ case "$target" in
19*)
_CC_SUITE=14
MSVS_VERSION=2015
MSVC_C_RUNTIME_DLL=vcruntime140.dll
MSVC_C_RUNTIME_DLL=vcruntime*.dll
MSVC_CMP_RUNTIME_DLL=vcomp140.dll
MSVC_CXX_RUNTIME_DLL=msvcp140.dll

MOZ_CHECK_HEADER(dia2.h, MSVC_HAS_DIA_SDK=1)
Expand Down Expand Up @@ -233,6 +234,7 @@ case "$target" in
AC_SUBST(MSVS_VERSION)
AC_SUBST(MSVC_HAS_DIA_SDK)
AC_SUBST(MSVC_C_RUNTIME_DLL)
AC_SUBST(MSVC_CMP_RUNTIME_DLL)
AC_SUBST(MSVC_CXX_RUNTIME_DLL)

AC_DEFINE(HAVE_SEH_EXCEPTIONS)
Expand Down
Binary file modified other-licenses/7zstub/palemoon/7zSD.sfx
Binary file not shown.
Binary file modified other-licenses/7zstub/uxp/7zSD.sfx
Binary file not shown.
3 changes: 3 additions & 0 deletions toolkit/mozapps/installer/upload-files.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ endif # MOZ_FOLD_LIBS
ifdef MSVC_C_RUNTIME_DLL
JSSHELL_BINS += $(MSVC_C_RUNTIME_DLL)
endif
ifdef MSVC_CMP_RUNTIME_DLL
JSSHELL_BINS += $(MSVC_CMP_RUNTIME_DLL)
endif
ifdef MSVC_CXX_RUNTIME_DLL
JSSHELL_BINS += $(MSVC_CXX_RUNTIME_DLL)
endif
Expand Down

0 comments on commit 21af699

Please sign in to comment.