none
ActiveX is installed only in administrative mode on IE9 but only recognized in user mode RRS feed

  • Question

  • I've developed an ActiveX component using .NET & C# (VS2010). I've also built a setup program for it using VS2010 Setup project and wrapped it in a cab.<o:p></o:p>

    When I try to install the ActiveX (via test web page) it is installed only if running the browser in administrative mode ("Run As administrator"), but that installation is NOT recognized by the administrative mode browser. Only on the non-administrative mode browser the installation is recognized. When trying the test web page again on the administrative mode browser it asks again for permission to run the install. (I not sure, but may be on first test it was recognized on administrative mode browser, but not on non-administrative one). <o:p></o:p>

    When I run the setup program directly (no via web page) I receive about the same results: the installation is recognized only while running the browser in non-administrative mode. The only difference is that when running the setup directly it prompts for elevated user rights, while when set is run via web page no prompt for elevated user rights is shown, and as said it only succeeds in administrative mode.<o:p></o:p>

    All of this happens on 64bit Windows 7 machine with both 32bit and 64bit IE9. Also tried switch the browser to compatibility mode, or to IE7 mode/ IE7 standards and got the same results. All this PC are on WKGROUP network. Not on domain controlled
    network (no group policies applied).<o:p></o:p>

    When I try all of this on XP machine (32bit) and IE8 the installation of the ActiveX is never recognized by a regular (non-administrative) user. I always try the installation via administrative user. Currently also in administrative user the installation is not recognized. I thinks it was recognized in some of the earlier test but now I cannot get it be recognized even on admin user (XP machine).<o:p></o:p>

    My Qs are:<o:p></o:p>

    1. Why ActiveX is not recognized by administrative mode browser?<o:p></o:p>

    2. I can I make setup ask for elevated user rights when running via web page on non-administrative mode browser?<o:p></o:p>

    Any help will be very appreciated.<o:p></o:p>

    Thanks!<o:p></o:p>


    Friday, December 21, 2012 12:07 AM

Answers

  • Hi all,

    It seems that I've solved the problem. The framework for building the setup program (I've used VS2010 Setup Project template from the 'Visual Studio Installer' category) has a property called InstallAllUsers in the Properties Window (NOT in the Property Pages). By default that property is set to False - meaning that install will be applied only to one user - the one that activates the setup. After changing that InstallAllUsers property to true the problem was resolved: I still have to install in administrative mode (which is a desired prerequisite when installing to ALL users), but the install (of the ActiveX) is recognized both in administrative and non-administrative modes.

    Itzik

    • Marked as answer by Itzik-iTechCOM Saturday, December 29, 2012 5:50 PM
    Saturday, December 29, 2012 5:50 PM

All replies

  • I've developed an ActiveX component using .NET & C# (VS2010). I've also built a setup program for it using VS2010 Setup project and wrapped it in a cab.<o:p></o:p>

    Hi,

    For the programming issue, I would like suggest you redirect the issue to MSDN forum for further help.

    http://social.msdn.microsoft.com/Forums/en-US/categories

    Thanks for your understanding.

    Regards.


    Spencer
    TechNet Community Support

    Monday, December 24, 2012 4:35 AM
    Moderator
  • Hi all,

    It seems that I've solved the problem. The framework for building the setup program (I've used VS2010 Setup Project template from the 'Visual Studio Installer' category) has a property called InstallAllUsers in the Properties Window (NOT in the Property Pages). By default that property is set to False - meaning that install will be applied only to one user - the one that activates the setup. After changing that InstallAllUsers property to true the problem was resolved: I still have to install in administrative mode (which is a desired prerequisite when installing to ALL users), but the install (of the ActiveX) is recognized both in administrative and non-administrative modes.

    Itzik

    • Marked as answer by Itzik-iTechCOM Saturday, December 29, 2012 5:50 PM
    Saturday, December 29, 2012 5:50 PM