cd C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727
InstallUtil.exe E:\project\tfs\SSDT\Develop\Main\Source\Web\二期\Foundare.SSDT.SAPSyn\SSDTSynchro\WindowsSAPSynchroService\bin\Debug\WindowsSAPSynchroService.exe
InstallUtil.exe -u E:\project\tfs\SSDT\Develop\Main\Source\Web\二期\Foundare.SSDT.SAPSyn\SSDTSynchro\WindowsSAPSynchroService\bin\Debug\WindowsSAPSynchroService.exe
创建(安装)windows服务:输入
sc create BT.FA_Transfer_TEST binPath= D:\ERP.FA.TEST\WindowsTransferService\WindowsTransferService.exe,回车。
sc create BT.FA_Push_TEST binPath= D:\ERP.FA.TEST\API.WindowsPushService\WindowsPushService.exe
注意:“binPath=”后面必须加一个空格!原因不详。
SharePoint WSP
关于MOSS 解决方案部署
VS2010 装在MOSS Production 服务器时,直接修改SiteUrl属性deploy至指定站点。
貌似无法用vs2010远程部署,远程部署报错信息:Error 22 Error occurred in deployment step 'Recycle IIS Application Pool': Cannot connect to the SharePoint site: http://xxx/. Make sure that this is a valid URL and the SharePoint site is running on the local computer. If you moved this project to a new computer or if the URL of the SharePoint site has changed since you created the project, update the Site URL property of the project.
只好手动部署,记录两个方式:CMD命令
1. stsadm
转到SharePoint路径 C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Bin
安装stsadm -o addsolution -filename D:\VisualWebPartProject1.wsp
stsadm -o deploysolution -name VisualWebPartProject1.wsp -url http://robin:1102/ -allowCasPolicies -immediate
部署 stsadm -o deploysolution -name VisualWebPartProject1.wsp -url http://robin:1102/ -immediate -allowgacDeployment -allowCasPolicies//完整版
更新和卸载
卸载 stsadm -o upgradesolution -name VisualWebPartProject1.wsp -filename D:\VisualWebPartProject1.wsp -immediate -allowgacDeployment -allowCasPolicies
2. powershell
安装和部署
Add-SPSolution D:\系统安装与更新\更新包\20120809郝智斌\WEB部件\Foundare.SSDT.PAL.wsp
Install-SPSolution -identity Foundare.SSDT.PAL.wsp -WebApplication http://ssdtc-bpm/ -GACDeployment
更新和卸载
get-spsolution//获取所有解决方案
Update-SPSolution –Identity Foundare.SSDT.PAL.wsp –LiteralPath D:\系统安装与更新\更新包\20120809郝智斌\WEB部件\Foundare.SSDT.PAL.wsp –GACDeployment
Uninstall-SPSolution -Identity VisualWebPartProject1.wsp –WebApplication http://robin:1102/
移除该解决方案
Remove-SPSolution -Identity VisualWebPartProject1.wsp
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\Bin