windows服务安装卸载,sharepointWSP安装卸载

Windows服务  CMD中
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 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

九幽之君

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值