Installation issue with non-priviledged user

V2 error reports
Post Reply
ok1smn
Novice Class
Posts: 3
Joined: 29 Aug 2021, 19:12

Installation issue with non-priviledged user

Post by ok1smn »

Hi all,
I'm having an issue with Log4OM (and the others), when installing a program as a non-privileged user on Win10. Installer will automatically request privileges escalation (asking for local admin password). When entering password installation begins and all program files are successfully copied to the C:\Program Files (x86) folder. The problem arises when the installer wants to install user data, as they are copied to the admin user's profile (AppData\Roaming) and not the actual user profile I'm using. As far as I was able to recognize, it is SQLite libraries and similar files. Installation will finish successfully, but the program doesn't start and finish with error, covered by the initialization screen. The error message cannot be closed as it is out of focus.

Thank you for comments, Marian OK1SMN

Installer
Installer
2021-08-30_9-30-23.jpg (21.59 KiB) Viewed 7162 times
Startup error message
Startup error message
error.jpg (38.02 KiB) Viewed 7162 times
User avatar
G4POP
Log4OM Alpha Team
Posts: 11569
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: Installation issue with non-priviledged user

Post by G4POP »

Have you tried right clicking on the Log4OM install file and selecting 'Run as an administrator'?

Have you set the PC UAC to the lowest setting?
73 Terry G4POP
ok1smn
Novice Class
Posts: 3
Joined: 29 Aug 2021, 19:12

Re: Installation issue with non-priviledged user

Post by ok1smn »

>Have you tried right clicking on the Log4OM install file and selecting 'Run as an administrator'?

Thank you for reply. This problem is exactly when run as admin user (user with admin privileges), this is requested by default by the app.

>Have you set the PC UAC to the lowest setting?
My user I'm using has normal user privileges for security reasons.

Here is what I have my user configured
useraccount.jpg
useraccount.jpg (48.29 KiB) Viewed 7159 times
I think the solution is to let user choose destination folder of user data during installation. I can manually change destination folder in oder to user my standard user folder, where my user has read/write permissions.
ok1smn
Novice Class
Posts: 3
Joined: 29 Aug 2021, 19:12

Re: Installation issue with non-priviledged user

Post by ok1smn »

Just for you to know, I got this working. I simply copied all files from privileged user folder C:\Users\<priviledged_user>\AppData\Roaming\Log4OM2 to user's folder C:\Users\<non-priviledged-user>\AppData\Roaming\Log4OM2

Thank you Marian
SP5MTD
Novice Class
Posts: 14
Joined: 14 Feb 2025, 20:45

Re: Installation issue with non-priviledged user

Post by SP5MTD »

Many thanks for this solution Marian. I had the same issue when running instalator of Log4OM as unprivileged user. Installation itself went well (of course asking for admin credentials to run), but then - after successful installation - program reported the same error during startup as in your case and it was not possible to perform initial configuration (enter call sign, location, etc.). Solution was to run the program as administrator, which is ridiculous as we use unprivileged accounts to avoid exactly that. Thus I’m very happy that I found your post, which solved the problem once and for all.

I was just wondering if this could be corrected in the installer. Seems like the installer is having split-brain, and thus installing some files in user home directory and some in admin home directory. I reckon this is because installer asks for elevated rights to install the program, but other programs do the same and somehow manage to put all required files in the proper directory.
73 Mike SP5MTD
SP5MTD
Novice Class
Posts: 14
Joined: 14 Feb 2025, 20:45

Re: Installation issue with non-priviledged user

Post by SP5MTD »

I have just upgraded to version 2.35.1.0 and noticed, that installer again put some files into \Users\admin\AppData\Roaming\Log4OM, instead of \Users\user\AppData\Roaming\Log4OM, where user is the one initiating installation. I guess the installer is using the same procedure for first time install and upgrade.

Are this files important for the upgrade? If yes, which files shall I exclude from copy to unprivileged user directory to avoid any loss in my config?
Last edited by SP5MTD on 18 Feb 2025, 11:03, edited 1 time in total.
73 Mike SP5MTD
User avatar
G4POP
Log4OM Alpha Team
Posts: 11569
Joined: 21 Jan 2013, 14:55
Location: Burnham on Crouch, Essex UK

Re: Installation issue with non-priviledged user

Post by G4POP »

Lele is aware and currently checking this
73 Terry G4POP
Post Reply