v2rayn: Change behaviors of preinstall
- [x] I have read the Contributing Guide.
For previous pre_uinstall cause dependence on app's specific version, I consider using SymbolicLink instead of HardLink. I've checked on my PC and got no problems so far.
All changes look good.
Wait for review from human collaborators.
v2rayn
- [x] Description
- [x] License
- [x] Hashes
- [x] Checkver
- [x] Autoupdate
Note that if you create symbolic links, the app's built-in update feature might overwrite Scoop's Xray-core (and other core) installations. I think hard link is much safer.
Related:
- #13969
@ProjektMing @stevenlele has a good point:
Symbolic links can only be created by:
-
Administrators: By default, creating symbolic links requires administrative privileges.
-
Developer Mode: If Developer Mode is enabled, non-administrative users can create symbolic links without requiring elevated privileges. Developer Mode grants the SeCreateSymbolicLinkPrivilege to regular users.
-
Manually Assigning Privileges: Non-administrative users can be granted the SeCreateSymbolicLinkPrivilege manually through Local Group Policy Editor or other privilege assignment tools. This allows them to create symbolic links without enabling Developer Mode or having admin rights.
Understood. I just saw hardlink make it hard to upgrade independently, but ignored other factors.