I have a question , if I detach the sql db as .mdf file and I sent it to another pc which program I must install it to open the file
ssms is one tool you could use
While technically correct, I think the response should be
Why are you detaching and attaching MDF files?
BACKUP and RESTORE is very, very probably what you ought to be doing (using SSMS or Azure Data Studio or whatever)
Replying to myself after reading Very important question
You might want to look into deploying a "dacpac" as well (https://docs.microsoft.com/en-us/sql/relational-databases/data-tier-applications/deploy-a-data-tier-application?view=sql-server-2017)