Skip to content

Commit

Permalink
Install only to APPDATA/Hex-Rays
Browse files Browse the repository at this point in the history
  • Loading branch information
d35ha committed Oct 19, 2023
1 parent 015e45e commit 18dfd4e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<authors>NtQuery</authors>
<dependencies>
<dependency id="common.vm" />
<dependency id="idafree.vm" version="[8.3]" />
</dependencies>
</metadata>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,7 @@ try {
}
Install-ChocolateyZipPackage @packageArgs

# Install for IDA Free
$pluginsDir = Join-Path ${Env:ProgramFiles} "IDA Freeware 8.3\plugins" -Resolve
$pluginPath = Join-Path $toolDir "IDA\HookLibraryx64.dll" -Resolve
$configPath = Join-Path $toolDir "IDA\scylla_hide.ini" -Resolve
Copy-Item $pluginPath -Destination $pluginsDir
Copy-Item $configPath -Destination $pluginsDir

# Install for IDA Pro
# Install the plugin
$pluginsDir = New-Item "$Env:APPDATA\Hex-Rays\IDA Pro\plugins" -ItemType "directory" -Force
$pluginPath = Join-Path $toolDir "IDA\HookLibraryx64.dll" -Resolve
$configPath = Join-Path $toolDir "IDA\scylla_hide.ini" -Resolve
Expand Down
11 changes: 2 additions & 9 deletions packages/ida.plugin.scyllahide.vm/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
$ErrorActionPreference = 'Continue'
Import-Module vm.common -Force -DisableNameChecking

# Remove from IDA Free
$pluginsDir = Join-Path ${Env:ProgramFiles} "IDA Freeware 8.3\plugins" -Resolve
$pluginPath = Join-Path $pluginsDir "HookLibraryx64.dll" -Resolve
$configPath = Join-Path $pluginsDir "scylla_hide.ini" -Resolve
Remove-Item $pluginPath
Remove-Item $configPath

# Remove from IDA Pro
$pluginsDir = New-Item "$Env:APPDATA\Hex-Rays\IDA Pro\plugins" -ItemType "directory" -Force
# Remove the plugin
$pluginsDir = "$Env:APPDATA\Hex-Rays\IDA Pro\plugins"
$pluginPath = Join-Path $pluginsDir "HookLibraryx64.dll" -Resolve
$configPath = Join-Path $pluginsDir "scylla_hide.ini" -Resolve
Remove-Item $pluginPath
Expand Down

0 comments on commit 18dfd4e

Please sign in to comment.