Skip to content

Commit

Permalink
Use Windows startup folder for running on startup
Browse files Browse the repository at this point in the history
Using the startup folder is simpler, and doesn't seem to have any 
downsides.
  • Loading branch information
Ajedi32 committed Dec 26, 2018
1 parent 6dff8d8 commit de1e028
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
5 changes: 0 additions & 5 deletions echovr_tray_tool.ps1

This file was deleted.

6 changes: 2 additions & 4 deletions install_startup.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
Set-ItemProperty `
-Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run `
-Name "Echo VR Tray Tool" `
-Value "powershell `"$PSScriptRoot\echovr_tray_tool.ps1`""
& "$PSScriptRoot\create_shortcut.ps1"
Copy-Item "$PSScriptRoot\Echo VR Tray Tool.lnk" -Destination "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup"
4 changes: 1 addition & 3 deletions uninstall_startup.ps1
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
Remove-ItemProperty `
-Path Registry::HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run `
-Name "Echo VR Tray Tool" `
Remove-Item "$env:APPDATA\Microsoft\Windows\Start Menu\Programs\Startup\Echo VR Tray Tool.lnk"

0 comments on commit de1e028

Please sign in to comment.