CodeExplorer Posted November 15, 2013 Share Posted November 15, 2013 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 2 Link to comment
Dreamer Posted November 15, 2013 Share Posted November 15, 2013 outstanding as always Link to comment
CodeExplorer Posted May 11, 2014 Author Share Posted May 11, 2014 (edited) 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, 2014 by CodeCracker 9 Link to comment
JeRRy Posted May 12, 2014 Share Posted May 12, 2014 @CodeCracker Make NetBox4.5 for Windows XP 3 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now