why does it require admin rights to run, then? right at startup, and if you try to run it with a tool that fakes admin rights, it will crash (unlike other installers it can successfully make run)
They need admin privileges to write to directories such as C:/Program Files, if I had to guess - I didn’t need privileges when installing Halo: Combatevolved Butworse on Linux
but I always installed them on my other drive where it did not need such privileges. it works on linux because here everything runs as admin (in the wine world, it’s not admin in the linux world)
It’s not that Wine runs things as an administrator, Wine emulates the Windows virtual filesystem by creating and using a directory in your home (by default), which means you own the entire thing;
with Windows, if you have a separate drive and *you* create a folder in it, even if you call it “Program Files”, it’s going to let you access it freely because it’s yours.
However, the existing Program Files folder in your OS drive (C: by default, idk if you can change its volume letter) is owned by… I have no idea, actually, but it’s a system account, not yours.
The last paragraph may be inaccurate, I was much less tech literate when I was still daily-driving Windows.
It’s not that Wine runs things as an administrator
yes, it is that
Wine emulates the Windows virtual filesystem by creating and using a directory in your home (by default), which means you own the entire thing;
I was always installing fitgirl games to my other drive, where I owned the entire thing. I know because I remember I set the ownership.
However, the existing Program Files folder in your OS drive (C: by default, idk if you can change its volume letter) is owned by… I have no idea, actually, but it’s a system account, not yours.
The last paragraph may be inaccurate, I was much less
Wine acts as if it has admin on the Windows side, but that’s unrelated to admin on the Linux host, very likely wine is just running with user privileges there.
You are misunderstanding him. Wine has not implemented any UAC dialogue like windows; when the application requests it, it just gets “elevated” as if the user had pressed that UAC button under windows; but Wine does this automatically, as there is no need for something like that.
As stated in comment 50, applications requiring unelevated privileges can be run directly, without the need for “runas” or any similar manual intervention.
why does it require admin rights to run, then? right at startup, and if you try to run it with a tool that fakes admin rights, it will crash (unlike other installers it can successfully make run)
They need admin privileges to write to directories such as
C:/Program Files, if I had to guess - I didn’t need privileges when installing Halo: Combatevolved Butworse on Linuxbut I always installed them on my other drive where it did not need such privileges. it works on linux because here everything runs as admin (in the wine world, it’s not admin in the linux world)
It’s not that Wine runs things as an administrator, Wine emulates the Windows virtual filesystem by creating and using a directory in your home (by default), which means you own the entire thing;
with Windows, if you have a separate drive and *you* create a folder in it, even if you call it “Program Files”, it’s going to let you access it freely because it’s yours.
However, the existing
Program Filesfolder in your OS drive (C:by default, idk if you can change its volume letter) is owned by… I have no idea, actually, but it’s a system account, not yours.The last paragraph may be inaccurate, I was much less tech literate when I was still daily-driving Windows.
yes, it is that
I was always installing fitgirl games to my other drive, where I owned the entire thing. I know because I remember I set the ownership.
I have never installed fitgirl games there.
I’ll trust you on the Windows side of things, but you ought to explain how Wine is running things with admin privileges
Wine acts as if it has admin on the Windows side, but that’s unrelated to admin on the Linux host, very likely wine is just running with user privileges there.
You are misunderstanding him. Wine has not implemented any UAC dialogue like windows; when the application requests it, it just gets “elevated” as if the user had pressed that UAC button under windows; but Wine does this automatically, as there is no need for something like that.
https://bugs.winehq.org/show_bug.cgi?id=40613#c50