I am having a problem accessing a file i have included via "File Bag" during a "Run Program" call.
The program i am trying to run is OSQL (MS SQL Server).
Msg 3201, Level 16, State 2, Server SERVER, Line 1
Cannot open backup device 'C:\\DOCUME~1\\MyUserAccount\\LOCALS~1\\Temp\\mia23.tmp\\data\\Microsoft .NET Framework 2.0\\mFileBagIDE.dll\\bag\\Database.bak'. Operating system error 5(Access is denied.).
Msg 3013, Level 16, State 1, Server SERVER, Line 1
RESTORE DATABASE is terminating abnormally.
When i go out to inspect that file and look at the security rights on it, (while the setup package is running)
"MyUserAccount" shows up in the list with the following grants:
[Full Control, Modify, Read & Execute, Read, Write]
"MyUserAccount" is in the administrators group on this machine.
I am using InstallAware Studio version 6.0.6 (SP03).
I've tried this with both "Run Program" and "Run Program As"
I looked at Windows Task Manager while setup was running and saw OSQL running as "MyUserAccount"
When i use "Run Program", it should be running as the currently logged in user account, right?
any idea what i'm doing wrong?
thanks,
drew
File Bag Permissions issue
It's a stupid behavior from SQL Server.. Even if you have an account named "test" on both machines, they have a different GUID, and you get an error. Best practice is to add the .bak file with "Everyone" permission (Read/write) etc and protect it with a Media password, so noone can restore it without a password. Execute the rest of the steps as you do now and it will work..
Panagiotis Kefalidis
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation
Software Design Team Lead
\"In order to succeed, your desire for success should be greater than your fear of failure\"
InstallAware Software Corporation
Who is online
Users browsing this forum: No registered users and 28 guests