string Arch, Lang = Sprache.Text, Mount = MountP.Text, DVD = DVDP.Text, LP = LPP.Text, LPEXT = LPEXTP.Text, NUMBER = "5", ISO = ISOP.Text;
if (radioButton1.Checked == true)
Arch = "x64";
if (Version.Text == "Home Basic")
NUMBER = "1";
else if (Version.Text == "Home Premium")
NUMBER = "2";
else if (Version.Text == "Professional")
NUMBER = "3";
else if (Version.Text == "Ultimate")
NUMBER = "4";
else if (Version.Text == "Enterprise")
NUMBER = "1";
else if (radioButton2.Checked == true)
Arch = "x86";
if (Version.Text == "Starter")
NUMBER = "1";
else if (Version.Text == "Home Basic")
NUMBER = "2";
else if (Version.Text == "Home Premium")
NUMBER = "3";
else if (Version.Text == "Professional")
NUMBER = "4";
else if (Version.Text == "Ultimate")
NUMBER = "5";
else if (Version.Text == "Enterprise")
NUMBER = "1";
textBoxScript.Text =
"&\"C:\\Windows\\system32\\DISM.exe\" /Mount-Wim /WimFile:" + DVD + "\\sources\\install.wim /index:" + NUMBER + " /MountDir:" + Mount + "" + "\n" +
"&\"C:\\windows\\system32\\DISM.exe\" /Image:" + Mount + " /Add-Package /PackagePath:" + LP + " \n" +
"&\"C:\\windows\\system32\\DISM.exe\" /Image:" + Mount + " /Set-UILang:" + Lang + " \n" +
"&\"C:\\windows\\system32\\DISM.exe\" /Image:" + Mount + " /Set-UserLocale:" + Lang + " \n" +
"&\"C:\\windows\\system32\\DISM.exe\" /Image:" + Mount + " /Set-SysLocale:" + Lang + " \n" +
"&\"C:\\windows\\system32\\DISM.exe\" /Image:" + Mount + " /Set-InputLocale:" + Lang + " \n" +
"&\"C:\\Windows\\system32\\DISM.exe\" /Unmount-Wim /MountDir:" + Mount + " /commit \n" +
"del " + LPEXT + "\\* \n" +
"mkdir " + LPEXT + "\\* \n" +
"Expand \"" + LP + "\" -f:* \"" + LPEXT + "\"\n" +
"&\"C:\\Windows\\system32\\DISM.exe\\\" /Mount-Wim /WimFile:" + DVD + "\\sources\\boot.wim /index:2 /MountDir:" + Mount + " \n" +
"xcopy \"" + LPEXT + "\\setup\\*\" " + Mount + "\\sources\\" + Lang + "\\ /cheryki \n" +
"xcopy \"" + LPEXT + "\\sources\\license\\* " + Mount + "\\sources\\license\\" + Lang + " /cheryki \n" +
"xcopy \"" + LPEXT + "\\setup\\sources\\" + Lang + "\\*" + Mount + "\\sources\\" + Lang + "\" /cherkyi \n" +
"xcopy \"" + LPEXT + "\\sources\\license\\" + Lang + "\\* " + DVD + "\\sources\\license\\" + Lang + " /cherkyi \n" +
"xcopy \"" + DVD + "\\sources\\lang.ini " + Mount + "\\sources\\ /cheryki \n" +
"&\"oscdimg\" -n -m -b\".\\boot\\etfsboot.com\"" + DVD + "\" \"" + ISO + "ISOfile.iso\"-lGRC1CULFRER_DE_DVD";
StopScript();
listBox1.Items.Clear();
AppendLine("Languagepack is beeing integrated");
pipelineExecutor = new PipelineExecutor(runSpace, this, textBoxScript.Text);
pipelineExecutor.OnDataReady += new PipelineExecutor.DataReadyDelegate(pipelineExecutor_OnDataReady);
pipelineExecutor.OnDataEnd += new PipelineExecutor.DataEndDelegate(pipelineExecutor_OnDataEnd);
pipelineExecutor.OnErrorReady += new PipelineExecutor.ErrorReadyDelegate(pipelineExecutor_OnErrorReady);
pipelineExecutor.Start();
das ist die überarbeitete version der funktion die das script ausführt

Hilfe
Neues Thema
Antworten


Nach oben








