byhabit Posted January 11, 2015 Share Posted January 11, 2015 selam arkadaşlar çok basit bir mesele biliyorum ama bir projede birçok işlem yaptırıyorum reg kayıtları dahil fakat şu iki anahtarı bir türlü yaptıramıyorum ( Bilgisayarım sağ tık menüsüne aygıt yöneticisi ve prgrm değiştir kaldır ) örnek proje https://www.mediafire.com/?t5n97vfa34zcosp kodlar check1 = CheckBox.GetChecked("CheckBox1") check2 = CheckBox.GetChecked("CheckBox2") if check1 == true then Registry.SetValue(HKEY_CLASSES_ROOT,"CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\shell\\Ayg1t Yöneticisi\\Command","","mmc.exe devmgmt.msc",REG_SZ); end if check2 == true then Registry.SetValue(HKEY_CLASSES_ROOT,"CLSID\\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\shell\\Program kald1r veya Dei_tir\\Command","","control.exe appwiz.cpl",REG_SZ); end if check1 == true or check2 == true then Dialog.Message("test", "İşlem tamam", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); for i=1, 2 do CheckBox.SetChecked("ch"..i, false); end else Dialog.Message("test", "Seçim Yapmalısın", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1); end Quote Link to comment Share on other sites More sharing options...
byhabit Posted January 12, 2015 Author Share Posted January 12, 2015 konu güncel reg dosyası yapıp çift tıkladığımda menüler ekleniyor. aynı reg dosyasını cmd ile çalıştırdığımda yada ams ye import ettiğimde işlem yapmıyor. bana çok ilginç geldi sizce neden böyle oluyor Quote Link to comment Share on other sites More sharing options...
KintaRo Posted January 12, 2015 Share Posted January 12, 2015 AMS projenizi yönetici olarak çalıştırın ya da UAC'yi kapatın. Quote Link to comment Share on other sites More sharing options...
byhabit Posted January 12, 2015 Author Share Posted January 12, 2015 aynen bu dediklerinizi yaptım hatta güvenlik duvarını antivirüsü de kapattım ama olmuyor Quote Link to comment Share on other sites More sharing options...
byhabit Posted January 13, 2015 Author Share Posted January 13, 2015 aynı kodlar windows xp de çalışıyor şimdi denedim Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted January 18, 2015 Editor Share Posted January 18, 2015 Kayıtı yazmaya çalıştıgınız reg kaydı özel izin istiyordur muhtemelen. Reg Kaydının security ayarlarına bakınız http://prntscr.com/5txcak Quote Link to comment Share on other sites More sharing options...
byhabit Posted January 18, 2015 Author Share Posted January 18, 2015 teşekkürler biraz uzun yöntemde olsa sorunu şu şekilde düzelttim bir bat dosyası hazırladım ihtiyacım olan kodları içine ekledim sonrada bat dosyasını exe ye çevirdim projeye ekleyip çalıştırdım sorun yok. 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.