Need help - AS7 only works with admin privileges

Go To Last Post
20 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello fellow freaks,

 

I'm usually not quick to give up on a problem like this but I'm completely lost here. To preface my question, yes I have used the search function but to no avail, both here and on google.

 

Problem is this: I installed AS7 on my Laptop and got a warning during installation stating that the Intel HD3000 graphics driver could cause trouble and I should update it. However both Windows and Intels driver installer tell me that the driver I'm using is the most recent. Otherwise installation went smooth as can be. Problems start when I try to create a new project in AS7, because I can't. When I select a project type (C\C++ executable) the device selection dialog box is empty. Because of this I can't select a target device and thus am stuck.

 

Now there's a catch to that. I was able to create a project flawlessly when I opened AS7 on (one of many reinstallations') setup completion. So I thought great, problem solved. So I close and reopen AS7 and the project is gone. That's when I realized that I had run AS7 as an administrator upon setup completion because it inherited the rights from the installation. So I try running AS7 as administrator and lo and behold there is my project, saved in admins personal folder of course, and I can create projects like that.

 

Now I am willing to use AS7 as an administrator for a workaround but in the long run I'm not satisfied by that solution. Does anybody have a clue were I could start digging for a proper solution?

 

Any help is greatly appreciated, as I haven't been able to find anybody with similar problems on the internet.

 

 

My sytem specs are:

 

HP EliteBook 2760p
Windows 10 Pro x64 Build: 14393
i5 2540M
16 GB RAM
Intel HD Graphics 3000
AS 7.0.1188

Last Edited: Sat. Jan 7, 2017 - 01:03 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have the exact same problem. My system is similar to yours, the CPU is an i5 2467M with integrated intel graphics, the OS is Windows 7 x64. But why would that be an issue?

 

For security reasons, I do all my work in a regular user account, and only introduce the admin password when needed (like installing programs). So, the exact same thing happened to me: in the first launch after install, everything went well since it was running as admin, because of the install process.

 

But when I reopened as a mere user, it doesn't really work, does not recognize dev boards that I connect, etc. Only as admin everything works well. This is only AS7, AS6 works without any problems.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wow, finally someone who is experiencing similar issues. So I tried installing AS7 in a user folder to mitigate any ownership and permission problems but no go.

 

At this point I kinda suspect the registry to be wonky. Or AS is just not made to be used in the setup we're running. Btw, I use my user accounts for exactly the same thing as you.

The worst part about it is that my boss wants to change to AS7 at work and there we naturally have no admin rights. That's a huge problem.

 

Thanks for you reply though, maybe we can get help if word of this issue gets spread in the community.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Try right clicking your launch icon and select "Run as administrator" while logged in as a mere user.

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:
Try right clicking your launch icon and select "Run as administrator" while logged in as a mere user. Jim

 

That works, of course, but it's rather inconvenient. I don't like having non system programs running with admin privileges, that's a major security hole!

Besides, at work the admin password won't be available (it shouldn't be, anyway...)

 

