sandroasp / Microsoft-Integration-and-Azure-Stencils-Pack-for-Visio

Microsoft Integration, Azure, Power Platform, Office 365 and much more Stencils Pack it’s a Visio package that contains fully resizable Visio shapes (symbols/icons) that will help you to visually represent On-premise, Cloud or Hybrid Integration and Enterprise architectures scenarios (BizTalk Server, API Management, Logic Apps, Service Bus, Event Hub…), solutions diagrams and features or systems that use Microsoft Azure and related cloud and on-premises technologies in Visio 2016/2013
https://blog.sandro-pereira.com/
MIT License
1.45k stars 435 forks source link

Different default stencils folders depending on Office version #25

Closed bramdejager closed 4 years ago

bramdejager commented 4 years ago

When running the download install PowerShell script the script is not working during copying the files to the final destination. The current script copies the files to "Documents\My Shares". My current Visio install uses the "Documents\Visio Stencils" instead.

The script should support different destination folder depending on the Office version.

girlpunk commented 4 years ago

Which Office/Visio version do you use?

girlpunk commented 4 years ago

Needs testing on different versions, but this appears to find the relevent key for Visio 365

Get-ChildItem HKCU:\Software\Microsoft\Office\ -Recurse | Where-Object {$_.PSChildName -eq "Application"} | Get-ItemProperty -Name MyShapesPath | select MyShapesPath
sandroasp commented 4 years ago

Thanks for the tip Jacob! just updated the scripts