How To Open Source Code Exe

Documenting codes is a boring and time taking process, it can be done manually with comments or by creating configuration files which can help programmers to get acquainted with the code. Even after the comments or configuration files are created manually it can be difficult for a programmer to set up project specific settings like platform, target assembly name, solution name, etc.

In the world today, there is still a secretive movement to explain open source code examples. You do not need to be an expert programmer, but these examples can make things so much easier for you. In this article I will explain how to work with an open source code example and automate processes that can become very challenging.

How to view .Net application source code and hiding it


Have you ever liked an application to the point that you want to view its source code? Well, I have been there. For .Net executable files and libraries such as DLL files, viewing the source code is a piece of cake as long as the code is not obfuscated by the developer. In this article, we are going to view the source code of a .Net DLL file as well as obfuscating it. The process of viewing the source code of an executable file is the same.

To create a DLL you can check this article of mine

Viewing source code using JetBrains dotPeek

JetBrains dotPeek decompiles an executable file or DLL/.exe file written using .Net to their equivalent C# code.

Installing dotPeek

  • Download JetBrains dotPeek from JetBrains
  • Run the setup and install free .Net decompiler and assembly tools.

Decompiling the code

  1. Open dotPeek
  2. File -> Open -> navigate to your project -> select your .DLL/.exe file
  3. Your project will be listed in the projects on our dotPeek under Assembly Explorer
  4. Click your project and find the classes to view the source code

My file is called MyCalculator.dll and bellow is the source code

Obfuscating the source code

For more obfuscating tools both open source and paid versions check this NuGet obfuscator article

In this article, I’m using one from the article, and its called Eazfuscator.NET to hide source code for a C# application. I will be using a simple C# calculator. You need to download and install Eazfuscator.NET here.

NB: Eazfuscator.NET is not free since version 3.4 but it has a trial version and the last free version 3.3 does not support .Net 4.5 and higher

Steps for hiding the source code

  1. Open your application in Visual Studio
  2. Change your project from debug mode to Release modeAlt Text
  3. Open Eazfuscator.NET then drag and drop your project from solution explorer to protect itAlt Text
  4. Rebuild your project and click reload all

If you open and check your .exe/.DLL file using dotPeek you will notice that your source code is now obfuscated.

Running EXE Files (Windows)

  1. 1Double-click an EXE file to run it. EXE files are Windows executable files, and are designed to be run as programs. Double-clicking any EXE file will start it.
    • If the EXE file was downloaded from the internet, you’ll be asked to confirm that you want to run it. Be wary when running EXE files from unknown sources, as this is the easiest way to get infected with a virus. Never open an EXE file downloaded as an email attachment, even if you know the sender.
    • EXE files may not run properly if they were designed for an outdated version of Windows. You can try adjusting the compatibility settings by right-clicking on the file, selecting “Properties”, and then clicking the Compatibility tab. You can set what version of Windows you want run the EXE file as, but this is not guaranteed to solve the problem.
  2. 2Open the Registry Editor if you can’t run EXE files. If you get error messages when you try to run an EXE file or nothing happens, there may be a problem with your Windows registry settings. Editing your registry may seem a little daunting, but it should only take a few minutes.[1]
    • To open the Registry Editor, press the Windows key + R and type regedit.
  3. 3Navigate to .HKEY_CLASSES_ROOT\.exe. Use the navigation tree on the left to open this directory.
  4. 4Right-click on the “(Default)” entry and select “Modify”. This will open a new window.
  5. 5Type .exefile into the “Value data” field. Click OK to save the changes.
  6. 6Navigate to .HKEY_CLASSES_ROOT\exefile. Use the navigation tree on the left to open this directory.
  7. 7Right-click on the “(Default)” entry and select “Modify”. This will open a new window.
  8. 8Enter ."%1" %* into the “Value data” field. Click OK to save the changes.
  9. 9Navigate to .KEY_CLASSES_ROOT\exefile\shell\open. Use the navigation tree on the left to open this directory.
  10. 10Right-click on the “(Default)” entry and select “Modify”. This will open a new window.
  11. 11Enter ."%1" %* into the “Value data” field. Click OK to save the changes.
  12. 12Reboot your computer. After editing the three entries above, close the Registry Editor and reboot your computer. You should be able to open EXE files again. It is highly recommended that you try to track down what caused this problem in the first place. You may have a virus or malware infection, which could cause the same problem again in the future. Click here for instructions on finding and removing viruses.

How do I open an EXE file in Windows 10?

Methods to Open . EXE Files in Windows 10

  1. Press Window + R on your system and type cmd to launch Command prompt.
  2. On the command prompt, type regedit and press enter.
  3. Registry Editor will appear on the screen, in the left pane, click HKEY_CLASSES_ROOT.exe.
  4. In the right pane, you’ll see Registry keys.

