{"id":1541,"date":"2025-04-16T08:51:28","date_gmt":"2025-04-16T08:51:28","guid":{"rendered":"https:\/\/zahiralam.com\/blog\/?p=1541"},"modified":"2025-04-16T09:18:04","modified_gmt":"2025-04-16T09:18:04","slug":"how-to-install-and-run-exe-files-using-wine-on-apple-silicon-mac-m1-m2-m3-m4","status":"publish","type":"post","link":"https:\/\/zahiralam.com\/blog\/how-to-install-and-run-exe-files-using-wine-on-apple-silicon-mac-m1-m2-m3-m4\/","title":{"rendered":"How to Install and Run\u00a0.exe\u00a0Files Using Wine on Apple Silicon Mac (M1\/M2\/M3\/M4)"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">\u2705 Prerequisites<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Homebrew installed<br>If not:<\/li>\n<\/ul>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-1\">\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#%2Fbin%2Fbash%20-c%20%22%24%28curl%20-fsSL%20https%3A%2F%2Fraw.githubusercontent.com%2FHomebrew%2Finstall%2FHEAD%2Finstall.sh%29%22\">\n                            <button class=\"copy-button\" data-label=\"\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83e\uddf0 Step 1: Install Rosetta 2 (Required for Intel-based Wine)<\/h3>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-2\">softwareupdate --install-rosetta --agree-to-license<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#softwareupdate%20--install-rosetta%20--agree-to-license\">\n                            <button class=\"copy-button\" data-label=\"softwareupdate --install-rosetta --agree-to-license\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83c\udf7a Step 2: Install Wine Stable via Homebrew<\/h3>\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-3\">brew install --cask wine-stable<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#brew%20install%20--cask%20wine-stable\">\n                            <button class=\"copy-button\" data-label=\"brew install --cask wine-stable\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\ud83d\udee0 If you get errors like:\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Error: It seems there is already a Binary at &#8216;\/opt\/homebrew\/bin\/&#8230;&#8217;\n<\/blockquote>\n\n\n\n<p>Then run:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-4\">rm -f \/opt\/homebrew\/bin\/{wine*,appdb,msidb,msiexec,notepad,regedit,taskmgr,uninstaller,winver,wordpad,regsvr32,cmd,control,start}<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#rm%20-f%20%2Fopt%2Fhomebrew%2Fbin%2F%7Bwine%2A%2Cappdb%2Cmsidb%2Cmsiexec%2Cnotepad%2Cregedit%2Ctaskmgr%2Cuninstaller%2Cwinver%2Cwordpad%2Cregsvr32%2Ccmd%2Ccontrol%2Cstart%7D\">\n                            <button class=\"copy-button\" data-label=\"rm -f \/opt\/homebrew\/bin\/{wine*,appdb,msidb,msiexec,notepad,regedit,taskmgr,uninstaller,winver,wordpad,regsvr32,cmd,control,start}\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Then reinstall:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-5\">brew install --cask wine-stable\n<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#brew%20install%20--cask%20wine-stable%0A\">\n                            <button class=\"copy-button\" data-label=\"brew install --cask wine-stable\n\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u26a0\ufe0f Step 3: Allow Wine to Open (First Time Only)<\/h3>\n\n\n\n<p>When you run Wine for the first time, macOS might block it:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-6\">\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/winecfg<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#%2FApplications%2FWine%5C%20Stable.app%2FContents%2FResources%2Fwine%2Fbin%2Fwinecfg\">\n                            <button class=\"copy-button\" data-label=\"\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/winecfg\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>\u2757 &#8220;Wine Stable&#8221; cannot be opened because the developer cannot be verified.\n<\/blockquote>\n\n\n\n<p>\ud83d\udc63 Fix it:\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open&nbsp;<strong>System Settings \u2192 Privacy &amp; Security<\/strong><\/li>\n\n\n\n<li>Scroll and&nbsp;<strong>click \u201cAllow Anyway\u201d<\/strong><\/li>\n\n\n\n<li>Then run the command again<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udce6 Step 4:&nbsp;<strong>Install a&nbsp;<code>.exe<\/code>&nbsp;Software<\/strong><\/h3>\n\n\n\n<p>Use this command to install (run the setup for) a Windows&nbsp;<code>.exe<\/code>&nbsp;file \u2014 for example SQLyog:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-7\">\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/wine ~\/Downloads\/sqlyog\/SQLyog.x86.exe<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#%2FApplications%2FWine%5C%20Stable.app%2FContents%2FResources%2Fwine%2Fbin%2Fwine%20~%2FDownloads%2Fsqlyog%2FSQLyog.x86.exe\">\n                            <button class=\"copy-button\" data-label=\"\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/wine ~\/Downloads\/sqlyog\/SQLyog.x86.exe\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\ud83d\udca1 This will open the installer window \u2014 just like on Windows. Follow the steps and install it in the default location.\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udcc1 Step 5: Installed Files Location<\/h3>\n\n\n\n<p>Wine installs all Windows apps inside:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-8\">~\/.wine\/drive_c\/Program Files (x86)\/<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#~%2F.wine%2Fdrive_c%2FProgram%20Files%20%28x86%29%2F\">\n                            <button class=\"copy-button\" data-label=\"~\/.wine\/drive_c\/Program Files (x86)\/\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>For SQLyog, the&nbsp;<code>.exe<\/code>&nbsp;is here:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-9\">~\/.wine\/drive_c\/Program Files (x86)\/SQLyog\/SQLyog.exe<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#~%2F.wine%2Fdrive_c%2FProgram%20Files%20%28x86%29%2FSQLyog%2FSQLyog.exe\">\n                            <button class=\"copy-button\" data-label=\"~\/.wine\/drive_c\/Program Files (x86)\/SQLyog\/SQLyog.exe\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\ude80 Step 6: Run the Installed App Anytime<\/h3>\n\n\n\n<p>To open the installed app:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-10\">\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/wine ~\/.wine\/drive_c\/Program\\ Files\\ \\(x86\\)\/SQLyog\/SQLyog.exe<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#%2FApplications%2FWine%5C%20Stable.app%2FContents%2FResources%2Fwine%2Fbin%2Fwine%20~%2F.wine%2Fdrive_c%2FProgram%5C%20Files%5C%20%5C%28x86%5C%29%2FSQLyog%2FSQLyog.exe\">\n                            <button class=\"copy-button\" data-label=\"\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/wine ~\/.wine\/drive_c\/Program\\ Files\\ \\(x86\\)\/SQLyog\/SQLyog.exe\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>\u2705 You&nbsp;<strong>do NOT need to install it again<\/strong>&nbsp;every time you boot your Mac \u2014 the software stays installed under Wine.\n\n\n\n<h3 class=\"wp-block-heading\">\ud83d\udda5 Optional: Create a Launcher Script<\/h3>\n\n\n\n<p>If you want a shortcut:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-11\">nano ~\/run-sqlyog.sh<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#nano%20~%2Frun-sqlyog.sh\">\n                            <button class=\"copy-button\" data-label=\"nano ~\/run-sqlyog.sh\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Paste:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-12\">#!\/bin\/bash\n\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/wine ~\/.wine\/drive_c\/Program\\ Files\\ \\(x86\\)\/SQLyog\/SQLyog.exe<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#%23%21%2Fbin%2Fbash%0A%2FApplications%2FWine%5C%20Stable.app%2FContents%2FResources%2Fwine%2Fbin%2Fwine%20~%2F.wine%2Fdrive_c%2FProgram%5C%20Files%5C%20%5C%28x86%5C%29%2FSQLyog%2FSQLyog.exe\">\n                            <button class=\"copy-button\" data-label=\"#!\/bin\/bash\n\/Applications\/Wine\\ Stable.app\/Contents\/Resources\/wine\/bin\/wine ~\/.wine\/drive_c\/Program\\ Files\\ \\(x86\\)\/SQLyog\/SQLyog.exe\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Make it executable:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-13\">chmod +x ~\/run-sqlyog.sh<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#chmod%20%2Bx%20~%2Frun-sqlyog.sh\">\n                            <button class=\"copy-button\" data-label=\"chmod +x ~\/run-sqlyog.sh\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n\n\n\n<p>Run it easily:\n\n\n\n<div class=\"code-block-container\">\n                        <pre class=\"wp-block-code\"><code id=\"code-14\">~\/run-sqlyog.sh<\/code><\/pre>\n                        <amp-iframe sandbox=\"allow-scripts\" width=\"94\" height=\"72\" frameborder=\"0\" \n                                    src=\"https:\/\/zahiralam.com\/blog\/wp-content\/plugins\/amp-copy-code-button\/copier.html#~%2Frun-sqlyog.sh\">\n                            <button class=\"copy-button\" data-label=\"~\/run-sqlyog.sh\"  placeholder disabled>Copy<\/button>\n                        <\/amp-iframe>\n                    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u2705 Prerequisites \ud83e\uddf0 Step 1: Install Rosetta 2 (Required for Intel-based Wine) \ud83c\udf7a Step 2: Install Wine Stable via Homebrew \ud83d\udee0 If you get errors [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":1545,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[264,265,266],"class_list":["post-1541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-install-exe-on-mac","tag-run-windows-apps-on-mac","tag-wine-mac"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/comments?post=1541"}],"version-history":[{"count":1,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1541\/revisions"}],"predecessor-version":[{"id":1543,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/posts\/1541\/revisions\/1543"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media\/1545"}],"wp:attachment":[{"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/media?parent=1541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/categories?post=1541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zahiralam.com\/blog\/wp-json\/wp\/v2\/tags?post=1541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}