From 4dec4d125b4c6954ef948b699a814fe5a9059091 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 19 Apr 2008 18:45:44 +0000 Subject: Extract and run the vs redistributable to $TEMP, not to install dir. saves us 2.6 megs on install space git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9549 e03df62e-2008-0410-955e-edbf42e46eb7 --- win/inspircd-noextras.nsi | 9 ++++++--- win/inspircd.nsi | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'win') diff --git a/win/inspircd-noextras.nsi b/win/inspircd-noextras.nsi index c8f08cb4a..8e34270d1 100644 --- a/win/inspircd-noextras.nsi +++ b/win/inspircd-noextras.nsi @@ -133,16 +133,19 @@ FunctionEnd Section "Binary Executable" SEC01 Call IsDotNetInstalled - SetOutPath "$INSTDIR" + SetOutPath "$TEMP" SetOverwrite ifnewer File "vcredist_x86.exe" - ExecWait "$INSTDIR\vcredist_x86.exe" + ExecWait "$TEMP\vcredist_x86.exe" + SetOutPath "$INSTDIR" + SetOverwrite ifnewer File "..\bin\${BUILD}\InspGUI.exe" CreateDirectory "$SMPROGRAMS\InspIRCd" CreateShortCut "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" "$INSTDIR\InspGUI.exe" SetOutPath "$INSTDIR\bin" SetOverwrite ifnewer - File "..\bin\${BUILD}\bin\inspircd.exe" + File "..\bin\${BUILD}\bin\inspircd. + exe" SectionEnd Section "Config Files" SEC02 diff --git a/win/inspircd.nsi b/win/inspircd.nsi index cafbd38b9..80bd51cc7 100644 --- a/win/inspircd.nsi +++ b/win/inspircd.nsi @@ -133,10 +133,12 @@ FunctionEnd Section "Binary Executable" SEC01 Call IsDotNetInstalled - SetOutPath "$INSTDIR" + SetOutPath "$TEMP" SetOverwrite ifnewer File "vcredist_x86.exe" - ExecWait "$INSTDIR\vcredist_x86.exe" + ExecWait "$TEMP\vcredist_x86.exe" + SetOutPath "$INSTDIR" + SetOverwrite ifnewer File "..\bin\${BUILD}\InspGUI.exe" CreateDirectory "$SMPROGRAMS\InspIRCd" CreateShortCut "$SMPROGRAMS\InspIRCd\InspIRCd.lnk" "$INSTDIR\InspGUI.exe" -- cgit v1.2.3