diff --git a/util/i.cmd b/util/i.cmd new file mode 100644 index 0000000..8124f00 --- /dev/null +++ b/util/i.cmd @@ -0,0 +1,2 @@ +@echo off +Powershell Start -Verb runAs powershell -ArgumentList '-ExecutionPolicy Bypass -NoExit Set-Location %cd%; .\instalee\i.ps1' \ No newline at end of file diff --git a/util/i.lnk b/util/i.lnk new file mode 100644 index 0000000..6d56991 Binary files /dev/null and b/util/i.lnk differ diff --git a/util/issues.md b/util/issues.md new file mode 100644 index 0000000..2b4672d --- /dev/null +++ b/util/issues.md @@ -0,0 +1,19 @@ +https://superuser.com/questions/55809/how-to-run-program-from-command-line-with-elevated-rights + +- auto-elevation of choco +- post-choco-install check if launching git bash works +- add choco to handlers + +Set-Location : Illegales Zeichen im Pfad. +In K:\instalee\packages\chocolatey\powershell.ps1:24 Zeichen:5 ++ Set-Location $Loc.Substring(1,$Loc.Length-1) ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo : InvalidArgument: (K:\instalee":String) [Set-Location], ArgumentException + + FullyQualifiedErrorId : ItemExistsArgumentError,Microsoft.PowerShell.Commands.SetLocationCommand + +Set-Location : Der Pfad "K:\instalee"" kann nicht gefunden werden, da er nicht vorhanden ist. +In K:\instalee\packages\chocolatey\powershell.ps1:24 Zeichen:5 ++ Set-Location $Loc.Substring(1,$Loc.Length-1) ++ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + + CategoryInfo : ObjectNotFound: (K:\instalee":String) [Set-Location], ItemNotFoundException + + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand diff --git a/util/work.sh b/util/work.sh new file mode 100644 index 0000000..d834acd --- /dev/null +++ b/util/work.sh @@ -0,0 +1,5 @@ +echo " +sudo umount -l "$(dirname "$0")" && +sudo mount -o uid=1000,gid=1000,umask=0000 -L PEARL /mnt && +/mnt/instalee/instalee --noexec work" >/tmp/remount.sh +exec sh /tmp/remount.sh