How do I run Allegiance without administrator rights?

From FreeAllegiance Wiki
Jump to navigationJump to search

For some security reasons, some users want to work without administrator rights. This is a short HowTo, how you make Allegiance work without administrator rights.


Info.png
Note This HowTo is only tested under Windows XP Professional, Windows Vista Home Premium (64 bit) and Windows 7 Professional (64 bit), but it should also work with any other version Windows XP, Vista and Windows 7.

Screenshots were taken in Windows XP.

Step 1: NTFS rights

Open the Allegiance folder properties.
The Advanced button.
Turn off permission inheritance.
Grant write permissions.

Allegiance needs to be installed on the system drive, but by default a normal user has no write rights on it (excluding My Documents). Allegiance and ASGS do need these rights, so you will need to change the NTFS rights of your Allegiance folder.

  1. Navigate to the folder you installed Allegiance in.
  2. Go up one folder.
  3. Right click that folder and open Properties.
  4. Switch to the Security tab and click on Advanced.
  5. In the Permissions tab, uncheck the Allow inheritable permissions from the parent box.
  6. Choose Copy in the dialog that pops up.
  7. Click Close in the Advanced Security dialog and return to the Security tab.
  8. Pick the Users group from the upper list.
  9. Under the Allow column, click on the Modify and Write checkboxes.
  10. Save the changes with Ok and close all the windows.

Step 2: Registry

Allegiance and ASGS save data in the registry, but the default user has no rights to edit these keys. We will need to also grant those permissions.

  1. Choose Run... from the Start menu.
  2. Input "regedit" and hit Enter.
  3. Navigate to the following registry key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft Games\Allegiance
    Same goes for the registry.
    On 64 bit OS you need to navigate to he following key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Microsoft Games\Allegiance
  4. Right click on the Allegiance 'folder' and access the Permissions dialog.
  5. Under the Allow column, click on the Full Control checkbox.
  6. Save the changes with Ok and close Registry Editor.

Step 3: UAC whitelisting

You may get a message, that ASGS is an unauthorized program.

Warn.png
Warning! Most Windows users will not need to complete this step.

Try logging in with your limited account now. Only continue should you experience problem.

To get rid of that message you need to follow the following steps:

  1. Download Microsoft Application Compatibility Toolkit 5.5 and install it (you may need administration rights)
  2. Run Compatibility Administrator (you may need administration rights)
  3. Right-click on New Database (1) [Untitled_1], select Create New > Application Fix...
  4. Type in a name for your application (e.g. ASGS) and select your program: C:\Program Files\Microsoft Games\Allegiance\ASGSClient.exe and click on Next>
  5. Under Operating System Modes select None and click Next>
  6. Select NoVirtualization under Compatibility Fixes
  7. and select RunAsInvoker
  8. Click on Finish
  9. Repeat steps 4-8 with ASGSUpdate.exe
  10. Save your fix by clicking Save
  11. You may need to enter a database name (e.g. ASGS)
  12. Save your database file (e.g. C:\Program Files\Microsoft Games\Allegiance\ASGS.sdb)
  13. Close the Compatiblity Administrator
  14. Open command prompt (cmd) (you may need administration rights)
  15. Run sdbinst by typing sdbinst "C:\Program Files\Microsoft Games\Allegiance\ASGS.sdb"
  16. Now ASGS runs without UAC notification.