aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThijs Schreijer <thijs@thijsschreijer.nl>2013-12-01 01:24:07 -0800
committerThijs Schreijer <thijs@thijsschreijer.nl>2013-12-01 01:24:07 -0800
commitc1342e27bf94e39b095badeb3d91ddd13fc89b59 (patch)
tree0da4ba87718266d9cc76d34c0ae662bd0198742b
parent94cde998156d36f2388c15c4984a9b0a0c5b38e0 (diff)
parent948a07074fc9edb5d0cc822a141b9f29381c1a4b (diff)
downloadluarocks-c1342e27bf94e39b095badeb3d91ddd13fc89b59.tar.gz
luarocks-c1342e27bf94e39b095badeb3d91ddd13fc89b59.tar.bz2
luarocks-c1342e27bf94e39b095badeb3d91ddd13fc89b59.zip
Merge pull request #193 from Tieske/no_powershell
Windows; remove powershell requirement
Diffstat (limited to '')
-rw-r--r--install.bat4
1 files changed, 4 insertions, 0 deletions
diff --git a/install.bat b/install.bat
index 22f72e13..11558f7f 100644
--- a/install.bat
+++ b/install.bat
@@ -491,6 +491,10 @@ check_flags()
491if not permission() then 491if not permission() then
492 if not NOADMIN then 492 if not NOADMIN then
493 -- must elevate the process with admin priviledges 493 -- must elevate the process with admin priviledges
494 if not exec("PowerShell /? >NUL 2>&1") then
495 -- powershell is not available, so error out
496 die("No administrative priviledges detected and cannot auto-elevate. Please run with admin priviledges or use the /NOADMIN switch")
497 end
494 print("Need admin priviledges, now elevating a new process to continue installing...") 498 print("Need admin priviledges, now elevating a new process to continue installing...")
495 local runner = os.getenv("TEMP").."\\".."LuaRocks_Installer.bat" 499 local runner = os.getenv("TEMP").."\\".."LuaRocks_Installer.bat"
496 local f = io.open(runner, "w") 500 local f = io.open(runner, "w")