SCCM, SQL Anywhere 11, and a new service
Working on a package to be installed through the SCCM Software Catalog. The package is a collection of several pieces of software plus some registry scripts for configuration, including SQL Anywhere 11. I'm actually getting everything to install and configure correctly, except for my final hurdle. When you install all of this software manually, one of the steps is to
" Open Sybase Central
(All Programs > SQL Anywhere 11 >
Sybase Central) Open SQL Anywhere 11 and on the Services tap Right Click and
create a new service with the name Roadnotes.
Click next until you get to the parameters screen. On the parameters screen copy and paste the
text below and hit finish."
I've got the code figured out to do this silently through a command prompt, and even through a batch file, but it fails in SCCM. code is
I've got the code figured out to do this silently through a command prompt, and even through a batch file, but it fails in SCCM. code is
____
cmd.exe /c ""C:\Program Files\SQL Anywhere 11\Bin32\dbsvc.exe" -as -y -s Automatic -w Roadnotes "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" <parameters>"
_______
The code fails in SCCM even if i run it as a batch file all by itself (with the software already installed.) The error points to the file not being able to be found by SCCM.
I tried manually creating it and then exporting the registry entries to create a script but when i run the script, it adds the files, but then doesn't show up in SQL Anywhere Sybase.
very perplexed. any ideas?
I tried manually creating it and then exporting the registry entries to create a script but when i run the script, it adds the files, but then doesn't show up in SQL Anywhere Sybase.
very perplexed. any ideas?
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
evan83
10 years ago
Hi Martyrtek,
What are you trying to do? Did you try the command by running on the machine with those files and see if this code works?
You may use a package with empty program and create as a batch file and the command will run. I dont see any copy command, action command in your script above. Anything leave out?
cmd.exe /c ""C:\Program Files\SQL Anywhere 11\Bin32\dbsvc.exe" -as -y -s Automatic -w Roadnotes "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" <parameters>" - See more at: http://www.itninja.com/question/sccm-sql-anywhere-11-and-a-new-service#sthash.Rz7VF73u.dpuf
cmd.exe /c ""C:\Program Files\SQL Anywhere 11\Bin32\dbsvc.exe" -as -y -s Automatic -w Roadnotes "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" <parameters>"What are you trying to do? Did you try the command by running on the machine with those files and see if this code works?
You may use a package with empty program and create as a batch file and the command will run. I dont see any copy command, action command in your script above. Anything leave out?
cmd.exe /c ""C:\Program Files\SQL Anywhere 11\Bin32\dbsvc.exe" -as -y -s Automatic -w Roadnotes "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" <parameters>" - See more at: http://www.itninja.com/question/sccm-sql-anywhere-11-and-a-new-service#sthash.Rz7VF73u.dpuf
cmd.exe /c ""C:\Program Files\SQL Anywhere 11\Bin32\dbsvc.exe" -as -y -s Automatic -w Roadnotes "C:\Program Files\SQL Anywhere 11\Bin32\dbsrv11.exe" <parameters>" - See more at: http://www.itninja.com/question/sccm-sql-anywhere-11-and-a-new-service#sthash.Rz7VF73u.dpuf