Permalink
Browse files

Simple batch file installer

  • Loading branch information...
1 parent 0385e18 commit 7f8099fbcbf825f4da11d9c433b51b5fcd26e494 @citizenmatt citizenmatt committed Oct 18, 2012
Showing with 32 additions and 0 deletions.
  1. +2 −0 install/.gitignore
  2. +30 −0 install/Install-NuGetSupport.7.0.bat
  3. BIN install/UnblockZoneIdentifier.exe
View
@@ -0,0 +1,2 @@
+NuGetSupport
+*.zip
@@ -0,0 +1,30 @@
+@echo off
+setlocal enableextensions
+
+set VERSION=7.0
+set PRODUCT=ReSharper
+set BASEDIR=JetBrains\%PRODUCT%\v%VERSION%
+set PLUGIN=NuGetSupport
+
+set INSTALL_SOURCEDIR=%~dp0\%PLUGIN%
+
+set PER_USER_PLUGINDIR=%LOCALAPPDATA%\%BASEDIR%\plugins\%PLUGIN%
+
+if exist "%PER_USER_PLUGINDIR%" goto do_copy
+mkdir "%PER_USER_PLUGINDIR%"
+
+:do_copy
+echo Copying files...
+copy /y "%INSTALL_SOURCEDIR%\*.dll" "%PER_USER_PLUGINDIR%"
+copy /y "%INSTALL_SOURCEDIR%\*.pdb" "%PER_USER_PLUGINDIR%" 2> NUL
+
+echo.
+
+REM See https://github.com/citizenmatt/UnblockZoneIdentifier
+echo Unblocking downloaded files...
+pushd "%PER_USER_PLUGINDIR%"
+for /r %%i in (*) do "%~dp0\UnblockZoneIdentifier" "%%i"
+popd
+
+:end
+pause
Binary file not shown.

0 comments on commit 7f8099f

Please sign in to comment.