TLnY Posted June 12, 2010 Share Posted June 12, 2010 Kintaro'nun dediği doğru.İni'den yanlış biçimde okutuyosun.Eğer sorun hala devam ediyorsa bizimle paylaşmadığın bişey var demektir.. Hayır yok. AMS 8.0 Personal Edition kullanıyorum. StatusDlg.Show() -- ilerleme cubugunu goster HTTP.Download("http://www.talpsoftware.co.cc/at.rtf", "Autoplay\\Docs\\at.rtf", 80, 20, nil, nil) -- guncelleme dosyasini indir StatusDlg.Hide() -- ilerleme cubugunu gizle[/CODE] Bu kısımda dosyayı indirmiyor. Ayrıca ilerleme çubuğunun olduğu pencere de gözükmüyor. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Bu arada XML'yi de yanlış okutuyomuşun onu farkettim XML.Load(_DesktopFolder.."\\tneyse artık.xml") XML.GetValue("update/winamp/version") Olarak okut bakalım sorun çıkacak mı? Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 12, 2010 Share Posted June 12, 2010 Bu arada XML'yi de yanlış okutuyomuşun onu farkettim XML.Load(_DesktopFolder.."\\tneyse artık.xml") XML.GetValue("update/winamp/version") Olarak okut bakalım sorun çıkacak mı? Evet şimdi oldu İşime çok yaracayak bu. Gidişata göre bir AIO yapmayı planlıyorum da, Programların yeni sürümleri otomatik güncelenebilecek. Umarım başarırım. Yardımlarınızı esirgemediğiniz için teşekkür ederim Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 12, 2010 Share Posted June 12, 2010 (edited) Arkadaşlar birşey farkettim bu eklemeyi de ben yapayım dedim. HTTP.Download("http://wwww.talpsoftware.co.cc/tlny.xml", _TempFolder .. "\\tlny.xml", 80, 20, nil, nil) -- xml i indir XML.Load(_TempFolder.."\\tlny.xml") -- xml i hafizaya yükle xml_version = XML.GetValue("update/winamp/version"); -- xml deki version noyu al ini_version = INIFile.GetValue("Autoplay\\Docs\\tlny.ini", "update", "winamp") -- ini deki version noyu al nmbXml = String.ToNumber(xml_version) -- alinan degeri sayıya cevir nmbIni = String.ToNumber(ini_version) -- alinan degeri sayiya cevir if nmbIni < nmbXml then -- eger inideki xml den kucukse StatusDlg.Show() -- ilerleme cubugunu goster HTTP.Download("http://www.talpsoftware.co.cc/at.rtf", "Autoplay\\Docs\\at.rtf", 80, 20, nil, nil) -- guncelleme dosyasini indir StatusDlg.Hide() -- ilerleme cubugunu gizle INIFile.SetValue("Autoplay\\Docs\\tlny.ini", "update", "winamp", "350"); -- sürüm atlat Dialog.Message("Tebrikler", "Güncelleme başarılı") -- basarili mesajini ver else -- surumler aynı ise Dialog.Message("Tebrikler", "Güncellemeye gerek yok") -- guncel mesajini ver end[/CODE] Kodu bu şekilde düzenledim. Yani, yalnızca bir satır ekledim. Bu sayede ini dosyası güncellenerek Güncellemeye gerek yok mesajı çıkıyor. [CODE]INIFile.SetValue("Autoplay\\Docs\\tlny.ini", "update", "winamp", "350"); -- sürüm atlat[/CODE] Kendinize göre düzenleyin.. Edited June 12, 2010 by TLnY Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Bu arada bende sendeki bi yanlışlığı düzelteyim. HTTP.Download("Please register to see this content. _TempFolder .. "\\tlny.xml", 80, 20, nil, nil) -- xml i indir XML.Load(_DesktopFolder.."\\tlny.xml") XML'yi indirdikten sonra yanlış XML'yi hafızaya aldırıyosun. XML.Load(_TempFolder.."\\tlny.xml") yapacaksın Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 12, 2010 Share Posted June 12, 2010 XML.Load(_DesktopFolder.."\\tneyse artık.xml") Bu mesajınıza bakarak o şekilde yapmıştım Bendeki de şans, aynı xml masaüstünde de vardı. Demek onu yüklüyormuş. Hemen düzenliyorum. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Ben hemen örnek hazırlamak için masaüstüne koymuştum xml'yi sizi yanıltacağını düşünmüyodum ama neyse geç de olsa hatayı gördük Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 12, 2010 Share Posted June 12, 2010 Ya arkadaşlar, utanarak söylüyorum ben bu güncellemeyi yeniden çalıştıramamaya başladım. Saçmalık bu. Gündüz bir kere çalışmıştı. Şimdi güncellemeye gerek yok diyor. Oysa ki ini de 349 var; xml de 350 var. Güncellemiyor. Çıldırmak üzereyim. Gözlerim döndü tekrar tekrar aynı şeyleri yapmaktan.. HTTP.Download("http://wwww.talpsoftware.co.cc/tlny.xml", _TempFolder .. "\\tlny.xml", 80, 20, nil, nil) -- xml i indir XML.Load(_TempFolder.."\\tlny.xml") -- xml i hafizaya yükle xml_version = XML.GetValue("update/winamp/version"); -- xml deki version noyu al ini_version = INIFile.GetValue("Autoplay\\Docs\\tlny.ini", "update", "winamp") -- ini deki version noyu al nmbXml = String.ToNumber(xml_version) -- alinan degeri sayıya cevir nmbIni = String.ToNumber(ini_version) -- alinan degeri sayiya cevir if nmbIni < nmbXml then -- eger inideki xml den kucukse StatusDlg.Show() -- ilerleme cubugunu goster HTTP.Download("http://www.talpsoftware.co.cc/at.rtf", "Autoplay\\Docs\\at.rtf", 80, 20, nil, nil) -- guncelleme dosyasini indir StatusDlg.Hide() -- ilerleme cubugunu gizle Dialog.Message("Tebrikler", "Güncelleme başarılı") -- basarili mesajini ver else -- surumler aynı ise Dialog.Message("Tebrikler", "Güncellemeye gerek yok") -- guncel mesajini ver end[/CODE] Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Eğer bir sorun varsa şöyle yap denemek için. if satırından önceki satıra Dialog.Message(nmbIni, nmbXml) yaz ve bak bakalım iki değerde düzgün biçimde okunuyor mu?Bir tanesi okunmuyorsa sorun var demektir...Bu bnm genelde kullandığım taktiktir.. Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 12, 2010 Share Posted June 12, 2010 Eğer bir sorun varsa şöyle yap denemek için. if satırından önceki satıra Dialog.Message(nmbIni, nmbXml) yaz ve bak bakalım iki değerde düzgün biçimde okunuyor mu?Bir tanesi okunmuyorsa sorun var demektir...Bu bnm genelde kullandığım taktiktir.. Güzel yöntemmiş. Dediğiniz gibi xml dosyasındaki 350 değerini 0 olarak okuyor. Yani anladığım kadarıyla okuyamıyor. Ne yapacağım? Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Sanırım download'da sorun var.Çünkü ben verilen linke girdim ama ne xml var ne de başka bişe? Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 12, 2010 Share Posted June 12, 2010 Sanırım download'da sorun var.Çünkü ben verilen linke girdim ama ne xml var ne de başka bişe? Saçmalığa bakın hele. Yok böyle şey ya.. Saatlerim boşa gitmiş oldu. Ve bilin bakalım sorun neredeymiş.. wwww. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 12, 2010 Share Posted June 12, 2010 Programcılık böyle bir harf bie saatleri alabilir.Bundan sonra daha dikkatli olursun Quote Link to comment Share on other sites More sharing options...
DePPoL Posted June 13, 2010 Share Posted June 13, 2010 Mesela docs klasörüne indiriyor bunu biz c:\program files indirmesini nasıl sağlarız acaba ? portable programl için yapılcak.. Quote Link to comment Share on other sites More sharing options...
FİRE BİRD Posted June 13, 2010 Share Posted June 13, 2010 İşte Böyle : HTTP.Download("Please register to see this content. _ProgramFilesFolder .."\\update.exe", 20, 80) Quote Link to comment Share on other sites More sharing options...
DePPoL Posted June 13, 2010 Share Posted June 13, 2010 olmadı kardeşim Quote Link to comment Share on other sites More sharing options...
FİRE BİRD Posted June 13, 2010 Share Posted June 13, 2010 olmadı kardeşim Nasıl olmaz, sen projeni bir paylaş bakalım. Quote Link to comment Share on other sites More sharing options...
DePPoL Posted June 13, 2010 Share Posted June 13, 2010 tamam kardeşim yaptım oldu..birde 10 tane program için güncelleme bir xml de nasıl yapıcaz ya ? Quote Link to comment Share on other sites More sharing options...
FİRE BİRD Posted June 13, 2010 Share Posted June 13, 2010 Aşağıdaki kodları kendine göre uyarlayacaksın <update> <winamp> <version>350</version> <adres>http://www.siteadresi.com/winamp.exe</adres> </winamp> <winrar> <version>460</version> <adres>http://www.siteadresi.com/winrar.exe</adres> </winrar> </update>[/CODE] Quote Link to comment Share on other sites More sharing options...
DePPoL Posted June 13, 2010 Share Posted June 13, 2010 (edited) ini dosyasına ne yazıcaz direk winamp kalsa olurmu öle ? birde sadece o verdiğimi komut sadece onu işliyor diğerni işlemiyor güncelleme yoktur diyor.illa ayrı ayrı mı buton oluşturmamız lazım ? Edited June 13, 2010 by DePPoL Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 13, 2010 Share Posted June 13, 2010 Arkadaşlar aklıma birşey takıldı. Güncellemeyi ilk yaptığında sürümü 350 ye yükseltiyor. Sonra XML ye yeni sürüm no eklediğimizde 350 yazısını nasıl değiştireceğiz? Eğer değişmezse her seferinde güncelleme yapar ve bu da saçmalık olur. Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 13, 2010 Share Posted June 13, 2010 @TLnY tam olarak demek istediğin ne?Güncellemeyi başarılı biçimde yaptıktan sonra ini'deki veriyonu da 350 yapacaksın o zaman XML ile INI aynı olmuş olacak.Daha sonra Yeni versiyon güncellemesi olduğunda XML'deki yazıyı atıyorum 351 yapacaksın olup bitecek.. Quote Link to comment Share on other sites More sharing options...
TLnY Posted June 13, 2010 Share Posted June 13, 2010 @TLnY tam olarak demek istediğin ne?Güncellemeyi başarılı biçimde yaptıktan sonra ini'deki veriyonu da 350 yapacaksın o zaman XML ile INI aynı olmuş olacak.Daha sonra Yeni versiyon güncellemesi olduğunda XML'deki yazıyı atıyorum 351 yapacaksın olup bitecek.. 351 yapacağım ama, ini de 350 olarak kalacak. Bu sayede de her seferinde yeni versiyon varmış gibi görünecek.. Saçma değilmi? Quote Link to comment Share on other sites More sharing options...
DePPoL Posted June 13, 2010 Share Posted June 13, 2010 351 yapacağım ama, ini de 350 olarak kalacak. Bu sayede de her seferinde yeni versiyon varmış gibi görünecek.. Saçma değilmi? bende demin denerken farkettim elinle değiştirisen değeri güncelleme yoktur diyor ama öteki türlü hep indiriyor Quote Link to comment Share on other sites More sharing options...
MostWanted Posted June 13, 2010 Share Posted June 13, 2010 Ben sana ne diyorum.güncellemeyi yaptıktan sonra ini'deki değeri de değiştirecen 351 yapacaksın.. 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.