惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

N
Netflix TechBlog - Medium
I
Intezer
人人都是产品经理
人人都是产品经理
F
Full Disclosure
A
About on SuperTechFans
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
博客园 - 三生石上(FineUI控件)
腾讯CDC
Stack Overflow Blog
Stack Overflow Blog
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Blog — PlanetScale
Blog — PlanetScale
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
博客园 - 司徒正美
P
Proofpoint News Feed
宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
L
LangChain Blog
Last Week in AI
Last Week in AI
B
Blog
Project Zero
Project Zero
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
S
Schneier on Security
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
U
Unit 42
B
Blog RSS Feed
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy International News Feed
N
News and Events Feed by Topic
W
WeLiveSecurity
Cloudbric
Cloudbric
G
GRAHAM CLULEY
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
C
Check Point Blog
G
Google Developers Blog
The Last Watchdog
The Last Watchdog
Latest news
Latest news
S
Secure Thoughts
Simon Willison's Weblog
Simon Willison's Weblog
Scott Helme
Scott Helme
H
Heimdal Security Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog

博客园 - 蓝色飞翔

Exchange Server 2010 收发传真 强大的Exchange 动态邮件通讯组 在Exchange 服务器上查看当前在线人数 C# 建立AD帐号,设置下次登录修改密码 Office 2010 试用版可以直接激活为正式版。 Windows 7 企业版(90天试用版)可以直接激活为正式版..附激活过程 在XP下重装TCPIP协议? 发展改革委--吃屎。 英文不懂这些,弄错会很丢脸的 China GDP Microsoft 又出好東西了! Silverlight DataGrid(3) Silverlight DataGrid (2) Silverlight DataGrid(1) 网络负载平衡(NLB)详解 把NOTES 部署到GAC中. - 蓝色飞翔 - 博客园 WF + Infopath(4)編碼 - 蓝色飞翔 WF + Infopath(3)設計InfoPath - 蓝色飞翔 WF + Infopath(2)設計工作流
WF + Infopath(5)部署 - 蓝色飞翔
蓝色飞翔 · 2008-05-29 · via 博客园 - 蓝色飞翔
  1. 修改Feature.xml . 執行:

    1. 按鼠標右鍵, 選擇"Insert Snippet" -->"Sharepoint Server Workflow"-->"Feature.xml code".

    得到以下內容. 修改其中的標識部分. GUID 可以用"Tools"-->"Create GUID" 來獲取一個新的.

    修改後內容如下:

    <?xml version="1.0" encoding="utf-8"?>

    <!-- _lcid="1033" _version="12.0.3111" _dal="1" -->

    <!-- _LocalBinding -->

    <!-- Insert Feature.xml Code Snippet here. To do this:

    1) Right click on this page and select "Insert Snippet" (or press Ctrl+K, then X)

    2) Select Snippets->SharePoint Workflow->Feature.xml Code -->

    <Feature Id="{8F474C2D-D062-4a48-871B-D12CA1F7E033}"

    Title="MarketingCampaign Default Title"

    Description="This feature is a workflow that MarketingCampaign"

    Version="12.0.0.0"

    Scope="Site"

    ReceiverAssembly="Microsoft.Office.Workflow.Feature, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"

    ReceiverClass="Microsoft.Office.Workflow.Feature.WorkflowFeatureReceiver"

    xmlns="http://schemas.microsoft.com/sharepoint/">

    <ElementManifests>

    <ElementManifest Location="workflow.xml" />

    </ElementManifests>

    <Properties>

    <Property Key="GloballyAvailable" Value="true" />

    <!-- Value for RegisterForms key indicates the path to the forms relative to feature file location -->

    <!-- if you don't have forms, use *.xsn -->

    <Property Key="RegisterForms" Value="*.xsn" />

    </Properties>

    </Feature>

  2. 修改workflow.xml

    1. 按鼠標右鍵, 選擇"Insert Snippet" -->"Sharepoint Server Workflow"-->"Workflow.xml code".

      得到以下內容. 修改其中的標識部分. GUID 可以用"Tools"-->"Create GUID" 來獲取一個新的.

      修改後內容如下:

      <?xml version="1.0" encoding="utf-8" ?>

      <!-- _lcid="1033" _version="12.0.3015" _dal="1" -->

      <!-- _LocalBinding -->

      <!-- Insert Workflow.xml Code Snippet here. To do this:

      1) Right click on this page and select "Insert Snippet" (or press Ctrl+K, then X)

      2) Select Snippets->SharePoint Workflow->Workflow.xml Code -->

      <Elements xmlns="http://schemas.microsoft.com/sharepoint/">

      <Workflow

      Name="My MarketingCampaign "

      Description="This workflow ...MarketingCampaign"

      Id="{354A35F1-E4B9-4e1f-B33E-5B4BD7E8A607}"

      CodeBesideClass="MarketingCampaign.MarketingCampaign"

      CodeBesideAssembly="MarketingCampaign, Version=1.0.0.0, Culture=neutral, PublicKeyToken=de22c7d3fb8c503c"

      TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"

      InstantiationUrl="_layouts/IniWrkflIP.aspx"

      ModificationUrl="_layouts/ModWrkflIP.aspx">

      <Categories/>

      <!-- Tags to specify InfoPath forms for the workflow; delete tags for forms that you do not have -->

      <MetaData>

      <Instantiation_FormURN>urn:schemas-microsoft-com:office:infopath:InitForm:-myXSD-2008-05-20T01-19-28</Instantiation_FormURN>

      <Task0_FormURN>urn:schemas-microsoft-com:office:infopath:TaskForm:-myXSD-2008-05-20T01-25-44</Task0_FormURN>

      <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl>

      </MetaData>

      </Workflow>

      </Elements>

  3. 修改Install.bat , 內容如下:

    :: Before running this file, sign the assembly in Project properties

    ::

    :: To customize this file, find and replace

    :: a) "MarketingCampaign" with your own feature name

    :: b) "[IP_FORM_FILENAME]" with InfoPath form that needs to be uploaded (add additional lines for multiple forms)

    :: b) "feature.xml" with the name of your feature.xml file

    :: c) "workflow.xml" with the name of your workflow.xml file

    :: d) "http://localhost" with the name of the site you wish to publish to

    echo Copying the feature...

    rd /s /q "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MarketingCampaign"

    mkdir "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MarketingCampaign"

    copy /Y DeploymentFiles\FeatureFiles\feature.xml "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MarketingCampaign\"

    copy /Y DeploymentFiles\FeatureFiles\workflow.xml "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MarketingCampaign\"

    xcopy /s /Y *.xsn "%programfiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MarketingCampaign\"

    echo Adding assemblies to the GAC...

    "%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -uf MarketingCampaign

    "%programfiles%\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -if bin\Debug\MarketingCampaign.dll

    :: Note: 64-bit alternative to lines above; uncomment these to install on a 64-bit machine

    ::"%programfiles% (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -uf MarketingCampaign

    ::"%programfiles% (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -if bin\Debug\MarketingCampaign.dll

    echo Verifying InfoPath Forms...

    ::Note: Verify InfoPath forms; copy line for each form

    ::"%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm" -o verifyformtemplate -filename [IP_FORM_FILENAME]

    "%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm" -o verifyformtemplate -filename InitForm.xsn

    "%programfiles%\common files\microsoft shared\web server extensions\12\bin\stsadm" -o verifyformtemplate -filename TaskForm.xsn

    echo Activating the feature...

    pushd %programfiles%\common files\microsoft shared\web server extensions\12\bin

    ::Note: Uncomment these lines if you've modified your deployment xml files or IP forms

    stsadm -o deactivatefeature -filename MarketingCampaign\feature.xml -url http://cmmsgsps03/ -force

    stsadm -o uninstallfeature -filename MarketingCampaign\feature.xml -force

    stsadm -o installfeature -filename MarketingCampaign\feature.xml -force

    stsadm -o activatefeature -filename MarketingCampaign\feature.xml -url http://cmmsgsps03/

    echo Doing an iisreset...

    popd

    :: iisreset

    pause

  4. 執行Install.bat. OK.