29 Aralık 2008 Pazartesi

Microsoft Office Shrepoint Server içerisine Workflow'unuzu deploy ederken sorunsuz olarak kullanacağınız install.bat dosyası

::Aşağıdaki metni olduğu gibi instal.bat uzantılı dosya içerisinde yapıştırın.


:: Install.bat dosyasını çalıştımadan önce assembly'nizi imzalayın.
::
:: Bu dosyatı özelleştirmek için aşağıdaki değerleri bulun ve replace edin.
:: a) "MasrafFormuStateMachine" kendi feature adınız
:: b) "feature.xml" sizin feature.xml dosyanızın adı
:: c) "workflow.xml" sizin workflow.xml dosyanızın adı
:: d) "http://litwareportal" workflow'unuzu yayımlamak istediğiniz portalın adresi

echo Feature Kopyalanıyor...

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

copy /Y feature.xml "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MasrafFormuStateMachine\"
copy /Y workflow.xml "%CommonProgramFiles%\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MasrafFormuStateMachine\"

::Solution klasörünüz içerisinde InfoPath\Publish klasörü oluşturun.
::bu klasör altına publish ettiğiniz InfoPath formlarını atın.
xcopy /s /Y ..\InfoPath\Publish\*.xsn "%programfiles%\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\MasrafFormuStateMachine\"


echo Assembly ler GAC'a ekleniyor...

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

:: Note: 64-bit için bu kodları uncommen edin
::"%programfiles% (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -uf "MasrafFormuStateMachine"
::"%programfiles% (x86)\Microsoft Visual Studio 8\SDK\v2.0\Bin\gacutil.exe" -if "bin\Debug\MasrafFormuStateMachine.dll"

echo Feature aktive ediliyor...

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

stsadm -o deactivatefeature -filename "MasrafFormuStateMachine\feature.xml" -url http://litwareportal
stsadm -o uninstallfeature -filename "MasrafFormuStateMachine\feature.xml"

stsadm -o installfeature -filename "MasrafFormuStateMachine\feature.xml" -force
stsadm -o activatefeature -filename "MasrafFormuStateMachine\feature.xml" -url http://litwareportal


echo iisreset reseti atılıyor...

popd
iisreset

0 yorum: