Simple things in a complex world
Custom files
Published on June 12, 2007 By TwoWolves In DesktopX
Have any DesktopX gadget/widget/object creators solved this problem.
 
I have created a compound object that contains two "custom files", a dll and an html file.
 
When I launch it as an object on my build machine everything is fine because Object.Directory refers to my "Current Theme" directory where they get put.
 
Now if I build it into a gadget (one binary) and deploy it to another test computer the files don't seem to extract and the gadget doesn't work properly.
 
I selected to build a gadget and have "Pro", documentation says :
 
"All the files needed by DesktopX are placed in a temporary directory when this is run, so it is still possible to access these via script."
 
Is there any way to get these custom files to deploy with the gadget like they do with a desktopX object? Or am I stuck with building an installer?
 
Thanks

Comments
on Jun 12, 2007
Nevermind, I'm being thick.

It got deployed OK, it is the security settings. I need to register the activeX component.

on Jun 12, 2007
Just a thought. I've played around with more than a few activeX components (not Stardock). Maybe you should think about setting on option on first run for the end user to permanently place/register the activex.

Not sure if it really would be noticeable in regards to resource usage but, maybe will prevent any gadget operating glitches. Just my two cents.
on Jun 13, 2007
Clearly great minds think alike - that's exactly what I have done and it works like a charm.

Thanks SS...