Skip to content

Commit

Permalink
templates: Move to 'usercf' instead of 'userpf'
Browse files Browse the repository at this point in the history
Local (per-user) add-ons to software should reside in "C:\Users\Username\AppData\Local\Programs\Common\", similar to System (all-users) add-ons which reside in "C:\Program Files\Common Files\".

Fixes #1049
  • Loading branch information
Xaymar committed May 20, 2023
1 parent 38d87f6 commit f66fabc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/windows/installer.iss.in
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ begin

// If this is a User install, register the necessary environment changes.
if (IsUserMode()) then begin
sPluginsPath := ExpandConstant('{userpf}\obs-studio\plugins\%module%\bin\');
sPluginsPath := ExpandConstant('{usercf}\obs-studio\plugins\%module%\bin\');
StringChangeEx(sPluginsPath, '\', '/', True);
RegWriteExpandStringValue(HKEY_CURRENT_USER, 'Environment', 'OBS_PLUGINS_PATH', sPluginsPath);

sPluginsDataPath := ExpandConstant('{userpf}\obs-studio\plugins\%module%\data\');
sPluginsDataPath := ExpandConstant('{usercf}\obs-studio\plugins\%module%\data\');
StringChangeEx(sPluginsDataPath, '\', '/', True);
RegWriteExpandStringValue(HKEY_CURRENT_USER, 'Environment', 'OBS_PLUGINS_DATA_PATH', sPluginsDataPath);

Expand All @@ -272,7 +272,7 @@ begin
// Default to ProgramData/obs-studio/@PROJECT_NAME@
Result := ExpandConstant('{commonappdata}\obs-studio\plugins\@PROJECT_NAME@');
end else if (IsUserMode()) then begin
Result := ExpandConstant('{userpf}\obs-studio\plugins\@PROJECT_NAME@');
Result := ExpandConstant('{usercf}\obs-studio\plugins\@PROJECT_NAME@');
end else begin
// If a path was given as an argument, use it.
if (Value <> '') then begin
Expand Down

0 comments on commit f66fabc

Please sign in to comment.