Skip to content

Commit

Permalink
no MSBuildInstallDir
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Jan 8, 2025
1 parent 6f75347 commit 4b8c77b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Installers/Windows/KniSdkSetup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ Page Custom SponsorPage SponsorPageLeave
Name '${APPNAME} SDK ${INSTALLERVERSION}'
OutFile 'KniSdkSetup.exe'
InstallDir '$PROGRAMFILES\${APPNAME}\v${VERSION}'
!define MSBuildInstallDir '$PROGRAMFILES32\MSBuild\${APPNAME}\v${VERSION}'
VIProductVersion "${INSTALLERVERSION}"
VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "${APPNAME} SDK"
VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "Kni framework"
Expand Down Expand Up @@ -77,7 +76,6 @@ Section "Kni Core Components" CoreComponents ;No components page, name is not im
SectionIn RO

; Install the Kni tools to a single shared folder.
SetOutPath ${MSBuildInstallDir}\Tools
SetOutPath '$INSTDIR\Tools'
File /r '..\..\Tools\EffectCompiler\bin\Windows\AnyCPU\Release\net8.0\*.exe'
File /r '..\..\Tools\EffectCompiler\bin\Windows\AnyCPU\Release\net8.0\*.runtimeconfig.json'
Expand Down Expand Up @@ -147,7 +145,7 @@ Section "Start Menu Shortcuts" Menu
CreateDirectory $SMPROGRAMS\${APPNAME}
SetOutPath "$INSTDIR"
CreateShortCut "$SMPROGRAMS\${APPNAME}\Uninstall MonoGame.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
SetOutPath "${MSBuildInstallDir}\Tools"
SetOutPath "$INSTDIR\Tools"
CreateShortCut "$SMPROGRAMS\${APPNAME}\Kni PipelineEditor.lnk" "$INSTDIR\Tools\PipelineEditor.exe" "" "$INSTDIR\Tools\PipelineEditor.exe" 0
WriteINIStr "$SMPROGRAMS\${APPNAME}\MonoGame Website.url" "InternetShortcut" "URL" "http://www.monogame.net"
WriteINIStr "$SMPROGRAMS\${APPNAME}\MonoGame Website.url" "InternetShortcut" "IconFile" "$INSTDIR\Kni.ico"
Expand Down

0 comments on commit 4b8c77b

Please sign in to comment.