Restart ArcGIS Pro programmatically?

172
2
03-26-2024 09:54 AM
WesBailes
New Contributor III

I know you can call the FrameworkApplication.Close(); and FrameworkApplication.ShutdownAsync();, but is there a method to re-start Pro?

When I combine one of the above methods with a call to  Process.Start("C:\\Program Files\\ArcGIS\\Pro\\bin\\ArcGISPro.exe");, it requires a sign in to ArcGIS online every time.

 

0 Kudos
2 Replies
UmaHarano
Esri Regular Contributor

If I turn on this check box, then I do not get the request to sign in every time. The code you shared opens Pro with no prompt to sign in.

 

UmaHarano_0-1713297117933.png

 

0 Kudos
WesBailes
New Contributor III

Thanks for the suggestion, however, I also have the checkbox checked. I do believe it has something to do with the combination of the close and immediate launch.

0 Kudos