Uniconta IlSpy

Date: 2023-03-13

Uniconta IlSpy.cmd / .bat

@echo off
pushd "%~dp0"
powershell.exe -ExecutionPolicy Bypass -File ./Uniconta-ilspy.ps1
popd
$projectPath = $PSScriptRoot
$searchPath = "$env:LOCALAPPDATA\Apps\2.0\"
$searchFile = "Uniconta.WPFClient.exe"
Write-Host "Searching: '$searchFile' in '$searchPath'"
$files = Get-ChildItem -Path $searchPath -Recurse -Filter $searchFile -ErrorAction SilentlyContinue | Sort-Object LastWriteTime -Descending
if ($files.Count -lt 1) {
    Write-Output "Not found: '$searchFile'"
    return
} 
$foundExe = $files[0].FullName;
$foundPath = Split-Path $foundExe;

$assemblies = @("Uniconta.WindowsAPI.dll", "UnicontaPages.dll", "ClientTools.dll", "Uniconta.WPFClient.exe")
$assembliesPaths = $assemblies | foreach-object { join-path $foundPath $_ }
$ilspy = "C:\Programs\ILSpy\ILSpy.exe"
&$ilspy /separate $assembliesPaths
75060cookie-checkUniconta IlSpy