![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
To the database-dir a backup is successfully copied and the onstaller tries to do a restore, with the database files located in this database-dir. Usually this is no problem, but on XP (maybe Vista and Win7 too) machines, the restore fails. Why? |
|
SQL2005 Express is used. The installer is INNO, the restore is issued using DMO. |
|
The same succeeds if the app is installed in the root folder, so there must be a problem with rights for creating the database files in the users directory? |
#3
| |||
| |||
|
|
What is the error message? IŽll check that in detail. |
|
SQL2005 Express is used. The installer is INNO, the restore is issued using DMO. Which is the service account for SQL Server? I do a fresh install of 2005 with admin rights, changing nothing. The code I |
|
The same succeeds if the app is installed in the root folder, so there must be a problem with rights for creating the database files in the users directory? User's directory? I understood that you put the database in to ProgramFilesDir? Yes. |
#4
| |||
| |||
|
|
What is the error message? IŽll check that in detail. |
|
SQL2005 Express is used. The installer is INNO, the restore is issued using DMO. Which is the service account for SQL Server? I do a fresh install of 2005 with admin rights, changing nothing. |
|
Yes. Here it fails: \<ProgramFilesDir>\<appdir>\DataBase Here it works: \<appdir>\DataBase |
#5
| |||
| |||
|
|
Which is the service account for SQL Server? I do a fresh install of 2005 with admin rights, changing nothing. Does this mean that you use LocalSystem? (I'm sorry, but it may help if you answers the questions being asked.) |
|
What do you mean "with admin rights". That you are logged into Windows with administrator rights or something else? The user installtin has admin rights and the user installing is added as |
|
Here it fails: \<ProgramFilesDir>\<appdir>\DataBase Here it works: \<appdir>\DataBase I would have been less surprised if this had been issue on Vista, since Vista do really want you to put application data in Program Files as I understand, if I want to copy files into Program Files, I get a UAC alert. |
#6
| |||
| |||
|
|
I do not know what the srevice account is - what I know is, that I used the default values. |
|
Copying files was not the issue. Restoring the database was. LocalSystem must not be forbidden to write to \<ProgramFilesDir>\<appdir>\DataBase, must it? |
![]() |
| Thread Tools | |
| Display Modes | |
| |