From 0c165641c019ab9fd68e629a11d5efd1ece72d56 Mon Sep 17 00:00:00 2001 From: SuperPotato27 Date: Thu, 1 Aug 2024 15:46:39 -0400 Subject: [PATCH] updates to readme and win package structure --- package/win/tcg-rim-tool/InstallTools.bat | 2 -- package/win/tcg-rim-tool/README.md | 6 ++++-- .../win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 | 4 +++- package/win/tcg-rim-tool/runTools.bat | 2 -- 4 files changed, 7 insertions(+), 7 deletions(-) delete mode 100644 package/win/tcg-rim-tool/InstallTools.bat delete mode 100644 package/win/tcg-rim-tool/runTools.bat diff --git a/package/win/tcg-rim-tool/InstallTools.bat b/package/win/tcg-rim-tool/InstallTools.bat deleted file mode 100644 index 01800288..00000000 --- a/package/win/tcg-rim-tool/InstallTools.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0\create_hirstools_desktop_shortcut.ps1" diff --git a/package/win/tcg-rim-tool/README.md b/package/win/tcg-rim-tool/README.md index 97047fcb..e77b9858 100644 --- a/package/win/tcg-rim-tool/README.md +++ b/package/win/tcg-rim-tool/README.md @@ -4,9 +4,11 @@ To get the tools running on windows follow the instructions below: 1- Unzip "ZIP_Files" -2- Run the install file under ```hirstools\IntsallTools.bat``` a HIRS_tools shortcut should appear on your desktop +2- open powershell as administrator and navigate to the hirstools folder. -3- Double click HIRS_tools.lnk shortcut and HIRS terminal should open. +3- run the following command: ```powershell -ExecutionPolicy Bypass -File '.\create_hirstools_desktop_shortcut.ps1'``` + +4- double-click the HIRS_tools shortcut on your desktop. To run the rim tool try the following commands: diff --git a/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 b/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 index e0275fd1..17332995 100644 --- a/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 +++ b/package/win/tcg-rim-tool/create_hirstools_desktop_shortcut.ps1 @@ -4,6 +4,8 @@ Expand-Archive -Path ..\tcg_eventlog_tool.zip -DestinationPath .\tcg_eventlog_to # Create a shortcut to start the RIM shell $WshShell = New-Object -comObject WScript.Shell $Shortcut = $WshShell.CreateShortcut("$Home\Desktop\HIRS_tools.lnk") -$Shortcut.TargetPath = "$PWD\RunTools.bat" +$Shortcut.TargetPath = "powershell.exe" +$ScriptPath = "$PWD\hirsshell.ps1" +$Shortcut.Arguments = "-ExecutionPolicy Bypass -File `"$ScriptPath`"" $Shortcut.WorkingDirectory = "$PWD" $Shortcut.Save() diff --git a/package/win/tcg-rim-tool/runTools.bat b/package/win/tcg-rim-tool/runTools.bat deleted file mode 100644 index bd574cef..00000000 --- a/package/win/tcg-rim-tool/runTools.bat +++ /dev/null @@ -1,2 +0,0 @@ -@echo off -powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0\hirsshell.ps1"