How to use the items
SortedDictionary
File.WriteAllBytes
To start or complete a process of installing files and folders to your computer.
Ex:
List of files:
void AlocarArquivos(){
var arquivo_e_pasta = new SortedDictionary<string, byte[]>();
arquivo_e_pasta.Add(@"\bin32\dedicated.exe", Properties.Resources.bin32_dedicated);
arquivos_e_pastas.Add(@"\sdk\player.df", Properties.Resources.PLAYER_DF_BTS);
}
And then go one by one applying this:
var enum0 = arquivos_e_pastas.GetEnumerator();
while(enum0.MoveNext()){
File.WriteAllBytes(enum0.Current.Key, enum0.Current.Value);
}
But only taking the installation progress by applying Thread.Sleep
without crashing the application.