swapmusale
Posts: 3
Joined: Fri Mar 15, 2019 10:52 pm

Not able to find users Appdata folder in custom Action

Hi Team,

I am attempting to get users LocalApplicationData folder in the custom action.

it's working fine for a single user, but facing issue with all users installation, it's always showing `system` or `default` user.
Not giving a path for logged in user.

Please have a look at code snippet toward here.

Code: Select all

$"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Temp\\migration";`
Gratitude in advance
Swapnil
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Not able to find users Appdata folder in custom Action

Hello Swapnil and welcome to our forums,

I am not quite sure I understand your scenario here. Could you please give me some more details about it (maybe exemplify)?

I'm looking forward to your reply.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
swapmusale
Posts: 3
Joined: Fri Mar 15, 2019 10:52 pm

Re: Not able to find users Appdata folder in custom Action

Hi Catalin,

I am trying to build Installer for a windows app, where I m providing `single user` and `multi-user` Installation options.
and I am storing some data inside users LocalAppData folder using Litdb file, so now I wanted to update LitDb version.
for that, I have written one Custom command which will be upgrading my LitDB version.
Single user It works fine.
Multi-Users getting admin users so couldn't get logged in users path getting only default user path.

Thanks
Swapnil
Catalin
Posts: 6586
Joined: Wed Jun 13, 2018 7:49 am

Re: Not able to find users Appdata folder in custom Action

Hello Swapnil,

Thank you for the detailed description. This is, indeed, a strange behavior.

In order for me to further investigate this, could you please send me a copy of the .AIP file by e-mail at support at advancedinstaller dot com?

Looking forward to hearing from you.

All the best,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”