How do I install an EXE file on my PC?

You can follow the steps below to install an application from an .exe file.

  1. Locate and download an .exe file.
  2. Locate and double-click the .exe file. (It will usually be in your Downloads folder.)
  3. A dialog box will appear. Follow the instructions to install the software.
  4. The software will be installed.

How can I tell if an EXE file has a virus?

If you found the .exe you want to scan in the Windows task manager and you’re not sure of its location, then right click it and choose “open file location”. The file should then automatically be highlighted. Now right click the file once and scan it. If it’s marked as safe, then it’s probably safe to be on your PC.

Running EXE Files (OS X)

  1. 1Understand the process. EXE files are not designed for OS X, so you’ll need to use special software to get them to run. You’ll be installing the open-source “wine” utility, which adds a Windows “wrapper” to the EXE file, giving it access to the essential Windows files that it needs to run. The wine utility does not work with every Windows EXE file, and some programs work better than others. You do not need a Windows disc to install wine.
  2. 2Download and install Xcode from the Mac App Store. This is a free development tool that is required in order to compile software code. You won’t be using it directly, but the tools you’ll be installing to open EXE files relies on it.
    • Start Xcode after you finish downloading it, and click the “Xcode” menu. Select “Preferences” and then click the “Downloads” tab. Click the Install button next to “Command Line Tools”.
  3. 3Download and install MacPorts. This is a free utility that simplifies the compiling process, which you’ll be using to build your version of wine. You can download MacPorts from Click the link for the version of OS X that you are using, and then double-click the .pkg file that is downloaded to your computer to install MacPorts.
  4. 4Open the Terminal. You’ll need to use the Terminal to adjust some of MacPorts’ settings. You can open the Terminal from the Utilities folder.
  5. 5Copy and paste the following command. Paste this command into the Terminal window and press Return: echo export PATH=/opt/local/bin:/opt/local/sbin:\$PATH$’\n’export MANPATH=/opt/local/man:\$MANPATH | sudo tee -a /etc/profile
  6. 6Enter your admin password. You will be prompted for your admin password before the command can run. You won’t see anything as you type the password. Press Return after you have finished typing the password. If you don’t have a password associated with the admin account, the process will fail.
  7. 7Copy and paste the following command. This command will tell MacPorts whether or not you have a 64-bit system. Paste the following command and press Return: if [ `sysctl -n hw.cpu64bit_capable` -eq 1 ] ; then echo “+universal” | sudo tee -a /opt/local/etc/macports/variants.conf; else echo “n/a”; fi
  8. 8Enter the command to agree to the Xcode license. This quick command will tell Xcode that you agree to the license agreement, allowing you to compile code. Close and reopen the Terminal window after running this command:
    • sudo xcodebuild -license
  9. 9Enter the command to install wine. Once you’ve reopened the Terminal window, you can start installing wine. You may be prompted for the admin password again. The installation process may take a while to complete. You’ll know that it’s finished when you are returned to the Terminal input:
    • sudo port install wine
  10. 10Navigate to the location of the EXE file. Use the cd command to navigate to the location that your EXE file is stored on your Mac. You’ll need to do this through the Terminal.
  11. 11Use wine to run the EXE file. Enter the following command to run an EXE file that’s in your current directory. Replace fileName with the actual file’s name:
    • wine fileName.exe
  12. 12Use the program as you normally would. If the EXE file is a standalone program, you’ll be able to start using it immediately. If it’s a setup file for a program, you’ll be able to proceed through the installation prompts as if you were using Windows.
    • Not every program works with wine. For a full list of compatible programs, visit
  13. 13Open programs that have been installed. If you used an EXE file to install a program, you’ll need to use wine to run the installed program file.
    • Type cd ~/.wine/drive_c/Program\ Files/ to open the Program Files directory that your wine programs are installed to.
    • Type ls to see a list of all of your installed programs. Type cd programName to open a program’s directory. If the program’s directory has a space, you’ll need to include a \ before the space. For example, Microsoft Office would be cd Microsoft\ Office.
    • Type ls again in the program’s directory to find the EXE file.
    • Type wine fileName.exe to run the program.
  14. 14Install the Mono libraries if the program requires .NET. .NET is a software library for many Windows programs, and Mono is the open-source replacement that wine can use. you only need to install this if your programs require .NET.[2]
    • Type sudo port install winetricks and press Return.
    • Type winetricks mono210 and press Return to install Mono.


A book discussing various aspects of Open Source Code Exe and how to get started. It includes orders and commands, languages, templates, data types, and events. The values of the tools were obtained from the online database. At times it is interesting to read a book from a different perspective. To learn more about this open source code exe review the link above…

Similar Posts


No Comment.