ByChilavert Posted April 12, 2015 Share Posted April 12, 2015 Merhaba Arkadaşlar AMS'de Butonlar Oluşturup Bu Butonları Tıkladığım Zaman Windows Güncellemelerini Sırayla Yüklemesini İstiyorum. Bunu Nasıl Yapabilirim. Örnek Gösterebilirseniz Memnun Olurum. Link : http://www.mediafire.com/download/elod6ma4dlat2u3/My+Project.autoplay Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted April 12, 2015 Editor Share Posted April 12, 2015 Öncelikle windows güncelleme dosyalarını bi sunucudan direk çekebilmeniz lazım. indirilen paketler exe uzantılı ise File.Run("exeismi.exe /quiet"); şeklinde kurabilirsiniz. şayet msu uzantılı dosya ise File.Run("wusa.exe Windows6.1-KB123456-x86.msu /quiet /norestart"); şeklinde kurabilirsiniz. Quote Link to comment Share on other sites More sharing options...
ByChilavert Posted April 12, 2015 Author Share Posted April 12, 2015 (edited) Güncellemeleri Apup_1_4_38 Programı İle İndirdim. İndirdiğim Windows Updateleri Sırayla Kurmak İstiyorum Sizin Belirtiğiniz Şekilde Yapabiliyormuyum. Birde Sistemdeki Yüklü Güncellemeleri Nasıl Kontrol Ettirip Yükleyebilirim. Edited April 12, 2015 by ByChilavert Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted April 12, 2015 Editor Share Posted April 12, 2015 Luacom pluginini aktif et. function WMIDateStringToDate(dtmDate) if dtmDate then dtmDate = tostring(dtmDate); return (String.Mid (dtmDate, 7, 2) .. "/" .. String.Mid (dtmDate, 5, 2) .. "/" .. String.Left(dtmDate, 4) .. " " .. String.Mid (dtmDate, 9, 2) .. ":" .. String.Mid (dtmDate, 11, 2) .. ":" .. String.Mid (dtmDate, 13, 2) ); else return ""; end end function Escape(v) if (v == nil) then return ""; end if (type(v) == "table") then return Table.Concat(v, ", "); end if (type(v) == "boolean") then if (v == true) then return "Yes"; else return "No"; end end return v; end TreeList.ClearColumns("Plugin1"); TreeList.ClearRows("Plugin1"); result = TreeList.AddColumn("Plugin1", "Caption", 100); result = TreeList.AddColumn("Plugin1", "Description", 100); result = TreeList.AddColumn("Plugin1", "HotFixID", 100); result = TreeList.AddColumn("Plugin1", "InstallDate", 100); result = TreeList.AddColumn("Plugin1", "Status", 100); local sOutput = ""; local sOutputTitle = "Computer: localhost\r\n==========================================\r\n\r\n"; local oWMIService = luacom.GetObject("winmgmts:\\\\localhost\\root\\CIMV2"); local oColItems = oWMIService:ExecQuery("SELECT * FROM Win32_QuickFixEngineering", "WQL", 48); if oColItems then local oEnum = luacom.GetEnumerator(oColItems); local oItem = oEnum:Next(); while oItem do result = TreeList.AddRow("Plugin1",Escape(oItem:Caption()) .. "|" ..Escape(oItem:Description()).."|".. Escape(oItem:HotFixID()).. "|" .. Escape(oItem:InstalledOn()) .."|".. Escape(oItem:Status()), nil, nil, nil); oItem = oEnum:Next(); end else Dialog.Message("Error", "Update ler alınamadı"); end Güncellemeleri çekmek istediğin butona yaz. Ben treelist e ekledim. Quote Link to comment Share on other sites More sharing options...
ByChilavert Posted April 12, 2015 Author Share Posted April 12, 2015 Plugini Aktif Ettim Daha Sonra Treelist i Tıkladım Script Ekranından Hangi Alana Ekleme Yapmam Lazım Kusuruma Bakma Sizler Kadar İyi Değilim AutoPlay'da Konuda Örnek Olarak Belirttiğim Projede Örnek Gösterebilirsen Çok Memnun Olurum Zamanın Yoksada Kısmet Değilmiş Diyelim Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted April 12, 2015 Editor Share Posted April 12, 2015 Butona çift tıkla OnClick eventı var oraya yazıcan. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.