I downloaded a source code of a C# .NET application, because it was the only thing working I've found.
Fact is, I don't know this language, and I only have to do 2 adjustments in the code, so I'll ask you guys :D Hope someone can help me here
- Code: Select all
public static void Main(string[] args)
{
if (!AuthClass.AuthCheck())
MessageBox.Show("Not an administrator","Need more privileges",MessageBoxButtons.OK,MessageBoxIcon.Stop);
else
MessageBox.Show("Preparing to install\n\n(Nothing will install... Just for demo)","Admin OK",MessageBoxButtons.OK,MessageBoxIcon.Information);
}
instead of
- Code: Select all
MessageBox.Show("Not an administrator","Need more privileges",MessageBoxButtons.OK,MessageBoxIcon.Stop);
there should be nothing. But when I just simply remove it, and type
- Code: Select all
;
And the other adjustment :
instead of
- Code: Select all
MessageBox.Show("Preparing to install\n\n(Nothing will install... Just for demo)","Admin OK",MessageBoxButtons.OK,MessageBoxIcon.Information);
the program should open "c:\documents and settings\all users\application.exe"
Can somebody please help? Thanks in advance




