Giter Site home page Giter Site logo

Comments (9)

stefansundin avatar stefansundin commented on July 20, 2024

It was done like this because it is the easiest way to make NSIS elevate the installer.

  1. The user will not lose their configuration, since it is not stored in a user-specific location. I agree it is not ideal to run the program elevated, but I'd rather do that than having users become frustrated the first time the app is run because they are trying to drag elevated programs.
  2. Maybe you are right, maybe I should add it to all users instead. I haven't really thought about this because all my computers only have one user.

I built AltDrag when installing stuff in Program Files was more common. I agree that it is probably time to revise that and start installing in %APPDATA%.

Thank you for your input.

from altdrag.

AeliusSaionji avatar AeliusSaionji commented on July 20, 2024

I am perfectly fine with installing to Program Files, I only mentioned %APPDATA% as an option where the installer doesn't require elevation at all.

The default for Elevate to administrator privileges is off, so it seems MORE inconsistent to me that you would have an elevated AltDrag for just the first session ("why could I drag this window before now suddenly I can't?!")

It is possible to operate on administrative windows without running the process as an administrator. It works by installing a system certificate- I don't know the details, but you can look through the source code here:
http://www.autohotkey.com/board/topic/70449-enable-interaction-with-administrative-programs/
And this article is referenced in the above link
https://msdn.microsoft.com/en-us/library/bb756929.aspx

from altdrag.

stefansundin avatar stefansundin commented on July 20, 2024

I have never seen the system certificate thing before, thanks!

from altdrag.

AeliusSaionji avatar AeliusSaionji commented on July 20, 2024

It might not be a viable solution since the formal process seems to involve a yearly payment for a signed cert, but if you are able to implement a self-signed cert for the more technically inclined users (as AHK did), that'd be great too!

I really don't have a problem with AltDrag not working on elevated processes by default, since I rarely have elevated processes running and I understand the technical limitations when I do (and AltDrag incidentally helps me identify programs running as admin when they shouldn't be!). However you decide to proceed with the cert thing, I'll be happy :)

from altdrag.

Zer0t3ch avatar Zer0t3ch commented on July 20, 2024

I built AltDrag when installing stuff in Program Files was more common. I agree that it is probably time to revise that and start installing in %APPDATA%.

Just a note, but this wouldn't really be practical when trying to install system-wide for all users.

from altdrag.

Nindaleth avatar Nindaleth commented on July 20, 2024

If installing for all users, %ALLUSERSPROFILE% can be used (or %PROGRAMDATA% for Windows Vista and newer).

from altdrag.

stefansundin avatar stefansundin commented on July 20, 2024

I hope everyone is happy with the solution I picked: 2679805

Let me know if you have opinions. :)

from altdrag.

AeliusSaionji avatar AeliusSaionji commented on July 20, 2024

This change probably requires an uninstall of the old version first, right?

I'll test it out when I next get the chance

from altdrag.

stefansundin avatar stefansundin commented on July 20, 2024

Yup, I put this note on the upgrade page:

Note: version 1.1 and later defaults to install to the user directory. If you are upgrading from a previous version, then I recommend that you first uninstall and then install from scratch. Otherwise you have to right click the installer and use 'Run as administrator'.

from altdrag.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.