Skip to content

Commit

Permalink
Change VCREDIST version (used by erl R15B)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgud committed Jan 9, 2012
1 parent 4f3a3ff commit db2c876
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions win32/make_installer
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# #


# #
# The pre-built Erlang/OTP R12B-0 for Windows requires this version # The pre-built Erlang/OTP R15B for Windows requires this version
# of the VC80.CRT. It must be updated if future release of Erlang # of the VC100.CRT. It must be updated if future release of Erlang
# requires a later version. # requires a later version.
# #
WINGS_VCREDIST_VERSION=2.0.50727.4053 WINGS_VCREDIST_VERSION=10.00.40219.1


OS=`uname -o 2> /dev/null` OS=`uname -o 2> /dev/null`
if [ X$OS != XMsys ]; then if [ X$OS != XMsys ]; then
Expand Down
10 changes: 5 additions & 5 deletions win32/wings.nsi
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -332,23 +332,23 @@ Function .onInit
SectionSetFlags ${SecWingsClutterDesktop} $0 SectionSetFlags ${SecWingsClutterDesktop} $0


SectionGetFlags 0 $MYTEMP SectionGetFlags 0 $MYTEMP
; MessageBox MB_YESNO "Found $SYSDIR\msvcr80.dll" IDYES FoundLbl ; MessageBox MB_YESNO "Found $SYSDIR\msvcr100.dll" IDYES FoundLbl
IfFileExists $SYSDIR\msvcr80.dll MaybeFoundInSystemLbl IfFileExists $SYSDIR\msvcr100.dll MaybeFoundInSystemLbl
SearchSxsLbl: SearchSxsLbl:
FindFirst $0 $1 $WINDIR\WinSxS\x86* FindFirst $0 $1 $WINDIR\WinSxS\x86*
LoopLbl: LoopLbl:
StrCmp $1 "" NotFoundLbl StrCmp $1 "" NotFoundLbl
IfFileExists $WINDIR\WinSxS\$1\msvcr80.dll MaybeFoundInSxsLbl IfFileExists $WINDIR\WinSxS\$1\msvcr100.dll MaybeFoundInSxsLbl
FindNext $0 $1 FindNext $0 $1
Goto LoopLbl Goto LoopLbl
MaybeFoundInSxsLbl: MaybeFoundInSxsLbl:
GetDllVersion $WINDIR\WinSxS\$1\msvcr80.dll $R0 $R1 GetDllVersion $WINDIR\WinSxS\$1\msvcr100.dll $R0 $R1
Call DllVersionGoodEnough Call DllVersionGoodEnough
FindNext $0 $1 FindNext $0 $1
IntCmp 2 $R0 LoopLbl IntCmp 2 $R0 LoopLbl
Goto FoundLbl Goto FoundLbl
MaybeFoundInSystemLbl: MaybeFoundInSystemLbl:
GetDllVersion $SYSDIR\msvcr80.dll $R0 $R1 GetDllVersion $SYSDIR\msvcr100.dll $R0 $R1
Call DllVersionGoodEnough Call DllVersionGoodEnough
IntCmp 2 $R0 SearchSxSLbl IntCmp 2 $R0 SearchSxSLbl
FoundLbl: FoundLbl:
Expand Down

0 comments on commit db2c876

Please sign in to comment.