28 Ene 2011 18:45
voy a probarlo y te comento
ProgressBarX.CreateObject("Plugin3", 0, SS_MediaPlayer, OS_Horizontal, true);
for k in pairs(instalar) do
TreeList.InsertRow("Plugin2", k-1, titulo[instalar[k]], nil, 0);
TreeList.SetCellText("Plugin2", k-1, 1, "Instalando...");
File.Run(programa[instalar[k]], "", "", SW_SHOWNORMAL, true)-- instala el programa
TreeList.SetCellText("Plugin2", k-1, 1, "Instalado");
ProgressBarX.SetCurrentPos("Plugin1", porcentaje*k)
end
for k in pairs(instalar) do
TreeList.InsertRow("Plugin2", k-1, titulo[instalar[k]], nil, 0);
TreeList.SetCellText("Plugin2", k-1, 1, "Instalando...");
File.Run(programa[instalar[k]], "", "", SW_SHOWNORMAL, true)-- instala el programa
TreeList.SetCellText("Plugin2", k-1, 1, "Instalado");
ProgressBarX.SetCurrentPos("Plugin1", porcentaje*k)
ProgressBarX.SetCurrentPos("Plugin3", porcentaje)
end
DialogEx.Show("Dialog1", true, nil, nil)
Page.Jump("Pagina 4");
seleccion = ListBoxEx.GetCheckedItems("Plugin1");
if (seleccion ~= nil) then
Page.Jump("Page2");
else
Dialog.TimedMessage("Por favor Espere...", "Elija algún Programa para Instalar...", 2000, MB_ICONINFORMATION);
end
programa = ListBoxEx.GetItemData("Plugin1", nIndex);
--Calcula el % que deberá subir la barra cada vez que termine de instalar un programa.
local porcentaje = {};
porcentaje = Math.Round(100/Table.Count(seleccion),0)
File.Run(programa, "", "", SW_SHOWNORMAL, true);
ProgressBarX.SetCurrentPos("Plugin2", porcentaje);
nIndex = ListBoxEx.AddItem("Plugin1", "<b>Burnaware Pro</b>", "Programa para grabar todo tipo de Cd´s y Dvd´s incluido en formato Blueray", "AutoPlay\\Docs\\ccsetup\\ccsetup.exe", "", 10, LBXITEM_HTML, 0, {46819,10092543}, {46819,10092543}); --
ListBoxEx.SetItemGStyle("Plugin1", nIndex, BACKWARD_DIAGONAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, true);
ListBoxEx.SetItemIconSize("Plugin1", nIndex, 16);
nIndex = ListBoxEx.AddItem("Plugin1", "<b>Seguridad</b>", "", "", "", 2, LBXITEM_HTML, 0, {16316664,16764057,16316664}, {16316664,16764057,16316664}, {16316664,16764057,16316664});
ListBoxEx.SetItemGStyle("Plugin1", nIndex, VERTICAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemDataEx("Plugin1", nIndex, "open");
ListBoxEx.SetItemCheckBoxVisible("Plugin1", nIndex, false);
ListBoxEx.SetItemIconSize("Plugin1", nIndex, 16);
nIndex = ListBoxEx.AddItem("Plugin1", "<b>CCleaner</b>", "Programa para la limpieza de windows incluido el registro", "AutoPlay\\Docs\\ccsetup\\ccsetup.exe", "", 23, LBXITEM_HTML, 0, {46819,10092543}, {46819,10092543});
ListBoxEx.SetItemGStyle("Plugin1", nIndex, BACKWARD_DIAGONAL, LBXISTATE_NORMAL);
ListBoxEx.SetItemVisible("Plugin1", nIndex, true);
ListBoxEx.SetItemIconSize("Plugin1", nIndex, 16);
Path = tbChecks[count]["Data"]
File.Run(Path, "", "AutoPlay\\Docs", SW_SHOWNORMAL, true);