Riverscapes / RaveAddIn

RAVE AddIn for ArcGIS
http://rave.riverscapes.xyz/
GNU General Public License v3.0
1 stars 3 forks source link

'Find Resources Folder' broken in this release #180

Closed joewheaton closed 5 months ago

joewheaton commented 2 years ago

Just noticed that 3.1 does not take us to the resources folder. Just goes to AppData/Roaming?

philipbaileynar commented 2 years ago

This is working for me. I suspect that your RAVE folder doesn't exist yet? See the code below.

string app_data = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
if (Directory.Exists(app_data))
{
    string rave_data = Path.Combine(app_data, Properties.Resources.AppDataFolder);
    if (Directory.Exists(rave_data))
        System.Diagnostics.Process.Start(rave_data);
    else
        System.Diagnostics.Process.Start(app_data);
}
else
    MessageBox.Show("The system APPData folder does not exist.", "AppData Folder Missing", MessageBoxButtons.OK, MessageBoxIcon.Information);
joewheaton commented 1 year ago

Okay, I can't check this right now (don't have ArcGIS working on this machine). However, could the error message be a little more helpful? Most users have no idea what their AppData folder is. Can you tell them what they need to do to get RAVE to make it for them?