[wix-users] Install files in AppDataFolder for service
Bryan Dam
bryand at recastsoftware.com
Wed Jul 14 06:22:22 PDT 2021
>From memory and a quick Google search the System account's App Data folder is C:\Windows\(SysWOW64|System32\config\systemprofile\AppData\Local
Though unless you actually need those files to be maintain on a per-user basis I wouldn't use AppData at all: sounds like what C:\ProgramData is for.
-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Christian Worm Mortensen via wix-users
Sent: Wednesday, July 14, 2021 9:14 AM
To: wix-users at lists.wixtoolset.org
Cc: Christian Worm Mortensen <opensource at epust.dk>
Subject: [wix-users] Install files in AppDataFolder for service
Hi!
I have an installer where I install a service using InstallService. I have no Account attribute in InstallService element, so the service is running on the "Local System" account like many other services.
The service needs to maintain some files, and I would think the AppDataFolder is an appropriate place to keep them (?).
Now, how, do I get hold of the AppDataFolder for "Local System"
account so I can make an initial set of files and also remove all files on uninstallation?
I cannot see any other way than writing my own WiX plugin and call SHGetFolderPath manually. Something I would like to avoid if possible.
Best,
Christian
____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.firegiant.com%2F&data=04%7C01%7Cbryand%40recastsoftware.com%7C54347926632140528e4c08d946c93c35%7C9315bb44634846c6bd378880b87e774e%7C0%7C0%7C637618652412422636%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=qo0ZArL5QXjDOvd1SQVpUvJYt2zAU1UYdikY4%2Bvq3Oo%3D&reserved=0
More information about the wix-users
mailing list