473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to bypass UAC restriction of Windows 7 from vb.net code?

9
Hi, I have create a vb.net application which have some function for read and write Registry Key and as back end it has MS Access database. I create the installer for this application using vb.net deployment. I also change the .manifest file for UAC setting. After deployment its all works (Installation, Application Run) fine on windows XP. But in windows 7 its installed fine but every time I run the application it shows UAC message like "Do you want to allow the program from an unknown publisher to make changes to this computer?".

My question is how to avoid this message using code and why its showing?
Dec 15 '12 #1

✓ answered by zmbd

You need to submit the program thru Microsoft Software Development to have them certify that the application is safe to install. They might then send you a sealed version of the software. However, keep in mind that this WILL cost you a lot of money as MS doesn't just give away their licenses to just anyone. You will have to contact MS directly and start out by purchasing one of the developer licenses so that they can start a background check and the like.... have fun... I hear that this is a real pain...

6 6533
Rabbit
12,516 Expert Mod 8TB
It's showing because you are accessing a part of the operating system that can be used for malicious purposes.

And because of that, we would not answer any questions that can be used for viruses and the like.
Dec 15 '12 #2
PsychoCoder
465 Expert Mod 256MB
Simply put you cannot, the individual user would have to turn the UAC off, you cannot bypass it from within your code.
Dec 15 '12 #3
mskctg
9
Hi Rabbit,
I am not creating a virus program and I don't like to do that type of work. Its for my application which I have been developing for last 4 months. This is a Cash Sales Management System for small business of our country. I used to read and write registry module to create a trial version of my application. Its all working fine on windows XP. just facing problem with windows 7.
Dec 15 '12 #4
Rabbit
12,516 Expert Mod 8TB
It doesn't matter if you're not using it for a virus. The fact that it can be used for a virus is reason enough not to allow such methods to be posted on the forums.

If someone were to post such code, we would remove it.
Dec 16 '12 #5
zmbd
5,501 Expert Mod 4TB
You need to submit the program thru Microsoft Software Development to have them certify that the application is safe to install. They might then send you a sealed version of the software. However, keep in mind that this WILL cost you a lot of money as MS doesn't just give away their licenses to just anyone. You will have to contact MS directly and start out by purchasing one of the developer licenses so that they can start a background check and the like.... have fun... I hear that this is a real pain...
Dec 16 '12 #6
bb80
3
In my experience, you can't, it would be plainly breaking the UAC security model.
You can either invoke UAC API to require elevation, require elevation in the manifest, buy a certificate so the warning is less scary for the end user, or otherwise warn the user to accept the elevation (or to turn off UAC while running the program), but I think no ways were purposedly left to hide system's privilege elevation requests.
Dec 19 '12 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Dalan | last post by:
Perhaps someone knows how to structure the correct VBA code to use for allowing or disallowing use of the bypass key, because the code that I used as suggested by MSAccess 97 has failed to work. A...
2
by: Frank | last post by:
Hi, I wasn't sure which group to use but I'm developing a web application that connects to a sql server. This application is for External Clients but the information is sensitive. I thougth that...
1
by: OlaPihl | last post by:
Hi, How can I by code enable and disable "Bypass proxy server for local adresses" in Internet Explorer / Tools / Internet Options / Connections / LAN Settings. I have made a program (VB.Net)...
2
by: ezageza | last post by:
Hi, does anyone know whats going on or how to fix my problem with windows media player 10. When i'm finished using it and am shutting it down it brings up a message saying something like 'windows...
1
by: stevecheng | last post by:
Hi, I recently installed CRM 3.0 and need to do some further customizations programatically. I want to write a page that would accept data via a query string and submit the data into the CRM...
1
by: pangsans | last post by:
hello does anybody know in what lang windows has been wriiten?
2
by: Jakes | last post by:
Hey guys. Hope this is the right forum for this kind of question... I'm doing some vacation work and I have been given c++ code that has been written in Microsoft visual studio and I need to evaluate...
2
by: tvnaidu | last post by:
Lot of Windows code (dll) need to port to Linux, can somebody gives some clues, what to takecare mainly. not sure whether similar cals available in Linux: 1) LoadLibrary.
0
by: SCastro | last post by:
I can't remember the command line/code which has a "-1" to cause any alert/information window to not pop-up when you run a report.
0
by: sanjunath | last post by:
hi i dunno how to write code to send a SMS to a person by fetching his details from the database can any one please help me out to code this?????????
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.