cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
UNeverNo
Level 6

SQL Server Express 2005 installation issue (Vista)

During a Installscript project I install the MSSQL Server 2005 Express with these params:
/qb ADDLOCAL=All INSTANCENAME=AppName DISABLENETWORKPROTOCOLS=0 ADDUSERASADMIN=0 SQLAUTOSTART=1 SECURITYMODE=SQL SAPWD=-.-

This works fine with 2000 and XP, but Vista fails with a message, that the sql server service could not be started. Vista says I should check if I have enough rights to start system services.
If I run the installation exe of sql server from commandline with the same params it installs just fine.

I guess I need to set my project to run only with admin rights, but how do I achieve this?
Labels (1)
0 Kudos
(2) Replies
UNeverNo
Level 6

Is it impossible?
0 Kudos
MarcusM
Level 2

In the releases section you might use the flag (I'm translating from the German version so this might not be 100% correct but look for something similar) "required execution level".
Alternatively you could check for admin rights with something like
if !Is(USER_ADMINISTRATOR,"") then
MessageBox(@MSG_NO_ADMINISTRATOR, SEVERE);

abort;

endif;
0 Kudos