Posted November 15, 201311 yr 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 programFor this we use XenoCode Postbuild - the recent versionis 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
May 11, 201411 yr Author 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 May 11, 201411 yr by CodeCracker
Create an account or sign in to comment