packagefactory icon indicating copy to clipboard operation
packagefactory copied to clipboard

Question: Multiple InstallTasks (install.json) possible?

Open Constey opened this issue 2 years ago • 2 comments

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

Constey avatar Dec 28 '22 12:12 Constey

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

aaronparker avatar Dec 28 '22 21:12 aaronparker

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

aaronparker avatar Jun 13 '23 02:06 aaronparker