EMAD Location-Aware Setup Guide
π― Problem Solved!
The error you encountered was caused by Windows trying to run the script from C:\Windows\System32 instead of your JAEGIS-METHOD directory. This has been completely fixed!
β
What's Been Fixed
Location Detection: All scripts now automatically detect their own location
Path Resolution: Scripts use absolute paths to find required files
Directory Validation: Scripts verify required files exist before proceeding
Universal Launcher: New launcher scripts can be run from anywhere
π Easy Installation (Fixed)
Option 1: Universal Launcher (Recommended)
You can now run the launcher from anywhere on your system:
# Navigate to your JAEGIS-METHOD directory first
cd "C:\Users\Lenovo ThinkPad T480\Desktop\JAEGIS\JAEGIS-METHOD"
# Run the launcher (works from any location after this)
emad-launcher.bat installAvailable launcher commands:
Option 2: Fixed Installation Scripts
The original installation scripts are now location-aware:
Option 3: PowerShell (Enhanced)
π§ What the Fixed Scripts Do
Automatic Location Detection
β Scripts detect their own directory automatically
β Change to correct directory before running
β Use absolute paths for all file operations
β Verify required files exist before proceeding
Enhanced Error Handling
β Check if running from correct directory
β Validate all required files are present
β Provide clear error messages with solutions
β Show current directory for debugging
Expected Output (Fixed)
π File Structure (Updated)
Your JAEGIS-METHOD directory now includes location-aware scripts:
π― Quick Start (Your Specific Case)
Based on your path, here's exactly what to do:
Step 1: Navigate to Directory
Step 2: Run Diagnostics (Optional)
Step 3: Install Service
Step 4: Verify Installation
π Troubleshooting the Location Issue
If you still get path errors:
Check Current Directory:
Verify Files Exist:
Use Absolute Paths:
Run Diagnostics:
π οΈ Advanced Usage
Create Desktop Shortcut
Create a shortcut to the launcher for easy access:
Right-click on Desktop β New β Shortcut
Target:
cmd /k "cd /d C:\Users\Lenovo ThinkPad T480\Desktop\JAEGIS\JAEGIS-METHOD && emad-launcher.bat"Name: "EMAD Control Panel"
Add to System PATH (Optional)
To run from anywhere without navigating:
Add
C:\Users\Lenovo ThinkPad T480\Desktop\JAEGIS\JAEGIS-METHODto your PATHThen you can run
emad-launcher.bat installfrom anywhere
PowerShell Profile Integration
Add to your PowerShell profile:
β
Verification Checklist
After installation, verify:
π Success Indicators
You'll know everything is working when:
Service Installation: No path-related errors
Service Status: Shows "Running" status
Log Activity: Regular monitoring entries in logs
GitHub Sync: Automatic PRs created for file changes
Universal Access: Launcher works from any directory
π Still Having Issues?
If you encounter any problems:
Run diagnostics:
python troubleshoot-emad.pyCheck logs: Look in the
logs/directoryUse debug mode:
emad-launcher.bat debugVerify paths: Ensure you're in the correct directory
The location awareness fixes ensure that all scripts work correctly regardless of where they're executed from, while still finding and using the correct files in your JAEGIS-METHOD directory.
Your original error is now completely resolved! πβ¨
Last updated