To install a custom workflow developed using Visual studio, follow the steps given below-
-- Build your assembly
Drag and drop assembly to C:\Windows\Assembly. Right click and select the properties. Note down the pubclickeytoken for your assembly
-- Create a Feature.xml
-- Create a Workflow.xml
Change Association_FormURN based on your InfoPath Properties
-- Create a feature in SharePoint
Create a folder say "CUSTOM_WORKFLOW" in "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATES\FEATURE"
Copy workflow.xml and feature.xml to this folder
-- Install and Activate the feature
Create a batch file with following content in your FEATURE folder
@ECHO OFF
ECHO.
ECHO Activiating and installing the feature...
ECHO.
SET STSADMDIR="C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\BIN"
%STSADMDIR%\STSADM.EXE -o installfeature -filename CUSTOM_WORKFLOW\feature.xml -force
%STSADMDIR%\STSADM.EXE -o activatefeature -filename CUSTOM_WORKFLOW\feature.xml -url http://SHAREPOINT_URL
ECHO.
ECHO Resetting IIS
ECHO.
IISRESET
-- Run the batch file
Hurry, you could now see your workflow in Workflow settings of List
Wednesday, March 26, 2008
Install SharePoint workflow without MSI
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment