I put my vb6 exe program on flash drives of my students. Some of them say that it does not open. (Others have no problem and can left click). I told them to right click and "Run As Administrator". My program then opens. They are using school computers in a computer lab with windows 7. What is interesting is that #1 They are not administrators, #2 They do not have to enter any password. My question is: if that is the case, then why must they right click and Run As Aministrator? More important to me , is how can I remove they requirement that they Right click? I've read posts that it can be accomplished with a Manifest program added to my vb6 project as a custom resource. However, I can not follow any of the details of the posts. So I ask, how can I remove the 'Run as Admin' requirement?
themathprof
0
Newbie Poster
Recommended Answers
Jump to PostUsually the Run As Administrator comes up when your program is trying to write to a protected location, for example if you are writing to a file in the folder where the application is installed.
Jump to PostYou may also be able to set this inside a windows 7 system by right clicking on the file and going to properties. Click the compatibility tab and at the bottom check the box for "Run this program as Administrator." This way it will always run as an administrator.
All 6 Replies
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
rch1231
169
Posting Shark
Reverend Jim
4,678
Hi, I'm Jim, one of DaniWeb's moderators.
Moderator
Featured Poster
Wil 0' Wisp
2
Newbie Poster
imti321
35
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.