But, I don't think everyone here runs AS7 as admin? Surely not, that's crazy! If some hackers find out about this, they may create all kinds of exploits, especially if AS7 keeps some network connection open (I wouldn't be surprised).

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

The "Run as Admin" is not as big a deal as many may think.  Keep in mind that because Studio is built on Microsofts Visual Studio you may have no other choice, but I would doubt that this is the case.

 

As a work around you can go into the O/S settings for Studio and allow the Application to run as any user.  I believe this can show up as a pop-up during installation on some systems.  If you feel like trying to install AS7 on your machine as a mere mortal that might be an option for you as well.

 

With Windows 10 it can be a little bit tricky.  I only have one machine with that Virus on it, but I will try AS7 on it as a mere mortal user later and report back.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I have AS 7.0.1188 installed on Win10.  I can create projects as a non-admin.  I get the device selection window.

 

I don't know where the data in the window comes from.  I see files for a lot of devices here:

C:\Program Files (x86)\Atmel\Studio\7.0\packs\atmel

 

You might want to see if you can navigate there with Windows Explorer.

 

I do have to overcome a couple of Studio bugs to get the project to build, but making the project seems to be okay.

Last Edited: Sun. Jan 8, 2017 - 09:56 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just to be clear, the path I gave earlier has to be explored deeper to see the devices.  There are various branches you can take that end up in a "dev" folder.  Like this one:

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

One more thing.  I don't use ASF and didn't include it in the installation.  In case that makes a difference.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know what the OP gets, but in my case when I create a project as regular user, this window appears:

 

 

But when running as admin, I get this:

 

 

So most options are missing when running as regular user. I don't know where the program gets the data to build this window, I've tried to change the permission of the entire studio 7 installation directory to allow full control to all users but to no avail.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

jgmdesign wrote:
I only have one machine with that Virus on it, but I will try AS7 on it as a mere mortal user later and report back.

 

Ok, I created a standard user account and restarted the PC and logged in as that user.  I then started up AS7 and clicked on Create New Project.  I get the second screen that is shown above this post.  All possible project options.  I clicked on GCC C Executable project and hit OK.

 

I then Picked MEGA48P from the list of devices and hit OK.  Got the usual environment screen with main .c file open and away I go.

 

AS7 was installed as an ADMIN originally like the OP.

 

I did nothing other than create a new user with Standard Account type as that is all that was available.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

So far we have 2 users with this problem.  The only thing we know that they have in common is the Intel HD 3000 graphics.  (I checked out El Tangas' 2467m CPU.)  Mike got a warning about this when installing.  I don't know if El Tangas got it.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Good point.  I just went and looked at the machines I have both versions of Studio running on

 

Core i5 - Intel HD4000

Pentium HT - ATI Radeon 2400

Core2DUO - ATI Radeon HD3450 (Win10 machine)

 

 

JIm

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

steve17 wrote:

So far we have 2 users with this problem.  The only thing we know that they have in common is the Intel HD 3000 graphics.  (I checked out El Tangas' 2467m CPU.)  Mike got a warning about this when installing.  I don't know if El Tangas got it.

 

Yes, I have that warning too during installation, I have HD3000, driver version is 9.17.10.4229. It would be kind of strange if that was the cause, but you never know...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Okay, thanks for the Input so far. I'm installing on my Desktop right now to see if it's any different. Will report back.

 

 

Edit: Huh, so I installed AS7 on my Win 10 desktop as a standard user and it works just fine. Now somebody riddle me this: How can an incompatible graphics card/driver interfere with a program like AS in a way that you can not run it as a mere mortal user but at the same time let's you run the same program as an administrator just fine.

 

Also is there a way for anybody on this forum to forward this issue to an Atmel tech, so there can be a solution in the future?

 

Anyway thanks for the help, I'll stick to it and Report back if there's any trace of a solution.

Last Edited: Mon. Jan 9, 2017 - 07:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel support may be on the wane, but maybe you can still submit a Support Case.  The guy that put that warning in Studio might know something we don't.

 

Go here:

http://www.atmel.com/design-support/

 

 

When I try it with I.E., I get a logon error.  Apparently the error goes away when I disable Protected Mode in I.E.  However I decided to fire up my FireFox instead, and I was able to logon.  You may have to create an account.

 

To disable Protected Mode in I.E., I guess this is the way.

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am running studio7.0.1005

if I don't run as administrator the program will randomly die.

the 'solution' to run as admin was suggested by avr support.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

MikeFoxtrot411 wrote:
Now there's a catch to that. I was able to create a project flawlessly when I opened AS7 on (one of many reinstallations') setup completion. So I thought great, problem solved. So I close and reopen AS7 and the project is gone. That's when I realized that I had run AS7 as an administrator upon setup completion because it inherited the rights from the installation. So I try running AS7 as administrator and lo and behold there is my project, saved in admins personal folder of course, and I can create projects like that.

 

There is a difference between the Administrator account, and a user account which has Admin privileges?

 

Many programs have the option to install for "this user only, or all users" - I don't recall whether AS asks that?

 

jgmdesign wrote:
  Keep in mind that because Studio is built on Microsoft Visual Studio...

Yes, always important to keep that in mind - so have you checked to see if people are having the same problem with VS ... ?

 

 

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Just to add something to this regarding windows user names. Not sure it's tied to any of the problems in the older posts above needing to be run as admin.

 

Post #10 above shows images with a user name of jmr_2 and the other image shows jmr, the jmr seems to work ok but not the jmr_2.

IIRC there have been problems before when AS is installed under user names that contain spaces or other non A-Z chars (0-9 chars should also be ok)

 

 

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, finally I managed to get AS7 to work.

 

I first had to hunt down every last residue of the previous (failed) installations, in the registry (with ccleaner), in the hidden directories (root drive):\ProgramData\Atmel\AtmelStudio\7.0, (user path)\AppData\Local\Atmel\AtmelStudio\7.0 and also in the main program install directory.

This was needed or else the installation would leave a mess of conflicting versions resulting in a dozen errors on startup. The install program absolutely needs to be improved to do this cleanup instead of the user, c'mon!

 

Then, I had to install from the admin account, instead of installing from the user account with admin privileges (i.e. using admin password). Why? No idea, maybe because the regular user account has an underscore as suggested in #19. I used the online install, which I hate to do from an admin account.

 

So I suppose I can finally uninstall AS6.

Last Edited: Sun. Apr 30, 2017 - 03:14 PM