Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    vbnet


Advertisements:










C# - Automatically Update My .NET Application In Vista Without Admin Rights?


I am trying to build a self-updating .NET application that will run in an environment with limited user accounts. No admin rights here. The application must run on Vista and XP, and probably Win 7 when it comes out.An X-copy deployment would be fine. I would prefer NOT to use click-once.So far I have tried a system where the application checks a manifest and downloads updated binaries, which worked great in development, but not so much when the app was installed.Vista refuses to to let me copy files to Program Files. After that, I tried downloading an updated .msi, which works except that the MSI has a UAC prompt -- no go if the user does not have an account with local admin privileges.

running the program in AppData and using the x-copy method might work, but I have not seen anyone say that they have tried it and it did work. Will that work for an account without admin rights? Can anyone vouch for this method before I start writing more code?


View 1 Replies (Posted: Apr 16 09 at 22:09)

Sponsored Links:

Related Forum Messages For vbnet category:
Why Does Accessing Files In AppData (on Vista) Require Admin Rights
My application (vb.net) sometimes throws an "access denied" exception when attempting to delete files in the AppData folder and I'm not sure why.I confirm that the file exists before attempting to delete it and have not done anything to make it readonly, etcThe interesting thing is that it seems to go okay when I'm logged in with Admin rights

Posted: May 8 09 at 14:41

View 2 Replies!   View Related
Application Needs Admin Rights?
I installed the program my self and tested it on Windows Vista, but it gives a lot of errors because it creates files into the application folder and it doesn't have admin rights. If I right click and select "Run As Admin" there are no problems of course, but It's not for private use...So I'm searching for a way to automaticly display the "Run As Admin" Dialog when I open my application,

Posted:  24 January 2009

View 7 Replies!   View Related
Admin On Vista Doesn't Show As Admin Class?
on XP Pro, IsUserRole(eUserType.Administrator) returns true, if the class is administrator, and false if it's limited...

On Vista, it returns true, if it's the first administrator account, and false for anything else... I created a second administrator account on Vista, and it shows in code as "Standard" (or limited) user, the same as if I made a "Managed Account" on Vista...

My
#Region " [IsUserRole] "
Public Enum eUserType
Administrator = 0

[Code].....

Posted: Jun 9th, 2009

View 7 Replies!   View Related
How To Compile App With Admin Rights
I have made my app check for an update then if there is an update download the updated version and then close itself. But before it closes, it saves a text file with the startup location of itself. Then when the updated app opens it deletes the old app by getting the old app location from the text file.

but it will only delete the old app if it has admin rights. how can you start (compile) a app with admin right in vb 2008. how to compile app with admin rights.

Posted: Nov 3rd, 2010

View 2 Replies!   View Related
Environmental Variable In The Script For PC's That Do Not Have Admin Rights?
Ii have several PC that do not have admin rights. I need to install some autocad lic. on each pc. What
Environmental variable in the script to PC's that do not have admin rights?

Posted: September 24, 2010

View 1 Replies!   View Related
Running A .NET 2.0 Program Without Framework Or Admin Rights?
I just need to run a simple program that requires .NET 2.0 on a computer on which I only have restricted User rights..I have permission from my supervisor to do this but he would rather not call in the IT guy to install it.So is there any way I can run this program (i dont need to run it multiple times) on this computer?

Posted: Jan 17th, 2010

View 1 Replies!   View Related
VS 2010 Giving Shortcut Admin Rights
I've written a service in VB and a config app for the service which has a service start/stop button. In order to start and stop the service you need admin rights, under Windows 7 you right click on the exe and "run as administrator". This works ok, I've used the Visual Studio Installer to also create a desktop shortcut, but if you right click on the shortcut there is no way to run as administrator.

The question therefore is, how to run the shortcut as an admin user? Edit, if you hold shift down whilst right clicking you get the "Run as administrator" option, but you still can't change the advanced property to tick the box as its grayed out.

Posted: Feb 8th, 2011

