Hi made a little installer in C# with app.manifest parametter to AdministratorRequired to be able to edit the computer freely, but when I execute this code:
System.IO.Directory.CreateDirectory(cheminInstall.Text);
File.WriteAllBytes(cheminInstall.Text, Properties.Resources.Sara);
You are confusing Directory with file. You can write to a file, and save it into a directory. But can't write directly into a directory.