MarcoCastro
asked on
Problem while installing MS SQL 2006
Hi,
I wish to install MS SQL 2005 without prompts to the user so I use this command line:
cd c:\mcsoft
start /wait setup.exe /qb SAPWD=xyz INSTALLSQLDIR="%ProgramFil es%\Micros ft SQL Server\" ADDLOCAL=ALL INSTANCENAME=SQLEXPRESS SECURITYMODE=SQL SQLCOLLATION=SQL_Latin1_Ge neral_CP1_ CI_AI SQLAUTOSTART=1 DISABLENETWORKPROTOCOLS=0
The problem happens when installing SQL Server Database Services. Is showed this error line: Error reading from file: c:\McSoft\Program Files\Microsoft SQL Server\90\Shared\Microsoft .Sql.Sac.P ublic.dll. The problem is not the file itself, the problem is the path. I don't know why the installer inclues McSoft in the path. I have already tried a lot of combination with no success.
Any clue is wellcome.
Thanks,
Marco Castro
I wish to install MS SQL 2005 without prompts to the user so I use this command line:
cd c:\mcsoft
start /wait setup.exe /qb SAPWD=xyz INSTALLSQLDIR="%ProgramFil
The problem happens when installing SQL Server Database Services. Is showed this error line: Error reading from file: c:\McSoft\Program Files\Microsoft SQL Server\90\Shared\Microsoft
Any clue is wellcome.
Thanks,
Marco Castro
Try to use INSTALLSQLDIR="%SYSTEMDRIV E%\Program Files\Micr osft SQL Server\"
to see if your %programfiles% variable is the culprit you can open a command prompt and type SET
Look for the line in the output that says: ProgramFiles=
And see if it says C:\mcsoft\Program Files
Look for the line in the output that says: ProgramFiles=
And see if it says C:\mcsoft\Program Files
ASKER
%ProgramFiles% is equal to c:\Program Files. McSoft is the folder where setup is saved at.
If I set INSTALLSQLDIR=C:\Program Files\... the setup changes the path to C:\McSoft\Program Files\... anyway.
If I set INSTALLSQLDIR to default, i.e. don't use this parameter, setup still with the path c:\McSoft\Program Files\...
Nothing works!
If I set INSTALLSQLDIR=C:\Program Files\... the setup changes the path to C:\McSoft\Program Files\... anyway.
If I set INSTALLSQLDIR to default, i.e. don't use this parameter, setup still with the path c:\McSoft\Program Files\...
Nothing works!
To specify Setup parameters by loading them from an .ini file, use the /settings filename.ini argument to specify the .ini file. The template.ini file on the SQL Server 2005 installation media provides detailed instructions for creating an .ini file. Note in particular that the first noncommented line in the .ini file must contain the string [Options]
For example
[Options]
USERNAME=MyName
COMPANYNAME=MyCompany
PIDKEY=ABCDE12345FGHIJ6789 0KLMNO
INSTALLSQLDIR="C:\Program Files\Microsoft SQL Server\"
INSTALLOLAPDATADIR="C:\Pro gram Files\Microsoft SQL Server\MSSQL\OLAP\Data"
ADDLOCAL=SQL_Engine,Analys is_Server, RS_Server. ..
INSTANCENAME=MyInstance
more info about installation here in the end:
http://technet.microsoft.com/en-us/library/ms144259%28SQL.90%29.aspx
For example
[Options]
USERNAME=MyName
COMPANYNAME=MyCompany
PIDKEY=ABCDE12345FGHIJ6789
INSTALLSQLDIR="C:\Program Files\Microsoft SQL Server\"
INSTALLOLAPDATADIR="C:\Pro
ADDLOCAL=SQL_Engine,Analys
INSTANCENAME=MyInstance
more info about installation here in the end:
http://technet.microsoft.com/en-us/library/ms144259%28SQL.90%29.aspx
Change your command line to:
start /wait c:/mcsoft/setup.exe /qb SAPWD=xyz INSTALLSQLDIR="%ProgramFil es%\Micros ft SQL Server\" ADDLOCAL=ALL INSTANCENAME=SQLEXPRESS SECURITYMODE=SQL SQLCOLLATION=SQL_Latin1_Ge neral_CP1_ CI_AI SQLAUTOSTART=1 DISABLENETWORKPROTOCOLS=0
and run it from the c:> prompt. Not from c:\mcsoft\>
start /wait c:/mcsoft/setup.exe /qb SAPWD=xyz INSTALLSQLDIR="%ProgramFil
and run it from the c:> prompt. Not from c:\mcsoft\>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
INSTALLSQLDIR="%ProgramFil
to
INSTALLSQLDIR="C:\Program Files\...