View 5 Replies!   View Related
Forms :: Running A Program From A Text Box With Admin Rights?
i have in my form a text box and 3 buttons one is for browsing the other is to execute what i browse and the other is to exit the program when there was a program set to run from my hard drive it was running smoothly with admin rights now that i have setup in order to run ffrom the text box value it will just run it will show the command line for a sec or two and it wont run the program

[Code]...

Posted: 02-16-2011

View 6 Replies!   View Related
Read Access To Physical Drive Without Admin Rights?
I am trying to read some data from the MBR using CreateFile, but I cannot get it to work without admin rights. The code I am using is like this:
hDevice = CreateFile("\.PhysicalDrive0", GENERIC_READ, FILE_SHARE_READ Or FILE_SHARE_WRITE, 0, OPEN_EXISTING, 0, 0)
Is it possible to read data from the MBR without admin rights?

Posted: Feb 20 at 0:39

View 1 Replies!   View Related
Remotely Monitor Performance Of Win2k8 Without Admin Rights?
Is there a way I can use VS 2008 to monitor a Windows Server 2008 (R2) that I do not have admin rights to? We run a SQL Server 2008 installation on it, and I am concerned there may be issues with the OS but no one from our ISIT Support group seems able to find any problems. I've asked for remote desktop connectivity but keep being denied, and so I'm trying to find a work around. I'm OK with VS 2005 and have not used VS 2008, but figured 2008 would have the most current functionality. Basically I would like to build a Windows Performance Monitor to connect to the server from my desktop.

Posted: May 1st, 2010

View 4 Replies!   View Related
Update Windows Vista Via Application?
I was wondering if there is a way to update Windows Vista via a Vb .Net application.

I wanted to use Vista's WUSA.EXE, but it seems that it is only able to do specific updates in a specific location, not all updates.

Info on WUSA.EXE: [URL]

Posted: 14 April 2009

View 2 Replies!   View Related
Admin Permissions In Vista?
With Vista we are having a permission denied error when an application tries to change properties of a file in Program Data folder... before replacing with a newer version of the file.Changing of security permissions for a standard user is not an option. Is there a way we can grant the premissions for an application developed in VB .net to give permission only to change properties of this file.

Posted: May 18, 2009

View 4 Replies!   View Related
[2008] Elevated (admin) Permissions In Vista
I've encountered several scenarios when my application wants to delete an item, but is prevented from doing so by the operating system. So I've been wondering, is it possible to ask for elevated status after the application has launched? E.g. the application needs to delete a certain file, so it asks for confirmation and then deletes the file...

Posted: Mar 8th, 2009

View 1 Replies!   View Related
Running As Admin - Vista Users Always Have To Set It As "Run As Administrator" ?
Every time I make a application and distribute it, Vista users always have to set it as "Run as Administrator" for it to work... Is there any way to make it to where they don't need to do this?

Posted: January 24, 2010

View 3 Replies!   View Related
Why Does Application Require UAC Rights
Never before did i realize the neccessity to scrap the User Account Control, other than for reasons it was simply annoying, until i became a developer. I have an application that does nothing more than remove and create files within its own directory. Are you telling me every application that creates local files require admin rights? Surely something is wrong here. Can this not be circumvented? How do other developers overcome this issue?

[Code]...

Posted: May 20, 2011

View 1 Replies!   View Related
VS 2008 UAC Load Application With Windows With Adminstrator Rights
I'm trying to make my application compatibile with Vista/7 UAC so I created a manifest file that gives me adminstrator rights which works great but the only problem that when my application tries to run with windows (via registry key I added) the application just won't run, and ideas how to run my application with admin rights when it loads up with windows?

Posted: Oct 30th, 2009

View 7 Replies!   View Related
Windows - Testing Application For Administrative Running Rights .NET?
I want a sure-shot method to test if the application was run via the UAC box and has full administrative rights. Earlier, I thought of making a folder in C:Windows for testing but running it on other computers proved to be a failure!

