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?
Jump to Post
Usually 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 Post
You 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
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.