Page 1 of 1

Installation issue with non-priviledged user

Posted: 30 Aug 2021, 07:27
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 7163 times
Startup error message
Startup error message
error.jpg (38.02 KiB) Viewed 7163 times

Re: Installation issue with non-priviledged user

Posted: 30 Aug 2021, 07:39
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?

Re: Installation issue with non-priviledged user

Posted: 30 Aug 2021, 09:47
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 7160 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.

Re: Installation issue with non-priviledged user

Posted: 06 Sep 2021, 06:50
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

Re: Installation issue with non-priviledged user

Posted: 17 Feb 2025, 22:09
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.

Re: Installation issue with non-priviledged user

Posted: 18 Feb 2025, 09:41
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?

Re: Installation issue with non-priviledged user

Posted: 18 Feb 2025, 10:29
by G4POP
Lele is aware and currently checking this