The UAC box provides all administrative rights to the computer to do anything(including making folders and creating files in places which needs there rights) and also makes sure that any child program so called or created also does have the same rights as the parent.Is there a sure-shot way to test if my application has been provided all the administrative rights that I can maximum get by the user while running the application or not? If yes, I would be glad to have to piece of code-work!

Posted: May 23 11 at 15:05

View 1 Replies!   View Related
VS 2010 Way To Make Like 'admin' Form Where New Account Applies Will Pop-up When 'admin' Log In And Then Either Accept / Reject New Users?
i have a script with a login form that creates a folder per user with username.txt, password.txt, firstname.txt, and lastname.txt. - auto creates when creating new user.after i log in and change form i want an label showing the first and last name of the person logged in,how am i supposed to do that? is there any way to make like an "admin" form where new account applies will pop-up when "admin" log in and then either accept or reject new users?

Posted: Oct 10th, 2010

View 8 Replies!   View Related
Run Application As Admin?
I have the need to run my application as Administrator, preferably without prompting the user each time. I'd be ok with a one-time deal, but each time would get old

Application is writing some text files to a user-defined directory (which in some cases is a "protected" directory, like C:Directory). It's throwing all kinds of "Access Denied" errors at runtime.

Is there a registry entry I can insert at installation to escalate the application when ran? or escalate the UAC level in a config file somewhere?

Posted: Nov 22nd, 2010

View 5 Replies!   View Related
How To Make Application Where Can Allow Admin To Add Resources
How do i make an application where i can allow the admin to add resources and choose when they are used (like choose when music is played or when pictures are used)?

Posted: Dec 28th, 2011

View 1 Replies!   View Related
Unable To Use 2 Different Login Authorities Which Are Admin And Non-Admin
I'm designing a system, whereby am unable to use 2 different login authorities, which are Admin and Non-Admin. I am using VB.NET and Ms. Access and need help for the codes.I want something like, if i click on admin/non admin (with different passwords) a dialog box pops onto the screen and asks for the password. If the password is correct it should take me to the form i want. Something of this sort please.

Posted: 2010

View 9 Replies!   View Related
Application Exception When I Run It Whitout Admin Account?
Im developing an application with Visual Basic 2005 and Oracle Database.It runs perfectly in my† developing computer.When I am going to install it in the customer servers, I do it:

1. I install Oracle Database in a dedicated server with Windows 2003.

2. I install the Oracle Client, my application, Oracle Develop Tools for Windows and .NET Framework 2.0 in other dedicated server with Windows 2000.When in this second server, I login in Windows 2000 with "ADMIN" account, the aplication runs 100% perfectly, and oracle database too.

