Check for .NET4 and install it, when it's not installed.
This commit is contained in:
1 parent
a05e6ebc16
commit
4103d990cf
3 files changed
+307
No files matched your search
@@ -2,6 +2,8 @@
|
||||
|
||||
!include "MUI2.nsh"
|
||||
!include "x64.nsh"
|
||||
!include "LogicLib.nsh"
|
||||
!include "DotNetVer.nsh"
|
||||
|
||||
;Name and file
|
||||
!define PRODUCT_NAME "Vocaluxe"
|
||||
@@ -18,6 +20,7 @@
|
||||
|
||||
Var StartMenuFolder
|
||||
Var DirectXSetupError
|
||||
Var NetSetupError
|
||||
|
||||
!define MUI_ICON "..\Output\Vocaluxe.ico"
|
||||
!define MUI_HEADERIMAGE
|
||||
@@ -110,6 +113,18 @@ Section $(TITLE_MAIN) SecMain
|
||||
File "..\Output\*.txt"
|
||||
File "..\Output\CreditsRessourcesDB.sqlite"
|
||||
|
||||
${IfNot} ${HasDotNet4.0}
|
||||
SetOutPath "$TEMP"
|
||||
File "Requirements\dotNetFx40_Full_setup.exe"
|
||||
DetailPrint "Running .NET4 Setup..."
|
||||
ExecWait '"$TEMP\dotNetFx40_Full_setup.exe" /Q' $NetSetupError
|
||||
DetailPrint "Finished .NET4 Setup"
|
||||
|
||||
Delete "$TEMP\dotNetFx40_Full_setup.exe"
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
${EndIf}
|
||||
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\Vocaluxe" "" $INSTDIR
|
||||
|
||||
|
||||
Reference in new issue
Block a user