So how do I take this encrypted program with a stub, and set an icon for it?
I've tried something like:
string S = "/unsafe /target:winexe";
if (textBox2.Text != string.Empty) { S += " /win32icon:" + textBox2.Text; }
textBox2 is the file path of the icon file.
I then compile it using:
CompilerResults r = new CSharpCodeProvider(
new Dictionary<string, string>() { { "CompilerVersion", "v3.5" } }).CompileAssemblyFromSource(p, s);
s is the source file, and p is based on the user's settings.
So, why isn't it working?

New Topic/Question
Reply



MultiQuote




|