But the problem is : When an user try to connect to the second server without be "ADMIN", (So he's a simple user) the application runs but when it try to connect oracle an exception occurs (in the end of this message I put it).All folders of my application and oracle database have all permisions to all. What can be happen? This is the exception (sorry because its in spanish)[code].....

Posted: May 18, 2009

View 2 Replies!   View Related
Make Admin Confirm What A User Enters In Application
Just a pretty question that seem to me a bit difficult to do it. Well, I have a form called customers. Login form and mainform. So my clients want to have an option that explains this: If a user enters information in the customer form, then that information has to be confirmed by admins panel.

[Code]...

Posted: May 02, 2012

View 3 Replies!   View Related
Visual Basic Application Get Local Admin Access?
I must give my application local admin privacy so my† application can acces and chnge† (in this case uninstall)† ,independently user's access level , I've local admin's pass .

Briefly : I must run as local admin .

Posted: July 09, 2010

View 1 Replies!   View Related
VS 2008 Compile On Vista For Vista Work Fine But On Vista For Xp NO
i compile my form with the below code when i run it on vista work fine without any problem but when i try to run in on XP cant run... that happened with any XP machine.[code]when i run my exe to other Vista machines work fine... but on xp NO.

Posted: May 30th, 2009

View 1 Replies!   View Related
VS 2008 Unmanaged Dll Calling After Update Vista Sp2?
I am trying to use an unmanaged dll in my VBE2008 Project. My application works fine on my computers (3 Vista sp1 and 2 XP sp3 / all with .net framwork 3.5), but after the sp2 update for 2 of Vista machines, it throws often an AccessViolationException (on those machines with Vista sp2). The error message is:"Attempt to read or write protected memory. This is often an indication that other memory is corrupt."I have checked and found that the exception was thrown by the dll call-sub.

<DllImport("RefProp.dll", EntryPoint:="SETUPdll", SetLastError:=True, CharSet:=CharSet.Ansi, _
ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _

[code].....

Posted: Dec 1st, 2009

View 6 Replies!   View Related
Application.DoEvents() Function Halt And Crash Application In Windows Vista
i made an application for serial communication. for this application i need to set delay time. during this delay time i m doing some other task. So for those task i need to take back control from delay function, for this purpose i am unsing Doevents() function.Its work fine On other OS (XP, Windows7 32/64-bit). But Application.DoEvents() function halt and crash in windows vista.

Private Sub TimeDelay(ByVal DT As Integer)
Dim StartTick As Integer
StartTick = Environment.TickCount()

[Code].....

Posted: Jul 18 11 at 2:55

View 4 Replies!   View Related
Automatically Update The Url Bar In A Web Browser?
I'm making a web browser and want the url bar to update when you click a link, like it does in firefox or IE.

Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
url.Text = WebBrowser1.Url
End Sub

When I try to compile this I get the error

Value of type 'System.Uri' cannot be converted to 'String'.

Anyone know how I can convert this so that it works?

Posted:  14 August 2009

View 3 Replies!   View Related
Automatically Update UI When Data Changes By Other Program?
Is there any way to automatically update the data viewing on a datagridview when data is changed in the database by some other processes/Program?

Posted: 15 July 2011

View 4 Replies!   View Related
Automatically Update Entity Instance From Class MVC 3?
I've got a class that closely resembles one of my entities (I use the class for JSON de/serialization because the entity fails conversion to JSON, one of the known gotchyas of JSON + MVC).Once I deserilize a JSON string into my object, is there a way to automatically update the associated Entity model instance. The property names are the same.

'myDeserialized is the deserialized JSON object coming over the wire
Dim entityInstance As DLL.Person = db.getPersonById(myDeserialized.id)
myDeserialized.update(entityInstance)

[code].....

Posted: Nov 15 11 at 23:56

View 1 Replies!   View Related
DataGridViewComboBoxColumn Change To Automatically Update DataGridView?
I have a standard DataGridView. One of the columns is a DataGridViewComboBoxColumn. When I select one of the ComboBox items, I want to trap the change and add additional columns based on the item selected in the ComboBox. I've tried using CellValueChanged for the DataGridView column, and a bunch of other events, but none of them is fired when the DataGridViewComboBox value is changed. What event can I trap to make this happen? Right now as I said, I am using CellValueChanged, but of course the event doesn't fire until I click on another cell...

Posted: January 24th, 2010

View 1 Replies!   View Related
Get The Folder Name To Update With The Date And Be Created Automatically?
how do I automate creating a folder.I want the folder name to update with the date and be created automatically.

Posted: 09-28-2008

View 2 Replies!   View Related
Sql - Update Data That Has Its Primary Key Generated Automatically?
The primary key of the table is generated automatically using the Is Identity and I want to update based on the primary key. There is certainly something wrong with the following code, so I'd like someone to modify it for me.

Try
Dim qry As String
qry = "Update StudentDetails.Programmes set Programme=@Programme,Form=@Form,AcademicYear=@AcademicYear,Class=@Class where ID=ID"
cmd = New SqlCommand(qry, cn)

[code]....

Posted: Dec 20 11 at 21:49

View 2 Replies!   View Related
Update Database Field Value Automatically When Another Value Is Added Elsewhere?
I have two tables: HolidayRequests & HolidayEntitlementWithin the Holiday Requests I have 1 field:DaysWhen a staff member adds a holiday request it is stored as a number in the holiday requests table in days field (there are multiple requests with different days)

Posted: Mar 10 at 22:20

View 2 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved