On Monday, November 17, 2025, 19:45:16, Garry Martin wrote:
I have a script that installs OCX files. all workingI then use the code section to place app shortcuts in a folder on local pc that links to a server.One of the apps i use has a settings file that i would like to install to the local user documents folder. But as i need to run as admin, the files keep getting put in Users/Administrator/Documents.
If your script is not running with PrivilegesRequired=lowest, there is no reliable way to access any of the user directories. Install any setting file system-wide, and let user override it (also, don't put setting files to Documents, because settings are not documents).
I have a script that installs OCX files. all workingI then use the code section to place app shortcuts in a folder on local pc that links to a server.One of the apps i use has a settings file that i would like to install to the local user documents folder. But as i need to run as admin, the files keep getting put in Users/Administrator/Documents.