Author |
Topic: Admin or user? (Read 1399 times) |
|
nooneyouknow
New Member
member is offline
Gender:
Posts: 39
|
|
Admin or user?
« Thread started on: Oct 7th, 2015, 9:04pm » |
|
Is it possible to run LB as a User instead of Administrator on a WIN7 system?
If I install the 4.5 Trial as a User many things don't work, including that it resists writing the INI preference file.
However, if I start LB from the Admin account all is well.
I don't usually operate my systems while logged in as Admin.
|
|
107.215.45.32
|
|
|
|
Rod
Global Moderator
member is offline
Graphics = goosebumps!
Gender:
Posts: 5745
|
|
Re: Admin or user?
« Reply #1 on: Oct 8th, 2015, 02:49am » |
|
I didn't have any problem with permissions. I downloaded and installed 4.5 as the user I normally am.
Did you run the install as admin? Uninstall and try the download again. Just log on as normal during this process. Don't run as admin or log on as admin I don't think this is required with 4.5 which is more compliant with windows than past versions.
|
|
86.139.129.81
|
|
|
|
nooneyouknow
New Member
member is offline
Gender:
Posts: 39
|
|
Re: Admin or user?
« Reply #2 on: Oct 8th, 2015, 07:27am » |
|
Windows 7 (Home Premium) User (not Admin) Installation asks for Admin password Installation works without problem
Liberty Basic does not show up in the Start menu/All programs area after installation.
Type "Liberty" in the search box to find the folder "Liberty BASIC v4.5.0". Open folder; execute Liberty.exe .
Menu Setup/Preferences choose Environment/Use Syntax Coloring click OK.
Error message box "Unable to write lbasic450.ini file ..."
This happens once ... every time I start Liberty Basic.
A search of "Computer" for the INI file ends without results.
This still happens after I've registered my copy of 4.5.0.
SWITCH TO ADMIN USER
Go to program (x86) folder and start "liberty.exe"
Starts up with "Welcome.bas" loaded.
Title bar says, "UNREGISTERED". I just did the registration in the USER account.
Reenter registration info. Preferences shows that all checkboxes are checked and there are no error messages involved.
A search of "Computer" does not find "liberty450.ini", but perhaps it can't find hidden files.
Anyway, that's why I ask whether I can run Liberty Basic as a USER and not as an ADMIN.
|
|
107.215.45.32
|
|
|
|
Chris Iverson
Administrator
member is online
20% Cooler
Gender:
Posts: 2343
|
|
Re: Admin or user?
« Reply #3 on: Oct 8th, 2015, 08:08am » |
|
I know what happened.
Data for LB gets put in two places: the actual program and support files(DLLs, etc) for it get put into Program Files.
Included code samples/configuration files for LB get put in the installing user's AppData folder. This is an issue if the user installing LB and the user actually using it are two different accounts.
This is one thing with LB I've noticed before; it doesn't play very well with a multi-user system unless you manually copy some files around first. (It usually isn't a problem for most people here because we don't usually use multiple accounts on the same computer.)
In the installing user's profile folder, find the AppData\Roaming\Liberty BASIC v4.5 folder and copy it to your own personal user folder.
C:\Users\<username>\AppData\Roaming\Liberty BASIC v4.5 should be the path, either way.
(Registration is also done per-user, not per-system. The primary reason for this is that LB doesn't ask for the registration code until after it's already running; previous versions, you would have to explicitly restart as Admin to register properly.)
|
« Last Edit: Oct 8th, 2015, 08:10am by Chris Iverson » |
108.171.131.188
|
"Do you believe in destiny?" - Pyrrha Nikos, RWBY "With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
|
|
|
nooneyouknow
New Member
member is offline
Gender:
Posts: 39
|
|
Re: Admin or user?
« Reply #4 on: Oct 8th, 2015, 09:10am » |
|
Thanks, Chris. Makes sense. I will try that and see the results.
BTW, if more folks would separate their Admin and daily use accounts, they would have fewer problems with PC infections.
|
|
107.215.45.32
|
|
|
|
Chris Iverson
Administrator
member is online
20% Cooler
Gender:
Posts: 2343
|
|
Re: Admin or user?
« Reply #5 on: Oct 8th, 2015, 10:01am » |
|
Don't need to tell me that. There's a reason everyone else in my house gets standard accounts. Somehow I haven't had a problem with malware or any of that junk for years.
|
|
108.171.131.188
|
"Do you believe in destiny?" - Pyrrha Nikos, RWBY "With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
|
|
|
nooneyouknow
New Member
member is offline
Gender:
Posts: 39
|
|
Re: Admin or user?
« Reply #6 on: Oct 8th, 2015, 11:04am » |
|
Here's one thing that happens in the "lb450setup.exe" program.
Stuff is installed in the ADMIN account even though I am logged into the USER account.
Nothing is installed in the USER account even though I am installing and logged into the USER account.
EDIT: I should modify that to mean nothing is installed in "...users/appdata/roaming/liberty basic...".
|
« Last Edit: Oct 8th, 2015, 11:06am by nooneyouknow » |
107.215.45.32
|
|
|
|
Chris Iverson
Administrator
member is online
20% Cooler
Gender:
Posts: 2343
|
|
Re: Admin or user?
« Reply #7 on: Oct 8th, 2015, 11:33am » |
|
When you start the installer, you have to type in the credentials of an admin's account for it to actually install.
When you do that, the installer runs under the admin account's profile, not the profile of the user logged in at the desktop.
This is the way Windows works.
You can test this yourself;
Open a command-line window as the standard user, and enter the command whoami.
It will say the system recognizes you as the standard user.
Launch a new command-line window as admin(right-click, hit "Run as Administrator"). Run the whoami command again.
This time, it tells you that it recognizes you as the administrator account.
|
|
108.171.131.188
|
"Do you believe in destiny?" - Pyrrha Nikos, RWBY "With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
|
|
|
nooneyouknow
New Member
member is offline
Gender:
Posts: 39
|
|
Re: Admin or user?
« Reply #8 on: Oct 8th, 2015, 1:41pm » |
|
So it appears that the answer to my original question is that no you can't run Liberty Basic as other than an ADMIN account holder.
on Oct 8th, 2015, 11:33am, Chris Iverson wrote:When you start the installer, you have to type in the credentials of an admin's account for it to actually install.
When you do that, the installer runs under the admin account's profile, not the profile of the user logged in at the desktop. |
|
on Oct 8th, 2015, 02:49am, Rod wrote:I didn't have any problem with permissions. I downloaded and installed 4.5 as the user I normally am.
Did you run the install as admin? Uninstall and try the download again. Just log on as normal during this process. Don't run as admin or log on as admin I don't think this is required with 4.5 which is more compliant with windows than past versions. |
|
|
|
107.215.45.32
|
|
|
|
Chris Iverson
Administrator
member is online
20% Cooler
Gender:
Posts: 2343
|
|
Re: Admin or user?
« Reply #9 on: Oct 8th, 2015, 1:49pm » |
|
You can run LB as a standard user, but you need to copy the data files over.
You need admin permissions to install it, but that's true of most software.
Copy the folder I said in my first post, and it should run fine.
I run it on a standard account all the time at work. Runs fine after copying that AppData folder to the standard user profile. Heck, I don't even have admin permissions on my work computer.
|
« Last Edit: Oct 8th, 2015, 1:52pm by Chris Iverson » |
108.171.131.188
|
"Do you believe in destiny?" - Pyrrha Nikos, RWBY "With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
|
|
|
nooneyouknow
New Member
member is offline
Gender:
Posts: 39
|
|
Re: Admin or user?
« Reply #10 on: Oct 8th, 2015, 2:00pm » |
|
Yes, thanks Chris. I finally got around to doing just that and everything is working fine.
I don't know enough to complain about the installation process, but it has been a bit confusing. Some software asks whether to install for "this account" or "all accounts", so they must be copying files in the background.
Thanks for all y'alls help!
|
|
107.215.45.32
|
|
|
|
Rod
Global Moderator
member is offline
Graphics = goosebumps!
Gender:
Posts: 5745
|
|
Re: Admin or user?
« Reply #11 on: Oct 8th, 2015, 2:40pm » |
|
Sadly it looks like you need a degree in computer science to install Liberty.
We need someone better versed in Windows protocol to explain why the install works for most folks and not for others.
I assume that as a lazy user I have admin privileges and that allows the install. If I had created a user profile I would not have been able to install Liberty?
If so we need an installation tutorial. Or can the installer force an install for all users? Is this what the manifest is about? Why does this only surface for Liberty? All my other software installs are seamless.
|
« Last Edit: Oct 8th, 2015, 2:41pm by Rod » |
86.139.129.81
|
|
|
|
Chris Iverson
Administrator
member is online
20% Cooler
Gender:
Posts: 2343
|
|
Re: Admin or user?
« Reply #12 on: Oct 8th, 2015, 3:00pm » |
|
This is an issue that every program has to solve; there's program data that needs to be stored in program files, and there's user data that needs to be stored under the user's profile, like configuration options.
Pushing it out to every user on the computer at the time of install isn't a solution because there may be users added later that weren't on the system when it was installed. Those users would be in this exact same boat that LB users are right now.
How most programs work is, when it's run(not installed), it checks to see if its configuration/program data exist under the user's profile. If it doesn't, it automatically creates said data at default options, or copies it from the application installation folder. That way, if a user has configuration options, it loads them and uses them. If a user doesn't have configuration options, it saves a copy of the defaults and uses those.
Now, this would have to be adjusted slightly for Liberty BASIC, because of the fact that LB doesn't just have configuration data in AppData: it also has demonstration source code.
One possible solution is to put the files in a subfolder of the install directory by default, and then, when LB runs, copy those from the install directory to the AppData folder if the AppData folder doesn't exist. That way, each user will get their own copy of the demo files the first time they run LB.
|
|
108.171.131.188
|
"Do you believe in destiny?" - Pyrrha Nikos, RWBY "With what wish will your Soul Gem shine?" - Kyubey, Puella Magi Madoka Magica
|
|
|
robmcal
Senior Member
member is offline
Gender:
Posts: 409
|
|
Re: Admin or user?
« Reply #13 on: Oct 8th, 2015, 3:31pm » |
|
Quote:One possible solution is to put the files in a subfolder of the install directory by default, and then, when LB runs, copy those from the install directory to the AppData folder if the AppData folder doesn't exist. |
|
That is how my program works and I have not had any reports of problems like this.
|
|
75.121.140.114
|
Definition of an Upgrade: Take old bugs out, put new ones in.
|
|
|
tooanalytical
member is offline
Posts: 1171
|
|
Re: Admin or user?
« Reply #14 on: Oct 8th, 2015, 6:16pm » |
|
This discussion is confusing. So far, I have LB (still at version 4.04) on windows Vista, and although I have some occasional trouble finding where things are going, I can at least create some dedicated folder on C: and put any files I want (copies) into it.
Any clearer explanations of installing and what will go where?
|
|
76.216.221.34
|
|
|
|
|