can i modify activex installation path ?

Delphi'de kod yazma ile ilgili sorularınızı bu foruma yazabilirsiniz.
Cevapla
Kullanıcı avatarı
mia
Üye
Mesajlar: 239
Kayıt: 17 Nis 2015 02:18

can i modify activex installation path ?

Mesaj gönderen mia »

i wonder how can i change installation path of ocx ? basically installation folder is

Folder: C:\Windows\Downloaded Program Files\

can i change the installation to another folder ?

as example

Folder:
C:\User\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\Low\
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ
in god i trust with every movement i do
graduated student and looking for knowledge
Kullanıcı avatarı
G.Arkas
Üye
Mesajlar: 829
Kayıt: 01 Eki 2007 07:16
Konum: İstanbul
İletişim:

Re: can i modify activex installation path ?

Mesaj gönderen G.Arkas »

Actually i don't now but maybe from registry or before unregister ocx file with regsvr32 after reinstall with new path.

look this
http://digital.ni.com/public.nsf/allkb/ ... F700615B7A
Resim
Kullanıcı avatarı
mia
Üye
Mesajlar: 239
Kayıt: 17 Nis 2015 02:18

Re: can i modify activex installation path ?

Mesaj gönderen mia »

i wonder how i found some activex add ons that maded with delphi have specific path
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ
in god i trust with every movement i do
graduated student and looking for knowledge
Kullanıcı avatarı
mrmarman
Üye
Mesajlar: 4741
Kayıt: 09 Ara 2003 08:13
Konum: İstanbul
İletişim:

Re: can i modify activex installation path ?

Mesaj gönderen mrmarman »

You must travel in the Registry.

(1) Goto "\TypeLib" under "HKEY_CLASSES_ROOT"
(2) Do "GetKeyNames" to a stringlist
(3) Do a loop under "\TypeLib" and open each list members like this

Kod: Tümünü seç

        if Reg.OpenKey('\TypeLib\'+Trim(slList[idx]), False) then ...
- Now you are in a registry folder like this : "HKEY_CLASSES_ROOT\TypeLib\{BB599B3B-6C2D-4F1B-A8C4-A354B712A0B9}"
(4) Try to open this key '1.0\0\win32'
(5) if success get first string value to a variable and ask if there is ".OCX" extension. İf exists then take it on a result list.

Now you can do search in result list which is outside the "c:\windows" path.. :idea:
Resim
Resim ....Resim
Kullanıcı avatarı
mia
Üye
Mesajlar: 239
Kayıt: 17 Nis 2015 02:18

Re: can i modify activex installation path ?

Mesaj gönderen mia »

thank you very much mrmarman and Garkas that was helpful
بِسْمِ اللهِ الرَّحْمنِ الرَّحِيمِ
in god i trust with every movement i do
graduated student and looking for knowledge
Cevapla