NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 21 22 23 24 25 … 93 Next »
Vista/Win7 and Security

 
  • 0 Vote(s) - 0 Average
Vista/Win7 and Security
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#1
2010-01-12, 06:04 AM
I have not upgraded to either Vista or Win7 yet. A few users have run into problems in these OS's related to security, and I'm hoping someone can shed some light on it for me.

It seems that if a user runs a utility program (i.e. MovieWizManager), that updates a database, it fails when launched from the normal logged on user when trying to perform update on database. But, if run as an administrator, it runs fine.

Do I need to somehow elevate priviledges or something under Vista/Win7 in order to get the normal user to work?

For example:
Quote:I have only tried this as standalone.
This one starts, both normal and as a administrator.
And the last message is Form1_Load() - Step 3.
But when run as admin, I also get the END when I close the app.

It is possible to edit the db as a administrator with this version. But as a "Normal user", I get the exception below. Looks like I have no right to edit the db.

************** Exception Text **************
System.Data.SQLite.SQLiteException: Attempt to write a read-only database
attempt to write a readonly database
at System.Data.SQLite.SQLite3.Reset(SQLiteStatement stmt)
at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
at System.Data.SQLite.SQLiteTransaction..ctor(SQLiteC onnection connection, Boolean deferredLock)
at System.Data.SQLite.SQLiteConnection.BeginTransacti on(Boolean deferredLock)
at System.Data.SQLite.SQLiteConnection.BeginTransacti on()
at WizPlugin.MovieWizCore.SaveMovieByCategoriesArray( ArrayList list)
at WizPlugin.MovieWizConfigForm.cmdSaveSort_Click(Obj ect sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventAr gs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#2
2010-01-12, 06:11 AM
Yes, they will need to "Run as administrator" manually or you can embed the requirement into the app so it always requests elevated priviledges:

http://community.bartdesmet.net/blogs/ba...t.exe.aspx
http://msdn.microsoft.com/en-us/library/bb756929.aspx

This happens because the db is in the Program Files folder (protected).
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#3
2010-01-12, 06:38 PM
Excellent, thanks for the info!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  need win7 user with hip and/or mce remote pBS 5 4,624 2010-02-08, 07:48 AM
Last Post: tm12
  UAC and Vista with GBPVR systemshark 2 1,916 2008-08-03, 07:20 AM
Last Post: systemshark
  Vista problem loading MovieWizManager.exe? JavaWiz 5 2,649 2008-06-05, 06:23 AM
Last Post: whurlston

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode