Question about dependencies related to "Remove Components" in NTLite

43.onsomeday

New Member
Messages
19
Reaction score
0
When I deselect option
1. └[ √ ] PowerShell
1-1.  └[ √ ] Desired State Configuration (DSC)
1-2.  └[ ] PowerShell-32 bit
1-2-1.   └[ ] PowerShell ISE - 32 bit

1-2-1, option 1. PowerShell gets automatically unchecked
1. └[ ] PowerShell
1-1.  └[ √ ] Desired State Configuration (DSC)
1-2.  └[ ] PowerShell-32 bit
1-2-1.   └[ ] PowerShell ISE - 32 bit

A. Can I configure the selections as I want?​

Currently, you cannot configure the selections exactly as you described. If you uncheck PowerShell ISE - 32 bit (1-2-1), it should not automatically uncheck the entire PowerShell option (1). However, depending on how the configuration is set up, this behavior might be possible with a customized setup. In standard scenarios, the options are typically independent, and unchecking a sub-option does not uncheck the main option automatically.

B. Does PowerShell run as 64-bit by default? If I deselect PowerShell-32 bit, will PowerShell-64 bit remain enabled, and PowerShell-32 bit be disabled? Or do both have to be enabled?​

Yes, PowerShell runs as 64-bit by default. If you deselect PowerShell-32 bit, PowerShell-64 bit will remain enabled, and PowerShell-32 bit will be disabled. You do not need to enable both; they can be independently managed and do not need to be both active at the same time.
 
You're not sharing a completely accurate picture.

If you uncheck a child component, NTLite will sometimes update the parent component's status from a checked square to a grey square. This indicates the base component is still present, but has reduced functionality.

View attachment 12657

This is more obvious when you read the saved preset.
Code:
        <RemoveComponents AppRemovalMode="DISM">
                <c>powershell32 'PowerShell - 32 bit'</c>
                <c>powershelldsc 'Desired State Configuration (DSC)'</c>
                <c>powershellise32 'PowerShell ISE - 32 bit'</c>
        </RemoveComponents>

If you completely remove PowerShell, it would look like this (after disabling Recommended from the Compatibility mode):

View attachment 12658

Code:
        <RemoveComponents AppRemovalMode="DISM">
                <c>powershell</c>
                <c>powershell32 'PowerShell - 32 bit'</c>
                <c>powershelldsc 'Desired State Configuration (DSC)'</c>
                <c>powershellise 'PowerShell ISE'</c>
                <c>powershellise32 'PowerShell ISE - 32 bit'</c>
        </RemoveComponents>



By default, Windows runs the 64-bit version of PS on a 64-bit platform. The 32-bit version is available for legacy scripts which expect a 32-bit platform for default variable sizes. You may not care, but some scripts are dependent on the correct size of a variable type.

When unchecked from Components, a feature will be permanently removed and not "disabled". Disabled implies it can be re-enabled, which is only possible for Features on Demand.
 
Back
Top