library

  for webmasters
  api
  security
  release notes

newsletter
Subscribe via RSS or via email
            

How to install automatically QuickelSoft CMS

If you already have a tool in your company to automatically install applications on servers or workstations, you can use this script to install and configure a QuickelSoft CMS domain.

This script bypasses the manual steps of the QuickelSoft CMS installer.

Before installation

Table creation and domain configuration

 Installer installer = new Installer(
ConfigurationManager.ConnectionStrings["QuickelSoftCMS_ConnectionString"]);
 try
 {
  installer.Install("UserID", "PassWord", "Firtsname Lastname", "your@email.com",
"YouCustomerName", "");
  Console.Out.WriteLine("Done !");
 }
 catch(QuickelSoft.CMS.API.Exceptions.CMSException ex)
 {
  Console.Out.WriteLine("An error has occured");
  Console.Out.WriteLine(ex.Message);
  Console.Out.WriteLine(installer.LastErrorDescription + " [" + installer.LastError + "]");
 }

This script will create the table in your Sql Database and configure the QuickelSoft CMS domain and create an Anonymous reader for your sites.

See the API documentation for more information on the Installer class.

Site creation

You can also create a site definition immediately after installation.

 Context context = new Context();
 try
 {
  context.Login("UserID", "PassWord");
  SiteCollection sites = context.GetSites();
  Site site = sites.Create();
  site.Name = "My Site";
  site.MainLanguage = "en";
  site.SharedDirectoryPhysicalPath = @"c:\inetpub\wwwroot\mysite\html";
  site.SharedDirectoryVirtualPath = "/html";
  site.URLRewritingPrefix = "home";
  site.URL = "http://localhost/MySite";
  site.Save();
  Console.Out.WriteLine("Done !");
 }
 catch(QuickelSoft.CMS.API.Exceptions.CMSException ex)
 {
  Console.Out.WriteLine(context.LastErrorDescription + " [" + context.LastError + "]");
 }

 


Related articles

Why does QuickelSoft CMS use a prefix with ASPX in each URL?
How to use the QuickelSoft CMS API from a .Net application
API Error Codes
How to generate a sitemap for search engines
How to add a RSS feed to your site
How to add a search form to your site
QuickelSoft CMS 2.0.5 Documentation