c# - Visual Studio setup project - running as system account -
I joined VS 2008 has created a new Visual Studio Setup Project.
I use it to install SQLExpress. SQLExpress installations work fine when I'm manually out of the installer.
But when I install, I get an error with the permissions in SQL Express. I came to know that this is because the SQLExpress process is running as a system account while running from my setup project.
Install through the process of trying to start the process through custom actions and through the C # code. Start but they run the SQL Express process as both system accounts.
What can I do to run this process because the user is currently logged on?
Note: I also tried to start calc.exe and it also runs as a system process. Why is it not going to run in the context of my user because my installer is running?
If you set up SQL Server Express as a condition for your application If you want, you should add it as a condition for setup and deployment project.
This can be done by right-clicking on your setup project Properties -> Prerequisites and then Examining SQL Server Express 2008
Note that SQL Server Express is available in the list of essential things that it should be installed on your development machine.
Update:
If you want to specify an example name, there is no way around manually defining the bootstrap package definition.
The bootstrapper package for Visual Studio 2008 is kept by default at the following location:
C: \ program files \ Microsoft SDK \ Windows \ V6.0A \ Bootstrapper \ package
Then you will find a folder named SqlExpress in that folder, open the file \ package.xml and modify the command line argument for the installer. There are three sections based on Target OS (Win 2000, XP and 2003 +):
& lt; Command PackageFile = "scllexpr32.exe" argument = "- q / norebootchk / qn reboot = realSpodo adblock = all instacenum = SQLEXPRESS SQLAUTOSTART = 1 ADDUSERASADMIN = 1" estimated installed bytes = "225000000" estimatedTabbets = "225000000" estimated installationSecond = " 420 "& gt; ... & lt; / Command & gt;
This change will affect all installers that are built on your system with this package. If you do not want to have your own separate bootstrap package by copying the SqlExpress folder and updating ProductCode in SqlExpress \ package.xml
Comments
Post a Comment