The Conservative government introduced legislation to abolish the long-gun registry last October. (Canadian Press)

A Quebec superior court judge has extended an injunction blocking the federal government from dismantling the long gun registry.

In a written ruling, Justice Marc-André Blanchard ordered the registry to remain in effect until June 13, 2012.

The province's legal challenge of the federal law to destroy data in the gun registry is scheduled to start in June.

Quebec's government wants to use data from the federal gun registry to create its own list of the province's gun owners.

The federal government has pledged to destroy the files, now that it has passed legislation killing the controversial registry.

The ruling means Quebecers are still obliged to register their weapons, and that the registry data for the province will be preserved and maintained.

Minister of Public Safety Vic Toews said in a statement the ruling doesn't change the federal government's commitment to ending the long-gun registry "once and for all."

"We are disappointed to see that contrary to the will of Canadians and of Parliament, the wasteful and ineffective long-gun registry is still alive," said Toews.