Do you make batch files for deployment to Test and Production servers? (CRM 4 Only)

Updated by Brady Stroud [SSW] 1 year ago. See history

123
<introEmbed body={<> The goal is that CRM developers **to not ** move from Dev to Test and to Production manually. Basically, we don't want a developer to touch Test or Production servers. The testers can run the .bat file. [See SSW rules to setup packages](http://www.ssw.com.au/ssw/Standards/Rules/RulesToBetterSetups.aspx). </>} />

How should developers work?

Create a Deployment.bat like this

REM (deploy the callouts - Part 1)
REM (restart IIS of CRM TEST Server - BASILISK)
iisreset BASILISK
REM (copy callouts dlls onto CRM TEST Server - BASILISK)
copy Microsoft.Crm.Platform.Callout.Base.dll "\\BASILISK\C$\Program Files\Microsoft CRM\Server\bin\assembly"
copy SSW.TimeProIntegrationCallouts.dll "\\BASILISK\C$\Program Files\Microsoft CRM\Server\bin\assembly"
copy callout.config.xml "\\BASILISK\C$\Program Files\Microsoft CRM\Server\bin\assembly"
REM (deploy the callouts - part 2)
REM Stop the WorkFlow Service (as we need to remove the lock on the .dlls)
REM Start it
REM (avoid workflow in v3 - see comment above C but if you do you need to)
REM Manual - use Import wizard
REM (avoid server side validation logic in v3)
REM Deploy a 1.1 web service

Deploy to Test Server

  • Import the customizations.xml
  • Run .bat file

Deploy to Production Server

  • Import the customizations.xml
  • Run .bat file

Acknowledgements

Adam Cogan
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star