pnp / PnP-PowerShell

SharePoint PnP PowerShell CmdLets
https://pnp.github.io/powershell
Other
990 stars 663 forks source link

MSI installation /quiet put the files in the wrong folder #2523

Open xenophobentx opened 4 years ago

xenophobentx commented 4 years ago

Reporting an Issue or Missing Feature

If we install SharePointPNPowerShell with the provided MSI package with the /quiet parameter from commandline. (just like the dsc package resource)it is installing the module files to the following folder: c:\Users\username\AppData\Local\Apps\SharePointPnPPowerShell2019\Modules\ instead of c:\Program Files\WindowsPowerShell\Modules\ Which is ofcourse absolutly not recognized by PowerShell.

Expected behavior

MSI with /quiet parameter should install to c:\Program Files\WindowsPowerShell\Modules\

Actual behavior

Destination c:\Users\username\AppData\Local\Apps\SharePointPnPPowerShell2019\Modules\

Steps to reproduce behavior

from command line: 1. "SharePointPnPPowerShell2019.msi" /quiet 2. check the folder: c:\Program Files\WindowsPowerShell\Modules\ 3. check the folder: c:\Users\kofelf\AppData\Local\Apps\

Now suprise! :D

Which version of the PnP-PowerShell Cmdlets are you using?

What is the version of the Cmdlet module you are running?

not relevant

How did you install the PnP-PowerShell Cmdlets?

ghost commented 4 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.