UAC prompt when Single EXE shows odd "Program Name:" value - Advanced Installer Community
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

UAC prompt when Single EXE shows odd "Program Name:" value

When I launch my single Setup.EXE (resources inside) on a Win7 64-bit machine the UAC prompt has some pretty odd stuff listed for the Program Name value, such as:

Program Name: C:\Users\<username>\AppData\Roaming\<Manufacturer><Product Name><Product Version>\install\<msi filename>

Is it possible to make it so that the name shown here is the same as the name of the EXE that the user clicked on, such as:

Program Name: C:\Users\<username>\Downloads\Setup.exe

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

Re: UAC prompt when Single EXE shows odd "Program Name:" val

Hello,

Please take a look on our "Why does the security prompt show a random name for my package although I specified one in Media page?" FAQ which should be useful for you.

Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: UAC prompt when Single EXE shows odd "Program Name:" val

Hi Daniel,
Thanks for that link. I looked at the linked help topic and it says I just need to specify a Description as part of the Digital Signature -> Signature Properties section. I do have something defined there already; it says "[|ProductName]", so there must be something else I am doing wrong.

Also, why does the UAC only come up when the user is half way through the installation wizard? I would have thought it would popup before any UI from the installer is shown.

Perhaps all of this is explained by the fact that my digital cert is a temporary (self-signed) one for now, we will be getting a full fledged certificate in due time, hopefully that resolves this question.

I noticed too that on "Uninstall" that the Program Name also has an odd Program Name: "C:\Windows\Installer\e3c91.msi"

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

Re: UAC prompt when Single EXE shows odd "Program Name:" val

Hello,
Thanks for that link. I looked at the linked help topic and it says I just need to specify a Description as part of the Digital Signature -> Signature Properties section. I do have something defined there already; it says "[|ProductName]", so there must be something else I am doing wrong.
I'm not sure why this happens. Can you please add a description and a description URL in "Description" and "Description URL" fields from "Digital Signature" page and test again your setup package?
Also, why does the UAC only come up when the user is half way through the installation wizard? I would have thought it would popup before any UI from the installer is shown.
Please keep in mind this is the normal behavior. The UAC prompt appears during "Install Execution Stage" (after you click [Install] button on "VerifyReadyDlg" dialog) when the installation process needs administrator rights to install files. If you want the UAC promt to be displayed before UI, then you can enable the "Run as administrator" option from "Install Parameters" page.
Perhaps all of this is explained by the fact that my digital cert is a temporary (self-signed) one for now, we will be getting a full fledged certificate in due time, hopefully that resolves this question.
You can try to manually sign (using SignTool.exe) the setup installation and see if the behavior still persist.
I noticed too that on "Uninstall" that the Program Name also has an odd Program Name: "C:\Windows\Installer\e3c91.msi"
Please keep in mind that when Windows Installer installs an MSI file it caches it in the hidden Windows Installer Cache directory. Also, when uninstalling, it will use it from Windows Installer Cache folder.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
kjullion
Posts: 176
Joined: Mon Nov 11, 2013 9:02 pm

Re: UAC prompt when Single EXE shows odd "Program Name:" val

Hi Dan,
I have conclusively determined that if I set the "Run as Administrator" bit to "on" in the project then on Win7 64-bit the "program name" value is using the Description field's value. If I turn off the "Run as Administrator" bit then the "program name" value is the odd value I pointed out earlier. Since I pretty much want/need the UAC prompt to occur at launch of the Setup, I think I'm going to leave the "Run as Administrator" bit on, which means my "program name" issue is solved.

I did some tinkering to try and run the SignTool and my tinkering messed up my ability to do any kind of signed builds, so I think I must have done something wrong to my test .CER file. It was bad enough that I had to restore some files from backup to fix it, so I think I'll live with what I have now until I get to a real cert and some better knowledge/understanding of the utilities: makecert, signtool etc.

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

Re: UAC prompt when Single EXE shows odd "Program Name:" val

Hello,
I have conclusively determined that if I set the "Run as Administrator" bit to "on" in the project then on Win7 64-bit the "program name" value is using the Description field's value. If I turn off the "Run as Administrator" bit then the "program name" value is the odd value I pointed out earlier. Since I pretty much want/need the UAC prompt to occur at launch of the Setup, I think I'm going to leave the "Run as Administrator" bit on, which means my "program name" issue is solved.
I'm not sure why this happened. However, I'm glad you got this working.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”