Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
2.67/5 (3 votes)
See more:
Hi I have one window project.
I have made Installer of that project (Exe program).
This program is has download functionality.

This Program is installed perfectly but Download functionality not working.
When I change Property of EXE as Run as administrator then download is working.

So I want to run that EXE as only Run As administrator with out changing it manually.
Posted
Comments
Sunasara Imdadhusen 18-Apr-11 2:27am    
Good question!

 
Share this answer
 
Comments
Sunasara Imdadhusen 18-Apr-11 2:29am    
Good call!! my vote of 5
Ank_ush 18-Apr-11 5:56am    
Plz post the code so that it can be rectified.
Prerak Patel 18-Apr-11 7:13am    
Links already have what OP needs to know. He should have code it on his own to learn from it.
click Project, Add new Item, select Application Manifest File. Once thats added open the manifest file and read it will explain
 
Share this answer
 
Comments
Kim Togo 18-Apr-11 13:33pm    
My 5. Best solution. Nice and simple
Do as "Solution 2". Just remember that, not all users has "Administrator Rights" over there computer. If the computer is in a domain and the user only has "User rights", he or she will not be able run the program.

Best option is to:

1. Have you program running with normal rights.
2. If the user has to update something, the program it self or write to "Program Files" folder. Then have a separate program that requires elevated rights.

Other option is to have a folder where "Everyone" can read and write, with out the need for elevated rights.
 
Share this answer
 
Comments
charles henington 18-Apr-11 18:17pm    
thanks Kim :) and yes you are very correct about the Administrator Rights. I see this so many times from people who want to use from their office where they have limited rights, Plus you can run into problems latter down the line when you get into setting with registry
charles henington 18-Apr-11 18:17pm    
my 5

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900