What is UAC


  1. Posts : 5
    Windows 7(64 Bit)
       #1

    What is UAC


    Hi,

    We developed one Windows Application using VS 2005, Framework 2.0 and C#. and we created the Setup using Installshield 2010.

    The installer is working fine (creating shortcuts in Desktop and adding in to start menu) with Windows XP.

    When we installed the application in Windows 7 machine its not creating the shortcuts in Desktop or adding it in to Start menu. After doing some investigation we found that we need to install the application after changing the UAC (User Access Control) or right click the application and run as administrator.

    Is there any way to install the application without changing the UAC or run as administrator

    Thanks & Regards,
    Nidheesh
      My Computer


  2. Posts : 2,528
    Windows 10 Pro x64
       #2

    No, adding files to protected locations on the system will require the install to be run as Administrator. Only administrative accounts (that have accepted the UAC prompt your installer will present) have the rights to write files to \Windows, \Program Files, the root of any volume, and locations in the registry not under the HKCU hive.

    As to a user not seeing a prompt, you can sign and manifest your installer, and you should be doing this anyway .

    http://blogs.msdn.com/b/shawnfa/arch...06/568563.aspx
      My Computer


  3. Posts : 5
    Windows 7(64 Bit)
    Thread Starter
       #3

    UAC and Security Related issues


    Hi,

    We developed a Windows application Using VS 2005 and C#. After that we created the setup using IstallShield 2010.

    We installed the installer successfully on a windows XP machine. The Basic operation which the application is

    1. Creating files in a folder
    2. Create a folder in Program files folder.
    3. Writing values in to windows Registry
    4. One Windows Service which will automatically start while installing the application
    5. Registering some DLL while installing
    6. Adding shortcuts in Desktop
    7. Creating shortcuts in start menu

    all the above operations are successfully with Windows XP, but when i installed the same package on a Windows 7 machine without changing the UAC, lot of the above operations are not working. The installation is successful if change the UAC or if i RUN the application as RUN AS ADMINISTRATOR.

    As per my clients policy the users may not have admin rights, and they dont want to use the RUN AS ADMIN.

    Can any one suggest me the importance of UAC and the ways to work without UAC.

    Regards,
    Nidheesh
      My Computer


  4. Posts : 5,642
    Windows 10 Pro (x64)
       #4

    Follow what Google Chrome does, it installs itself in the User directory and User Registry. No administrative power required.
      My Computer


 

Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:15.
Find Us