Permalink
Browse files

Merge branch 'master' of https://github.com/dnewcome/batbelt

  • Loading branch information...
2 parents 707092e + 31909b9 commit f8d6206ae274c4ee796eca46a28baa973bcec3a0 @dnewcome committed May 19, 2011
Showing with 20 additions and 14 deletions.
  1. +5 −1 TODO.txt
  2. +7 −4 batbelt/get-aliases.bat
  3. +5 −5 batbelt/install.bat
  4. +3 −4 batbelt/weblaunch.bat
View
@@ -23,10 +23,14 @@ tastes?
Do we really need to make batbelt a self extracting executable? Most
Windows systems have a (slow) file extraction capability built in.
+
+Uninstall script that removes batbelt from the path.
+
In the future we might want to enable some configuration scripts to run.
However, I don't think this is a high priority, since the idea is to
preconfigure as much as possible in the app before packaging. We want
to accomplish zero footprint. However there are several utils that use
the registry and have complicated configurations that I'd like to
set up during installation. Support for adding registry keys might
-be nice.
+be nice.
+
View
@@ -1,12 +1,15 @@
-@echo off
+:: @echo off
setlocal
call config.bat
set scriptdir=%~dp0
-%scriptdir%curl\curl.exe %url%/aliases.zip --O aliases.zip
-%scriptdir%7-zip\7za.exe e -o%~dp0 aliases.zip
-del aliases.zip
+"%scriptdir%curl\curl.exe" %url%/aliases.zip --O "%scriptdir%aliases.zip"
+
+"%scriptdir%7-zip\7za.exe" e -o"%scriptdir%" "%scriptdir%aliases.zip"
+
+
+del "%scriptdir%aliases.zip"
endlocal
View
@@ -1,9 +1,9 @@
@echo off
:: install batbelt to another location and add to path
-
-if not "%1x"=="x" (
- echo installing in %1
- xcopy . "%1\batbelt\" /S
+echo %~1
+if not "%~1x"=="x" (
+ echo installing in %~1
+ xcopy . "%~1\batbelt\" /S
goto :setpath
) else (
rem TODO Install in programfiles?
@@ -13,5 +13,5 @@ if not "%1x"=="x" (
)
:setpath
-setx path "%path%;%1\batbelt"
+setx path "%path%;%~1\batbelt"
:end
View
@@ -38,10 +38,9 @@ if exist "%apppath%" (
start %executable% %1 %2 %3 %4 %5 %6 %7 %8 %9
) else (
echo %appname% not installed - fetching
-::mkdir "%apppath%"
- %scriptdir%curl\curl.exe %url%/%appname%.zip --O %appname%.zip
- %scriptdir%7-zip\7za.exe x -o"%appname%" %appname%.zip
- del %appname%.zip
+ "%scriptdir%"curl\curl.exe %url%/%appname%.zip --O "%scriptdir%%appname%.zip"
+ "%scriptdir%"7-zip\7za.exe x -o"%scriptdir%%appname%" "%scriptdir%%appname%.zip"
+ del "%scriptdir%%appname%.zip"
start %executable% %1 %2 %3 %4 %5 %6 %7 %8 %9
)
endlocal

0 comments on commit f8d6206

Please sign in to comment.