Skip to content

Commit

Permalink
windows: setting default search folder as AppData/Roaming for plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
propilideno committed Jun 9, 2024
1 parent 38d444e commit 59fbf7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ read_app_path(){
y|Y ) [[ -d "$currentPath" ]] && break || printf "<FOLDER NOT FOUND> Type a valid path!\n";;
n|N )
case "$OS" in
MINGW64*) currentPath=$(powershell -Command "(New-Object -ComObject Shell.Application).BrowseForFolder(0, 'Select a folder', 0, 0).Self.Path");;
MINGW64*) currentPath=$(powershell -Command "(New-Object -ComObject Shell.Application).BrowseForFolder(0, 'Select the Visual Paradigm (APP FOLDER)', 0, [System.Environment]::GetFolderPath('ApplicationData')).Self.Path");;
*) read -p "The path to your Visual Paradigm (APP FOLDER) is: " currentPath;;
esac
;;
Expand Down Expand Up @@ -63,7 +63,7 @@ read_plugin_path(){
;;
n|N )
case "$OS" in
MINGW64*) currentPath=$(powershell -Command "(New-Object -ComObject Shell.Application).BrowseForFolder(0, 'Select a folder', 0, 0).Self.Path");;
MINGW64*) currentPath=$(powershell -Command "(New-Object -ComObject Shell.Application).BrowseForFolder(0, 'Select the Visual Paradigm (PLUGIN FOLDER)', 0, [System.Environment]::GetFolderPath('ApplicationData')).Self.Path");;
*) read -p "The path to your Visual Paradigm (PLUGIN FOLDER) is: " currentPath;;
esac
;;
Expand Down

0 comments on commit 59fbf7c

Please sign in to comment.