I'm trying to create an APPX installation, with the ultimate aim of getting my application onto the Microsoft Store.I'm new to this and having problems.
My application stores data in a folder located in "%programdata%\Cozmix\AlignMix", that is normally located at "c:\ProgramData\Cozmix\AlignMix". I assumed that when a program is packaged as an APPX application it would virtualize this path, but that doesn't seem to be happening. My application still seems to wanting to access the "c:\programdata" folder and gives an AV when it's unable to proceed.
Note: I'm getting the folder path using the following Delphi routine (and CommonAppDir is True):
Code: Select all
function LocalAppDataPath(const CommonAppDir: boolean): string;
begin
if CommonAppDir then
result := IncludeTrailingBackslash(TPath.GetPublicPath)
else
result := IncludeTrailingBackslash(TPath.GetHomePath)
end;
1. Can application packaged as APPX applications store and access data in the %ProgramData%
2. Should I transfer to using AppData or LocalAppData?
3. Am I missing something obvious?
Thanks,
Steve