It would depend on the type of franchise and the part of Canada where you intend to open such a franchise. There can be many ways to get long term residency in Canada, and most likely you would be starting with a work permit, leading towards PR and eventually citizenship.
Ask A Question | Learn more about Canada
How can American investors operate a business in Canada and also gain residency?
I run my own company in the US and I'm now interested in opening a franchise in Canada. Since this would require frequent travel between the two destinations, I would like to also gain long term residency in Canada. What are my options?