Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6894039
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:43:58+00:00 2026-05-27T06:43:58+00:00

What is best practice for the Package Creator to either require a dependency of

  • 0

What is best practice for the Package Creator to either require a dependency of another package, i.e. the Forms Rendering package, or install the required dependency. The configuration packages are available from Package Creator but that appears tedious if a package has numerous config items.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:43:59+00:00Added an answer on May 27, 2026 at 6:43 am

    The current release of Composite C1 Package Creator (v.3.3) do not have features for specifying required packages via the UI. I suggest you register a feature request for this and describe your need. You can use ‘Create New Item’ on http://compositec1.codeplex.com/workitem/list/basic

    Writing custom validation logic

    With some C# development you can add this check to a package though. The C1 Package system is based on ‘installer plug-ins’ that validate state before install and do the install work. You can write such an ‘installer plug-in’ and make it validate the presence of a required C1 Package and then associate your plug-in with your package.

    1. Create a class that inherit from
      Composite.Core.PackageSystem.PackageFragmentInstallers.BasePackageFragmentInstaller

    2. Override Install() and Validate() – put your validation into Validate() and return one or more PackageFragmentValidationResult is your validation fails. Let Install() simply return.

    3. Register your new ‘fragment installer’ class in the packages install.xml file – add a section like this inside the root element:

      <mi:PackageFragmentInstallerBinaries> <mi:Add path="~/MyAssembly.dll"/> </mi:PackageFragmentInstallerBinaries>

      where path points to your assembly as you added it to the zip.

    4. Inside the existing <PackageFragmentInstallers /> element, add calls to your class inheriting from BasePackageFragmentInstaller by using an element like <mi:Add installerType="MyFragmentInstallers.MyValidator, MyFragmentInstallers"/>

    Doing this will make Composite C1 call your Validate() method as part of the package install, and alert the user if any validation messages are returned.

    Detecting if a package is installed

    If you know the ID of a package, you can check if it has been installed using Composite.Core.PackageSystem.PackageManager.IsInstalled(Guid packageId).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Whats the best practice for setting up package structures in a Java Web Application?
Short best practice question: If an object A is injected into another object B,
Is it normal or hopefully best practice to use package.json in my project even
I'm looking for some kind of best practice informations about Spring jar configuration. I
I want to know the best practice of configuring Spring XML configuration files 1-
What are best practices for moving/exporting SQL Server Integration Services Packages from a SQL
Best practice is to use unique ivs, but what is unique? Is it unique
The 'best practice' (as I see it) to atomically create a new file, is
What's the best practice for making sure that certain ajax calls to certain pages
What is best practice when creating your exception classes in a .NET solution: To

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.