<?xml version="1.0" encoding="utf-16"?><customize><COR_CUSTOM_FIELD U_RuleName="COR: Check coresuite folder" U_Type="0" U_Action="0" U_Warning="" U_WarningText="" U_WarningBox="" U_WarningStatus="" U_Active="Y" U_FormTypeBasis="" U_ItemUIDBasis="" U_ColumnBasis="" U_FormType="" U_ItemUID="" U_Column="" U_EventType="-3" U_Before="" U_Mode="-1" U_FunctionParam="" U_Creator="" U_LastModified="26.01.2016 11:43:23" U_LastModifiedBy="8" U_Refresh=" " U_Permission="111111111111111" U_EasyFunctionRule="" U_ErrorBox=" " U_ErrorStatus=" " U_InnerEvent="Y" U_Dependency="" U_RuleId="809f72a2-3dbe-4e01-be85-6906dc046e3c" U_Version="2"><U_Expression>/****** General Information *****Creator: coresystems ag, SCBRCreate Date: 2016-01-26 ***** StartConfDesc *****Checks if the current user has writing rights to the coresuite folder. If not it displays to the user a warning message.***** EndConfDesc ***** ***** Updates *****YYYY-MM-DD, name: Update Comment*/ try { 	StatusBar.WriteWarning("Checking Write-rights of current user.");	string strPath = Environment.CurrentDirectory;	try	{		System.IO.StreamWriter txt = new System.IO.StreamWriter(@strPath + @"\TestWritingRight.txt", true);		txt.WriteLine("Test Writing Right");		txt.Close();		System.IO.File.Delete(@strPath + @"\TestWritingRight.txt");			}	catch(Exception ex)	{		MessageBox.Show(@"Attention: Your user account doesn't have the necessary writing rights for coresuite to install correctly. Please contact your local System Administrator to grant you writing rights to the following folder and all sub-folders:"			+ Environment.NewLine + Environment.NewLine + strPath + Environment.NewLine, "OK");			}	// Your Code }catch (Exception ex){ 	string errorMessage = string.Format("Error in {0} Rule '{1}': {2}", pVal.RuleInfo.RuleType, pVal.RuleInfo.RuleName, ex.Message);	MessageBox.Show(errorMessage, "OK"); 	StatusBar.WriteError(errorMessage); 	Debug.WriteMessage(errorMessage, Debug.DebugLevel.Exception); }return true;</U_Expression></COR_CUSTOM_FIELD></customize>