-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Install Script To Account For Different OC Install Methods No…
…w Working
- Loading branch information
Kyle Condon
committed
Oct 30, 2023
1 parent
9314ab0
commit 4a6dc7c
Showing
11 changed files
with
70 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
KPC/AndroidADB/Get Apk Package & Common Names (Wait, It Can Take A While)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Invoke-ADBInit.ps1') | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Get-AndroidInstalledAppsInfo.ps1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& (Join-Path $ParseOCPath 'Resources\KPC\Set-OCVariables.ps1') -CurrentDir $CurrentDir -SelMultiple $SelectedFiles -OpDir $OpDir | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Get-FileHashMD5ToClipboard.ps1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& (Join-Path $ParseOCPath 'Resources\KPC\Set-OCVariables.ps1') -CurrentDir $CurrentDir -SelMultiple $SelectedFiles -OpDir $OpDir | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Invoke-TerminalShells.ps1') |
6 changes: 3 additions & 3 deletions
6
KPC/Utilities/Add Current Directory To PowerShell Default Variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& (Join-Path $ParseOCPath 'Resources\KPC\Set-OCVariables.ps1') -CurrentDir $CurrentDir -SelMultiple $SelectedFiles -OpDir $OpDir | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Add-OCVariableToPS.ps1') |
6 changes: 3 additions & 3 deletions
6
KPC/Utilities/Add Current Directory To User Path Environment Variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& (Join-Path $ParseOCPath 'Resources\KPC\Set-OCVariables.ps1') -CurrentDir $CurrentDir -OpDir $OpDir | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Add-CurrentDirToEnvPath.ps1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullNames | ||
} | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Set-SystemEnvVars.ps1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Set-UserEnvVars.ps1') |
6 changes: 3 additions & 3 deletions
6
KPC/Utilities/Merge Directories From Both Columns Into Single Folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& (Join-Path $ParseOCPath 'Resources\KPC\Set-OCVariables.ps1') -CurrentDir $CurrentDir -OpDir $OpDir | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Merge-Directories.ps1') |
6 changes: 3 additions & 3 deletions
6
KPC/Utilities/Upload Current Dir Files Or Selected Files To Pastebin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
#PS | ||
$OCPath = (Get-Process OneCommander).Path | ||
if ($OCPath.Contains('WindowsApp')) { | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:USERPROFILE '\OneCommander\') | ||
} | ||
elseif ($OCPath.Contains('Program Files')) { | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\Resources\Scripts\') | ||
$ParseOCPath = (Join-Path $Env:LOCALAPPDATA '\OneCommander\') | ||
} | ||
else { | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName + '\Resources\Scripts\' | ||
$ParseOCPath = (Get-Item -LiteralPath $OCPath).Directory.FullName | ||
} | ||
& (Join-Path $ParseOCPath 'Resources\KPC\Set-OCVariables.ps1') -CurrentDir $CurrentDir -SelMultiple $SelectedFiles -OpDir $OpDir | ||
& pwsh -File (Join-Path $ParseOCPath 'Resources\KPC\Get-PasteBinLinkOfFiles.ps1') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters