Playnite Forums
  • Playnite Web
  • Rules
  • Members
  • Team
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Playnite Forums Extension Database Generic Extensions Open Installation Location

Open Installation Location
OneAngryGamer Away

#1
11-09-2021, 06:19 AM (This post was last modified: 08-01-2023, 04:38 AM by OneAngryGamer.)
This extension detects the games installation path and opens it (if the path exists)

Q. Playnite can already do this. How is this version different?
A. Playnite opens the path recorded in the 'Installation Directory' field for the game in Playnite. For installed games, this is usually the folder path that contains the executable. However the executable is not always in the root folder of the install path that was created for the game. This extension attempts to detect the real installation path for a game.

Q. Does it matter if the "InstallationDirectory" path is not the same as the actual install path?
A. For most users, no. For me, yes. I am creating an extension that needs the actual install path for each game. (This extension scans all game paths to find manuals and links them to Playnite. However it will miss many manuals unless I can return the actual installation path for each game.)

Q. But if you are creating an extension to scan games for manuals, why create this?
A. User testing. This extension includes a copy of the function I have created to find the actual install path for a game. You can enable debug test options and report any improvements to this thread. See instructions below.


HOW TO USER TEST:
  1. Testing options can be enabled by creating a file named "DEBUG" (no file extension) in the ExtensionData path for this extension.
  2. The first test option compares the "InstallationDirectory" path to the calculated path for all selected games. Any differences are reported.
  3. The second test option checks all selected games for PC/DOS games that have a deep folder path but not detected a path difference. The deeper the folder path, the more likely that the game has an exe buried within the game foldertree - which means that the function needs improving. If you can post the game name and its "InstallationDirectory" path into this thread, it will help me improve the function.

Compatibility: Due to the Great 8 Break, this extension is not compatible with any version of Playnite after v8.15.



.pext   Open_Installation_Location_1_3_1.pext (Size: 10.94 KB / Downloads: 60)
.pext   Open_Installation_Location_1_3_0.pext (Size: 8.68 KB / Downloads: 155)
OneAngryGamer Away

#2
11-16-2021, 11:35 AM
User Testing guide

If you are user testing and it returns a blank report, it is because no differences were found.

  1. First report is blank = The extension and Playnite both returned the same value for all selected games. (It only reports games where the extension calculated a different value to the InstallDirectory recorded in Playnite)
  2. Second report is blank = No potential issues found so nothing output.
If there are any paths that need fixing, they will appear in the second report. (Not all the paths in this report will need fixing. But almost all paths that need fixing will appear in this report.)

If the second report contains any paths that are deeper than the game installation folder (example: C:\Program Files\ExamplePublisherName\ExampleDeveloper\SomeGameName\bin64\system\ ), reply to this thread with the details of the game and the path so I can improve the function.
OneAngryGamer Away

#3
12-07-2021, 11:51 AM
1.0.2 uploaded
  • fixed 'Open Installation Location' to allow paths containing wildcard pattern characters
OneAngryGamer Away

#4
12-22-2021, 10:11 PM
1.0.3 uploaded
  • prevent producing report if no results found
OneAngryGamer Away

#5
12-27-2021, 12:54 AM (This post was last modified: 12-27-2021, 12:56 AM by OneAngryGamer.)
1.0.4 uploaded
  • bugfix for issue caused by new code added to v1.0.3 - fixes issue with report path when running user tests
OneAngryGamer Away

#6
01-28-2022, 02:17 AM
Update Announcement v1.1.0
  • use PlayniteApi.ExpandGameVariables on InstallDirectory
  • updated function 'Get-ActualInstallationPathForGame'
  • (debug tests) all reports changed from txt to csv format
  • (debug tests) moved all debug test menu items to a submenu
  • (debug tests) NEW FEATURE - added a new test to report all related data for all selected games (no filtering applied before creating the report - unlike the previous two tests)

Comments on the Get-ActualInstallationPathForGame' function
  1. It will be impossible to make the function 100% accurate.
  2. If any extension/plugin developer wants to make use of my function - you can. You don't need my permission or to credit me.
OneAngryGamer Away

#7
02-21-2022, 08:44 AM
Update Announcement v1.2.0
  • NEW added support for games in EmuLibrary - if the game is in EmuLibrary and not "installed" (in the EmuLibrary sense), it will open the source/installer folder for the rom.
  • IMPROVED if failed to open folder due to missing InstallDirectory will now log and alert user
  • IMPROVED if failed to open folder because path is no longer valid, will log and alert user
OneAngryGamer Away

#8
03-09-2022, 11:31 PM
Update Announcement v1.3.0
  • FIXED issue with EmuLibrary introduced in v1.2.0
  • IMPROVED increased accuracy calculating install path for game
  • changed extension icon
  • other code changes
OneAngryGamer Away

#9
05-16-2023, 04:10 AM
Update Announcement v1.3.1

Changed
  • Improved the function for calculating actual install path
  • Updated library code
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread

© Designed by D&D - Powered by MyBB

Linear Mode
Threaded Mode