Skip to content

Conform to User Account Control on Windows #43

Open

Description

@x87

Windows prevents or alters some operations:
https://en.wikipedia.org/wiki/User_Account_Control#Tasks_that_trigger_a_UAC_prompt

If Sanny Builder runs with non-elevated rights (user) the following would not work:

* Windows generates those files in "C:\Users\username\AppData\Local\VirtualStore\Program Files\Sanny Builder 3" thanks to File and Registry Virtualization

This can be bypassed if run sanny.exe as administrator.

Activity

  1. added
    type:bug
    priority:p1
    workaround-available
    on Aug 3, 2020
  2. x87 commented on Aug 3, 2020

    @x87
    CollaboratorAuthor

    adding a manifest file as suggested prompts an elevation request on each start, that's not very convenient.

  3. CookiePLMonster commented on Aug 5, 2020

    @CookiePLMonster
    • Windows generates those files in "C:\Users\username\AppData\Local\VirtualStore\Program Files\Sanny Builder 3" thanks to File and Registry Virtualization

    The fact registry virtualization is still used with Sanny is a bad sign, as it's supposed to be used only for legacy, UAC unaware applications. Sanny shouldn't be UAC unaware.

  4. x87 commented on Aug 6, 2020

    @x87
    CollaboratorAuthor

    @CookiePLMonster Sanny is legacy 🤷‍♂️

    So far I think I managed to avoid the need for admin rights for the file association. Previously it used HKEY_CLASSES_ROOT which is not a recommended way nowadays. Now Sanny uses HKEY_CURRENT_USER\Software\Classes

    I'm not sure what to do with the File Virtualization when Sanny is installed in Program Files. While I can move settings.ini to AppData, self-updating the rest of files in Sanny's data folder would seem impossible without admin rights.

  5. added
    priority:p2
    and removed
    priority:p1
    on Aug 20, 2020
  6. OrionSR commented on Aug 26, 2020

    @OrionSR

    My experience is that file associations don't work when Sanny is already running in administrative mode. To be more specific, if I double-click on a file with the File Explorer and Sanny is running then it seems to get stuck instead of prompting for admin confirmation. For this reason I prefer to run Sanny with non-elevated status.

    To overcome many of the other limitations mentioned, I don't install Sanny or the games in Program Files and run Sanny without elevation. Most functions seem to work as expected except the Coords Manager can't access game memory, and Run Game (F8) doesn't work.

    I've been considering installing SB-3.5 using the default install options on my Win10 machine to get a better idea of the issues most users are struggling with. But then again, I would expect Win10 to fight with me as I try to update my edit modes. Not just with Sanny but any other tool I use to organize the files in Sanny's directories.

  7. removed
    priority:p2
    on Aug 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope:IDEtype:bugworkaround-available

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions