Wininstaller2: minor bugfix

This commit is contained in:
Eugene Chornyi 2020-12-12 09:37:28 +01:00
parent bd8a9d3ce3
commit 17c1442429

View File

@ -380,9 +380,12 @@ Function RetrieveSMState # Custom function, called after the Startmenu page has
StrCpy $StartMenuFolder ">$StartMenuFolder"
${Else}
GetDlgItem $0 $mui.StartMenuPage 1005 # Get the HWND of the checkbox, MUI2 does not provide variable for that
${NSD_GetState} $0 $1
${If} $1 = ${BST_UNCHECKED}
SendMessage $0 ${BM_CLICK} 0 0 # NSIS delivers no other possibility here other than to send a click event to the checkbox
${EndIf}
${EndIf}
${EndIf}
FunctionEnd
Function LatexFolder_Show # Custom Function, called before showing the LaTeXFolder page to create it
@ -563,6 +566,7 @@ Section -ProgramFiles
# Visual C++ redistributable (if native build)
File "${FILES_DEPS}\bin\concrt140.dll"
File "${FILES_DEPS}\bin\msvcp140.dll"
File "${FILES_DEPS}\bin\msvcp140_1.dll"
File "${FILES_DEPS}\bin\vcamp140.dll"
File "${FILES_DEPS}\bin\vccorlib140.dll"
File "${FILES_DEPS}\bin\vcomp140.dll"