Intermitten permissions dialogs on Win 2003 x64 - Advanced Installer Community
timematcher
Posts: 1
Joined: Sun Jun 21, 2015 11:52 pm

Intermitten permissions dialogs on Win 2003 x64

Hi
I have built the an installer using Advanced Installer. Coming from the InstallShield background, everything seems very natural, streamlined and "made sense". The installer works fine on most platforms but I need the installer to work on windows 2003 x86 and x64 based systems as well.
It works but there is slight problem. I will come to that later but first let me describe what the installer does.

The sole job of the installer is to install (or repair) an .NET based Windows Service and replace and update files when a update comes in. The installer also performs several custom actions which require elevation. It works fine on other windows platforms but on Windows 2003 x64 it keep asking for permissions. Please see screenshot below or see attachement:

Image

How can I get rid of this dialog? Lets say, I allow unrestricted access the first time it pops up but then there should be no subsequent permission dialogs! Can you guys guide me? I wish I could send you the aip file but its not allowed to. I hope you can easily create a custom action and reproduce it on windows 2003 environment.

I just need a way for this dialog not to show up in Windows 2003. I cannot mess with group policy settings because there are a couple of client windows 2003 systems.. and a change to group policy settings wont be allowed.

Note: I do sign the installer with a digital certificate as well as all the files in it. The external files I call from the "Launch File" custom actions are either Microsoft provisioned tools (such as sc.exe from the Windows .NET Framework) or exe which I also sign from the same digital certificate. Can these permission dialogs (as shown in attachment) be prevented if I add the certificate to the "Trusted Publishers" store on the target machines? Any ideas

Kindly help. Thanks
Attachments
2015-06-22_3-56-24.jpg
2015-06-22_3-56-24.jpg (42.69 KiB) Viewed 1591 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Intermitten permissions dialogs on Win 2003 x64

Hello and welcome to our forums,

The related dialog could be spawned if your "Launch file" custom actions have the "Run as administrator" flag enabled. As a workaround, you can disable the "Run as administrator" flag for your custom actions and instead enable it for the entire setup package. Just go to "Install Parameters" page and enable the "Run as administrator" option. When this option is enabled the entire installation process will be started with admin rights from the beginning. However, please note that when enabling the "Run as administrator" option from "Install Parameters" page it is mandatory to built your setup as an EXE package because this option can be handled only by our EXE bootstrapper.

If you have any questions just let us know.

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

Return to “Common Problems”