PDA

View Full Version : Help with windows directory (All)



iissa
07-27-2005, 08:47 AM
I am not sure if this has been answered previously in a post, but i could not find the post any where. My dilemma is i have a .reg file that i need all my clients to run to register a component.

[HKEY_CLASSES_ROOT\CLSID\{15B782AF-55D8-11D1-B477-006097098764}\InprocServer32]
"ThreadingModel"="Apartment"
@="c:\\windows\\system32\\Macromed\\AUTHORWA\\awswax. ocx"

if i run this on a pc, which has c:\windows as the root directory it works fine, but obviously it wont work on c:\winnt.

i was wondering if there is something like the following i can do that will register the component on any operating system.

i have tried the following but it would not work, not sure if i have the syntax incorrect or if its possbile at all.

[HKEY_CLASSES_ROOT\CLSID\{15B782AF-55D8-11D1-B477-006097098764}\InprocServer32]
"ThreadingModel"="Apartment"
@="%windir%\\system32\\Macromed\\AUTHORWA\\awswax.ocx"

any suggestions would be very much appreciated :

motoflop
07-27-2005, 11:41 AM
Why cannot you use regsvr32.exe? I think that's normal way to register components. Try for example "regsvr32 /s awswax.ocx". The awswax.ocx should be on current directory while doint that or you have to specify full path to it.

iissa
07-27-2005, 12:25 PM
Thank you for the reply, but the thing is that i dont want my customers to type anything in, you see i just want them to click on a file and just install a software, as i am distributing other bits and peices with the software itself. I want as user friendly for the end user as possible. and it does require the fullpath for the file to be registered.

motoflop
07-28-2005, 07:57 AM
User don't have type anything if you put that command into cmd or bat file, for example "install.cmd". When user clicks the file, windows will start command prompt and run commands stored into the file.