Executable directory where application is running from?

This is the first post on google so I thought I’d post different ways that are available and how they compare. Unfortunately I can’t figure out how to create a table here, so it’s an image. The code for each is below the image using fully qualified names. My.Application.Info.DirectoryPath Environment.CurrentDirectory System.Windows.Forms.Application.StartupPath AppDomain.CurrentDomain.BaseDirectory System.Reflection.Assembly.GetExecutingAssembly.Location System.Reflection.Assembly.GetExecutingAssembly.CodeBase New … Read more

How to create a desktop icon with Inno Setup

In [Files] section, you install your giotto.ico to the application folder (you may want to install the icon only when the desktopicon task is selected). In [Icons] section, you create the desktop icon using the installed giotto.ico (when the desktopicon task is selected). #define SourcePath “C:\Users\PycharmProjects\GIOTTOconverter\dist” #define MyAppName “GIOTTO” #define MyAppExeName “GIOTTO.exe” #define MyAppIcoName “giotto.ico” … Read more

How To Store Files In An EXE

I wouldn’t code my own installer, but if you truely want to embed files into your assembly you could use strongly typed resources. In the properties dialog of your project open up the “Resources” tab and then add your file. You’ll then be able to get the file using: ProjectNamespace.Properties.Resources.MyFile Then you’ll be able to … Read more

Meaning of a Common String In Executables?

Interesting question. Since I didn’t know the answer, here are the steps I took to figure it out: Where in the file does the string occur? strings -otx /bin/gzip | grep AWAVAUATUSH 35e0 AWAVAUATUSH 69a0 AWAVAUATUSH 7920 AWAVAUATUSH 8900 AWAVAUATUSH 92a0 AWAVAUATUSH Which section is that in? readelf -WS /bin/gzip There are 28 section headers, … Read more

Where is the difference between “binaries” and “executables” in the context of an executable program?

An executable file is one which can be executed; you would run it on the commandline by writing the name of the file itself as the command. On Unix systems, the file’s “executable” flag must also be set. On Windows, the file’s extension must be one of a fixed set of executable file extensions, including … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)