App runs as normal user only after running once as Admin - Advanced Installer Community
ankurp
Posts: 6
Joined: Wed Feb 15, 2012 3:50 pm
Location: India
Contact: Website

App runs as normal user only after running once as Admin

Hi,

We are facing a weird problem with our application installer created using Advanced Installer Pro.

Our installer does a per-machine installation into Program Files as Administrator (e.g. installed through Active Directory GPO or by running EXE installer as Admin). Now, when a normal user tries to run the application (e.g. by double-clicking the shortcut or the EXE), nothing happens - absolutely nothing - no spinner, no process in Task Manager, nothing. Now, we right-click the application shortcut or EXE, select Run as Administrator and the application runs properly. We now quit/kill the app and run the app again as normal user by double-clicking and ... voila, app runs perfectly!

Why doesn't the app run as normal user first time after install? And then, why does it run properly after it has been run once as Administrator?

Thanks,
- Ankur.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: App runs as normal user only after running once as Admin

Hi Ankur,

Does that shortcut have the "Run as administrator" option enabled from the Shortcut Properties Dialog in your Advanced Installer project?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ankurp
Posts: 6
Joined: Wed Feb 15, 2012 3:50 pm
Location: India
Contact: Website

Re: App runs as normal user only after running once as Admin

Hi Mihai,

The shortcut does not have "Run as Administrator" option set. In fact, this issue is also seen while double-clicking the exe itself.

Thanks,
- Ankur.
ankurp
Posts: 6
Joined: Wed Feb 15, 2012 3:50 pm
Location: India
Contact: Website

Re: App runs as normal user only after running once as Admin

Hi,

Any updates on this? This issue is troubling us a lot :-(.

Thanks,
- Ankur.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: App runs as normal user only after running once as Admin

Hi Ankur,

This doesn't seem to be caused by the installer but by the application itself. Since you already tryied GPO and manual deployment with the same result, you can perform a manual installation (copy all files, resources and dependencies on the target machine in the right places with the right settings) and see if the behavior persists. If it does, you can perhaps follow my answer on the Run Application always as an administrator thread to embed a manifest for your .EXE.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
ankurp
Posts: 6
Joined: Wed Feb 15, 2012 3:50 pm
Location: India
Contact: Website

Re: App runs as normal user only after running once as Admin

Thanks Mihai. I will check it the way you describe.

Return to “Common Problems”