What is UAC

nidheesh

New member
Local time
8:52 AM
Messages
5
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

Computer Manufacturer/Model Number
Dell
OS
Windows 7(64 Bit)
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/archive/2006/04/06/568563.aspx
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom
OS
Windows 10 Pro x64
CPU
Intel Core i7 4790K @ 4.5GHz
Motherboard
Asus Maximus Hero VII
Memory
32GB DDR3
Graphics Card(s)
Nvidia GeForce GTX970
Sound Card
Realtek HD Audio
Screen Resolution
1920x1200
Hard Drives
1x Samsung 250GB SSD
4x WD RE 2TB (RAIDZ)
PSU
Corsair AX760i
Case
Fractal Design Define R4
Cooling
Noctua NH-D15
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

Computer Manufacturer/Model Number
Dell
OS
Windows 7(64 Bit)
Follow what Google Chrome does, it installs itself in the User directory and User Registry. No administrative power required.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Alienware Aurora ALX R4
OS
Windows 10 Pro (x64)
CPU
Intel Core i7-3930K (3.2GHz - 4.5GHz)
Motherboard
Alienware Aurora-R4 x79
Memory
4x Samsung 4GB PC3-12800 DDR3 (16GB 1600MHz)
Graphics Card(s)
Nvidia Geforce GTX 690
Sound Card
SteelSeries Siberia Elite
Monitor(s) Displays
Dell UltraSharp U3011
Screen Resolution
2560x1600
Hard Drives
Samsung 850 Pro 256 GB, Seagate 1TB Desktop Hybrid HDD, 2x Western Digital 4TB Green HDD
PSU
875W Some Dell PSU <.<
Case
Alienware Aurora ALX
Cooling
Custom Liquid Cooling (EK CPU & GPU blocks) dual EK 480RAD
Keyboard
Logitech G710+ Mechanical
Mouse
Logitech G700s
Internet Speed
Verizon Fios (50 mbps average)
Other Info
Server: Intel NUC D54250WYK: i5-4250U, 16GB, 256 GB mSATA, Windows Server 2012 R2
Back
Top