Document Icon Troubles

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Document Icon Troubles

Post by johnmiller1950 » Wed May 29, 2013 10:29 am

Greetings All,

I have written a Windows program that allows the user to double click a document with the extension ".KEWO".
In the "Stand Alone Application Settings . . ." I selected two icons, one for the application and one for application documents.

Next I adjusted the registry settings using the code below:

-- ASSIGN ".KEWO" AS THE DOCUMENT FILETYPE
get setRegistry("HKEY_CLASSES_ROOT\.kewo\","KE Work Orders")

-- SET A CLASS FOR THE APPLICATION
get setRegistry("HKEY_CLASSES_ROOT\KE Work Orders\","KE Work Orders Document")

-- ASSIGN "KE WORK ORDERS" AS THE APP WHICH IS OPENED WHEN A DOCUMENT IS DOUBLE CLICKED
get setRegistry("HKEY_CLASSES_ROOT\KE Work Orders\shell\open\command\", "C:\Program Files\KE Work Orders\KE Work Orders.exe%1")

-- SELECT THE DEFAULT ICON AS SET IN LIVECODE AS THE DOCUMENT ICON
get setRegistry("HKEY_CLASSES_ROOT\KE Work Orders\DefaultIcon\","C:\Program Files\KE Work Orders\KE Work Orders.exe,1")

Everything worked great until I redesigned the document icon and tried to change it.

I have reset the icon in the "Stand Alone Application Settings . . ." and rerun the "Save As Standalone application . . ."
I have shut the computer down and restarted.
I have reset the registry.

My documents continue to show the original icon.

Am I missing something obvious?

Any help will be appreciated.

John Miller

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Document Icon Troubles

Post by johnmiller1950 » Wed May 29, 2013 12:45 pm

OK ! I have worked a little more on this. I opened a new main stack, copied the card from the original stack,
deleted the original stack, renamed the new stack, set the icons in the new stack, and restarted the computer.

The old icon still popped up.

This must be a Windows issue. The registry must be holding a value that I can't see.

Any ideas?

John Miller

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Document Icon Troubles

Post by johnmiller1950 » Wed May 29, 2013 8:55 pm

Well, it seems there is a lot of interest in my post, but not many answers.

I imported my standalone app onto a new windows install. I set the registry settings and
imported some documents. B-I-N-G-O !! Everything is as it should be. Now I am a little
muddled. Is this a windows issue or a live code problem?

I'd love to hear from some of you.

John Miller

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Document Icon Troubles

Post by johnmiller1950 » Thu May 30, 2013 11:46 am

WELL, WELL, WELL !!!

I woke up this morning, and all my icons were fixed. The elves must have been busy.

This kind of thing really gets me. If I had known that Windows was going to reset
something in the middle of the night, I wouldn't have spent hours trying to
figure things out.

Post Reply