Jump to content
Tuts 4 You

NetBox - the secret beyond!


CodeExplorer

Recommended Posts

1. First build the program!
The most important code is this:
        Process process = new Process();
        process.StartInfo.FileName = FileName;
        process.StartInfo.WorkingDirectory = Path.GetDirectoryName(FileName);
        process.StartInfo.UseShellExecute = true;
        processes.Add(process);
It is very important to set UseShellExecute to true else won't work!
And finaly the code which start the process:
        public List<Process> processes;
        void RunSelectedToolStripMenuItemClick(object sender, EventArgs e)
        {
        if (assemblieslist.Items.Count>0&&assemblieslist.SelectedIndices.Count!=0)
        {
        if (File.Exists(processes[assemblieslist.SelectedIndices[0]].StartInfo.FileName))
        {
        processes[assemblieslist.SelectedIndices[0]].Start();
        assemblieslist.Items[assemblieslist.SelectedIndices[0]].SubItems[0].Text="Running";
        }
        }
        }2. The final step is to virtualize our program
For this we use XenoCode Postbuild - the recent version
is called Spoon Studio.
This program will virtualize our program: registry and files.
Basically you should take a snapshoot before and after installing
.NET Framework.
 

Source code:

http://www.multiupload.nl/1W3RCFUF41

 

  • Like 2
Link to comment
  • 5 months later...
CodeExplorer

Source code of NetBox35SP1 and NetBox40 attached!


@serseri_1453:


I hope is this what you want!


I could also update the NetBox35SP1 and NetBox40 made package exe! If you want!

NetBox-src.zip

Edited by CodeCracker
  • Like 9
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...