User/Machine location not set correctly - Advanced Installer Community
tomislav
Posts: 2
Joined: Mon Aug 18, 2025 3:17 pm

User/Machine location not set correctly

HI,

If the install user is not an admin.
The install theme is 'App Installer'.

The user starts the installer and clicks 'Install',
the application will try and install to the location as if the user has Admin rights ('C:\Program Files\Company\'),
and he does not and the installation will fail.

If the user starts the installer and clicks 'Configure' instead of the 'Install' option,
there the 'Only for me' will be selected and on the 'Next' the path will be set to the correct user folder ('C:\Users\usename\AppData\Local\Programs\Company\').

Expected would be that the 'Install' option set the correct install folder depending on the user being admin/not.

Is this a bug or am i doing something wrong?
Last edited by tomislav on Wed Aug 20, 2025 8:01 am, edited 1 time in total.
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: User/Machine location not set correctly

Hello and welcome to our forums,

The AppInstaller theme is quite special in the sense that it tries to limit the user interaction to the maximum.

The option you are using is not automatic, but rather lets the user choose how he/she wants the installation (either per-user or per-machine).

A possible solution for your problem is to change the theme to something that would display the dialog where the user selects either a per-user or per-machine installation by default.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tomislav
Posts: 2
Joined: Mon Aug 18, 2025 3:17 pm

Re: User/Machine location not set correctly

Hi Catalin,

Thanky you for your response.

The option is automatcally set (as it correctly sets the user/machine) depending on the elevation,
but i guess the problem is that it only sets it when the dialog is triggered.

So to work around it, is there a way to set the [AI_UserProgramFiles] (or a new property) on the installation start as that would solve the path issue?
Something like when the installer starts set:

[AI_UserProgramFiles] = userIsAdmin then [ProgramFiles64Folder] else [AppDataFolder]
Catalin
Posts: 7847
Joined: Wed Jun 13, 2018 7:49 am

Re: User/Machine location not set correctly

Hello,

To be quite honest with you, I think the only workaround here would be to use another theme that always displays that dialog. :)

I will discuss this limitation with the developer of that theme to see if we can do something to improve it in the future.

Thank you for bringing this to our attention.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”