User Account Control Prompt - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

awing
Posts: 7
Joined: Wed Dec 05, 2012 7:03 pm

User Account Control Prompt

Why does this dialog box appear for some applications and not others?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User Account Control Prompt

Hello,

Please keep in mind that the related UAC dialog always appears when a per-machine installation type is performed. Only if you have a per-user installation type you can skip showing this dialog.

Also, you can take on our "UAC" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
awing
Posts: 7
Joined: Wed Dec 05, 2012 7:03 pm

Re: User Account Control Prompt

OK. I set the installation type to Per-machine only (fails if adminstrator) and re-ran install and the program installs correctly.

It places the shortcut in the Programs menu and in the Startup folder. When I reboot, the application does not run. When I click the icon from the Programs menu, it displays the UAC prompt.

However, when I open the folder in which the EXE resides and double click directly on the EXE, it runs fine!

Help!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User Account Control Prompt

Hello,
It places the shortcut in the Programs menu and in the Startup folder. When I reboot, the application does not run. When I click the icon from the Programs menu, it displays the UAC prompt.
I'm afraid I don't fully understand what you mean. Can you give us more details about your behavior (maybe exemplify)? Also, can you reproduce the behavior on multiple clean machines? If so, can you give us a detailed step by step test case scenario so we can try to reproduce and investigate the behavior?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
awing
Posts: 7
Joined: Wed Dec 05, 2012 7:03 pm

Re: User Account Control Prompt

I am able to recreate the behavior on several machines.

To be clear, the install places the shortcut in the Startup folder, but the application does not start at the time of log in.

If I open the Startup folder, I see the shortcut. When I click on the shortcut, a UAC dialog appears.

I do not see a UAC dialog at the time of startup.

Thanks
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User Account Control Prompt

Hello,

In order to achieve what you want you can proceed as it is described in our "create startup for my application" thread.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
awing
Posts: 7
Joined: Wed Dec 05, 2012 7:03 pm

Re: User Account Control Prompt

Please read my post carefully. I already did this. The application shortcut resides in the startup folder.

I am thinking its due to the UAC dialog that I receive

HOW do I build this install so that the application will not display the UAC?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: User Account Control Prompt

Hello,

Please keep in mind that in order to run an application on startup, then you should proceed like this:
- Go to "Registry" page and under the HKEY_LOCAL_MACHINE\SOFTWARE key create the following keys Microsoft\Windows\CurrentVersion\Run.
- In the "Run" key create a new registry value like this:
  • Name: YourApp
    Date:<path_to_YourApp> (e.g. [#myapp.exe])
- Build and run the project.
HOW do I build this install so that the application will not display the UAC?
I'm afraid this cannot be controled through the installation package. If your application has embedded a manifest file which specify that the current application requires elevation or if your application try to write in a computer location that requires elevation (e.g. HKLM registry hive, Program Files folder), then the UAC prompt will always appear.

Also, you can take a look on "Disable UAC Prompt for an Application" article which could be useful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: User Account Control Prompt

Hello Andrew,

After our phone conversation I couldn't find any e-mail from you in our archives. Can you please send us an e-mail to support at advancedinstaller dot com so we can pick up where we left off?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”