Home > 7 > Use default installation profile?

Use default installation profile?

November 12Hits:0
Advertisement

I've written a custom installation profile. When running install.php for the first time to install it, I have to select the installation profile I want to use. I then select mine and run the install profile, no problem. However, my client wants to be able to use the profile I put together as the default installation profile and skip that first step entirely (selecting an install profile). How can this be accomplished? Simply setting it as the default selected profile is not enough.

Answers

This part of your original question isn't quite clear:

Simply setting it as the default selected profile is not enough.

However, all you have to do is to add exclusive = TRUE in the .info file of your installation profile.
This will automatically select your installation profile, and the user will proceed to the language selection screen.

Note 1: the setting above will be ignored if there are 2 or more installation profiles marked as exclusive. This might happen only if you downloaded another installation profile and are keeping it in the /profiles folder (e.g. Commerce Kickstart).

Note 2: this has been committed to Drupal 7.22 and is based on this issue/discussion.

Perhaps this helps you. How do I skip language selection with installation profile?

It´s about language, but this one works similar.

https://api.drupal.org/api/drupal/includes!install.core.inc/function/install_select_profile/7

Related Articles

  • Use default installation profile?November 12

    I've written a custom installation profile. When running install.php for the first time to install it, I have to select the installation profile I want to use. I then select mine and run the install profile, no problem. However, my client wants to be

  • Remove default installation profiles with drupal coreSeptember 6

    Is there a way to remove the core installation profiles that come with drupal without the need of hacking core? i.e. is there a hook that can run to alter this list? The reason why this is required is that we are making a custom install profile for u

  • How to specify the default installation profileJuly 11

    I want to specify my custom installation profile as default one, like acquia profile in acquia drupal. For example when installing acquia drupal, acquia profile will be selected by default thus choose profile and language will be skipped. Now I need

  • How to hide set up database step in a installation profile?March 25

    In a installation profile, how do I fill values for Set up database step programmatically and hide it so user doesn't need to fill the form? How to do the above action for the Select language step? --------------Solutions------------- You wanted an e

  • How do customize settings.php during installation profileAugust 31

    I'm creating an installation profile for my current company internal project. During the installation process, one of the custom modules crashes during init(), since it tries to use one global variable defined on settings.php (that's current default

  • Copy the default user profile - Administrator account

    Copy the default user profile - Administrator accountJanuary 8

    I need to amend the default user account during deployment of Windows 7. Having read the following MS article: http://support.microsoft.com/kb/973289 I have a few questions. The article suggests that the amendments must be made under the built in loc

  • Adding translations to installation profile upon installationMarch 21

    Creating an installation profile for a french site. I have hit a brick wall trying to have the profile install fr language translations. I have tried adding this to my profile as this comment http://drupal.org/node/1297438#comment-6308144 // Add fren

  • How can I bundle installation profile with translation (*.po)March 23

    I have tried a few different approaches to load a translation file (.po) from an installation profile. The build is pretty close to being typical: a make file downloads core, custom profile and application theme/modules. Then drush --site-install --p

  • Alter the "My Account" link in installation profileJuly 22

    Well i've tried the following code to insert an attribute to the user-account link on installation profile.It works for all other menu items (Home[]), except the user-account link, probably due to the reason it is rebuilt again. <?php $path = 'user';

  • Creating node in installation profile but body field stays emptyNovember 8

    I am trying to generate nodes in my installation profile. The weird thing is that everything works except the body. First here is the code I use: $date = new DateTime(); $node = new stdClass(); $node->type = 'article'; $node->status = 1; $node->u

  • How to automatically install civicrm extensions in drupal+civicrm installation profile?December 16

    We are building a Drupal distribution / installation profile similar to CiviCRM Starter Kit. This will install Drupal 7 and CiviCRM 4.3 while installing the distribution. We want to add some CiviCRM Extensions like "Extended Reports for CiviCRM"

  • Create a user via the Installation profileFebruary 1

    I am using Installation Profiles to automate the process of installing Drupal 7 websites I would like to create a user via the installation profile and assign it a username, password and email address, plus give it a role (This will be a special admi

  • db_update query in custom installation profile gets ignoredAugust 29

    I am currenty working on a custom installation profile that enables modules, performs some db queries and so forth. It also sets my default theme and admin_theme... Nothing too special ;-) I have 2 db_update queries as well, located in my .install fi

  • set_variable site name in installation profileMay 20

    I'm writing a custom installation profile, and most things work, except that I can't get it to change the site name. function myprofile_install() { include_once DRUPAL_ROOT . '/profiles/standard/standard.install'; standard_install(); // ... variable_

  • Automatically installing dependencies of an Installation Profile's dependenciesSeptember 23

    Another drush make / Installation Profile question, that I haven't seen addressed in any of the others. I have a file called starter.make. It downloads (from Bitbucket) a custom Installation Profile I've written. This part works fine. I've now added

  • Symfony2 default installation keeps on adding a footer to my codeJanuary 14

    I'm using the default installation of symfony2. The application is incredibly simple but this thing keeps on adding a footer to responses, it makes 0 sense to me as to why. base.html.twig: {# app/Resources/views/base.html.twig #} <!DOCTYPE html> <

  • Can you make a Windows network default user profile NOT apply to a certain operating system?March 12

    I would like to create a network Default User account for Windows 7 only. This is on a Windows 2003 domain with servers from Windows 2000 to 2008 R2 and Windows XP on workstation side. We're about to do a full migration to Windows 7 and I'd like to s

  • Windows 7 64-bits default installation folder problemJuly 4

    I am having some trouble with Windows 7 64-bit and changing the default installation folder. I like to have a partition only for the OS. I think it is a good practice and that's always been recommended to me by various people. So, I normally have a C

  • Optimal default installation location for IIS hosted web applicationAugust 26

    I have a .NET web application that users will be running on their own servers. The installer I am writing will provide the user with a default installation directory. My question is what is the optimal default directory for installing a third party w

  • Is Apache server part of default installation?December 27

    I have a running apache2 server on my computer. As I do not use it as a server, can I remove it safely (to save RAM, boot-up time, etc.) or is it still useful (like part of Ubuntu default installation)? --------------Solutions------------- Apache is

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.602 s.