Examples of the Configuration String

In this topic, you can find examples of the configuration string.

The following command-line command creates an application instance.

ac.exe -configmode:"NewInstance" -dbsrvname:"GP" -dbname:"JPMorgan" 
-company:"CompanyID=1;CompanyType=;LoginName=;" 
-company:"CompanyID=2;CompanyType=;ParentID=1;Visible=Yes; LoginName=JPMorgan;" 
-iname:"JP Morgan" -ipath:"C:\Program Files\Program Folder\JP Morgan\\" 
-swebsite:"Default Web Site" -svirtdir:"JPMorgan" -spool:"JPMorgan" 
-sactions:"SelectedUser" -suser:"GP\Administrator"

The following command also creates an application instance and uses the short forms of the command-line parameters.

ac.exe -cm:"NewInstance" -s:"SM" -d:"InstanceDB" -c:"ci=1;" 
-c:"ci=2;cp=1;ct=Demo;cv=True;cn=Company;" -i:"Instance" 
-h:"C:\Program Files (x86)\Program Folder\Instance" -w:"Default Web Site" 
-v:"Instance" -po:"Classic .NET AppPool" -a:"AnonymousUser"

The following command-line command updates an existing database.

ac.exe -configmode:"DBMaint" -dbsrvname:"SM" -dbnew:"False" -dbname:"DotNet4" 
-dbupdate:"True"

The following command updates an existing application instance.

ac.exe -cm:"UpgradeSite" -i:"Instance"