VS 2010 Giving Shortcut Admin Rights
Feb 8, 2011
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.
View 5 Replies
ADVERTISEMENT
Jan 24, 2009
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,
View 7 Replies
Nov 3, 2010
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.
View 2 Replies
Sep 24, 2010
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?
View 1 Replies
Jan 17, 2010
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?
View 1 Replies
Apr 16, 2009
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
Feb 16, 2011
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]...
View 6 Replies
Feb 20, 2012
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?
View 1 Replies
May 1, 2010
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.
View 4 Replies
May 8, 2009
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
View 2 Replies
Oct 10, 2010
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?
View 8 Replies
Sep 23, 2010
W7 isn't letting me delete a dll due to access rights (see FAILS HERE). You see, I need to talk to 2 pieces of hardware (both with same dll name). For XP I have been copying the dll at startup (based on my hw type) without issues.
Public Sub SetCorrectHardwareDLL()
Dim dll As String = Application.StartupPath & "vxlapi.dll"
Dim vec As String = Application.StartupPath & "vxlapi.vector.dll"
[Code].....
View 2 Replies
Jun 9, 2009
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].....
View 7 Replies
Mar 11, 2010
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.
View 9 Replies
May 23, 2012
Error: The database has been placed in a state by user 'UserName' on machine 'ComputerName' that prevents it from being opened or locked.
View 5 Replies
Feb 5, 2011
i want to excute this command in a guest account
Shell("net user new2 /ADD")
This needs administrator privelages
View 2 Replies
May 12, 2012
I am wondering if it is possible to run an application from a domain account that has restrictions on running .exe files by coding in the local administrator details (username / password).
View 3 Replies
Feb 18, 2011
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnUpdate.Click
Me.Personal1TableAdapter1.Update(Me.HRDataSet4)
Dim myConnection As OleDbConnection
Dim myCommand As OleDbCommand
[Code] .....
View 3 Replies
Jul 20, 2011
i can make a button appear in the DataGridView, but i want to be able to load a form when i click on the button, how do i do that? I cant double click on the button to load the code because it will only appear when i run the application
The following code is to display the button
objButtonColumn = New DataGridViewButtonColumn
objButtonColumn.HeaderText = "Edit"
objButtonColumn.Name = "EditColumn"
[Code].....
View 4 Replies
Apr 10, 2011
when the user search for the username and find it in the database it will be seen in the datagrid.. but my problem is when the reader does not found any data with the same username it will give a message that user is not find,,i use the command.executenonQuery and also the command.ExecuteScalar in my if statement.[code]
View 3 Replies
Aug 29, 2010
With no answers from Google and not finding the answers by searching, just curious as you were to go about simply giving a ListBox a horizontal scroller once it passes its visible border the same as the vertical does?
View 3 Replies
Oct 15, 2011
How to create a shortcut of application (C:MyApp.exe) to desktop with icon?
EDIT: I've find the solution..
[Code]...
View 2 Replies
Jan 23, 2011
Does Anyone know a Way of reading from a Shortcut File (.lnk) ? or Does anyone know the Format of shortcuts (.lnk). I have Tried the windows script host object model COM Component But I can't Get It To Work.
View 9 Replies
Jun 5, 2010
I'm trying to extract the icon from a shortcut (lnk file), but I end up with the shortcut symbol in the lower-left hand corner of the image. How can I extract a shortcut's icon without this symbol?
Here's the code I'm using:
Dim ico As System.Drawing.Icon = System.Drawing.Icon.ExtractAssociatedIcon("C:shortcut.lnk")
View 3 Replies
Mar 11, 2011
I want to press for ex: "F12" and will show for ex: "msgbox".I know how to that with keydown but I can't use this outsite my application..
View 6 Replies
Jul 23, 2011
I've encountered another minor problem with using vs 2010...how do you assign shortcut keys? I've read you just click in the shortcut keys option then press the buttons you want to be your shortcuts- this however just acts like I'm pressing the shortcut keys for vs. for instance alt x, which I want to be exit, takes me to debug. Typing alt + x in manually gives me an error saying what I've put in is invalid.
View 8 Replies
Mar 24, 2011
I'm writing a vb.net (2010) app to extract a zip file in XP to a specific folder. That part works fine. Now I want to create a desktop shortcut to an application (if it exists I need to delete it first)
This should be an easy to find answer but I believe my eye is beginning to twitch!2 error messages: First Error: "Type expected" On Dim shortCut As IWshRuntimeLibrary.IWshShortcut = DirectCast(WshShell.CreateShortcut(FileName, IWshRuntimeLibrary.IWshShortcut), == this is a simple syntax error but I thought the type was the IWshShortcut ==
Second Error: On "With Shortcut" it fusses: " cannot refer to an instance member of a class from within a shared method or shared member initalizer without an explicit instance of the class."
[Code]...
View 3 Replies
Aug 30, 2010
I'm having problems to create a shortcut key to show another form.
For example, If i will click F1 another form will pop up. Kindly check the codes that I used.
Private Sub Form6_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
txtDate.Text = CDate(Date.Today)
End Sub
[Code].....
View 1 Replies
May 22, 2011
I use the following code to get the shortcut files in a folder and to list them in a Listview control. But is there a way to extract the path of the EXE to which this shortcut is referring to ?
vb.net
Dim di As New IO.DirectoryInfo("C: est")
Dim aryFi As IO.FileInfo() = di.GetFiles()
Dim fi As IO.FileInfo
[Code]...
View 2 Replies
Feb 16, 2011
I know there is a way to remove it for the system, but I don't want to remove the little arrow from the desktop icons, I only want to remove it in my application window I am making. Adding the registry hack removes it from my app as well as the desktop, yet I want to keep those on the desktop. Is there something I can add in my app that will allow me to remove them in my application only? I am showing the icons in a lsitview
View 4 Replies