Sitelet https://github.com/JustinGrote/ModuleFast/issues/22
Skip to content

Fails if the psd1 contains scriptblocks and the selected version is not the latest one. #22

Description

@JustinGrote

$manifestData = Import-PowerShellDataFile -Path $manifestPath -ErrorAction stop

Example: PRTGAPI Already Installed

Try to install PRTGAPI, it reads the existing manifest and fails with a dynamic because there is script logic in the .psd1 file.

Probably should skip and force overwrite if a newer version is found, this has to be handled both in the above code and in the installer code for when it encounters a same-name same-version folder

Activity

  1. changed the title [-]Fails if the psd1 is dynamic[/-] [+]Fails if the psd1 is dynamic and the selected version is not the latest one.[/+] on Dec 27, 2023
  2. changed the title [-]Fails if the psd1 is dynamic and the selected version is not the latest one.[/-] [+]Fails if the psd1 contains scriptblocks and the selected version is not the latest one.[/+] on Dec 27, 2023
  3. JustinGrote commented on Dec 27, 2023

    @JustinGrote
    OwnerAuthor

    Fixed #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions