Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Multiple InstallTasks (install.json) possible? #14

Open
Constey opened this issue Dec 28, 2022 · 2 comments
Open

Question: Multiple InstallTasks (install.json) possible? #14

Constey opened this issue Dec 28, 2022 · 2 comments

Comments

@Constey
Copy link
Contributor

Constey commented Dec 28, 2022

Hi there,

i've a short question about the install.json. I want to add or edit some registry keys postinstall. I've found that Remove and Copy of files is possible, but how could I run an additional .ps1 script for example or add those registry keys after the setup?

   "Version": "11.9.0"
  },
  "LogPath": "C:\\ProgramData\\Microsoft\\IntuneManagementExtension\\Logs",
  "InstallTasks": {
    "ArgumentList": "/package \"#SetupFile\" AUTOUPDATE=No DESKTOPICONS=No FAXPRINTER=No REGISTERREADER=No /qn /log \"#LogPath\\#LogName.log\""
  },
  "PostInstall": {
    "Remove": [],
    "Copy": []
  }
}

Kind regards,
Constantin

@aaronparker
Copy link
Owner

aaronparker commented Dec 28, 2022

I'd have to extend the Install.ps1 to make running a script a post install option

@aaronparker
Copy link
Owner

I've added support for using the PSAppDeployToolkit which can provide additional options for pre and post install/uninstall tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants