Real Software Forums

The forum for Real Studio and other Real Software products.
[ REAL Software Website | Board Index ]
It is currently Sun Nov 17, 2019 2:14 am
xojo

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Win 7 file associations...
PostPosted: Mon Jan 24, 2011 7:41 pm 
Offline

Joined: Wed Mar 01, 2006 6:48 pm
Posts: 199
Hi Guys,

I'm sure this has been asked and I'm not searching for the right thing... I have searched for file associations and not found the answer.

I have an app that parses instrument log files. These log files end with the extension: .ekg

I have created a "filetypes" and it is in my project. I installed my .EXE and the required DLLs. I have tried selecting one of these log files (.ekg) and right clicking to select open with. I then navigated to my EXE selected it and checked the "always" box. But my EXE does not show up in the other programs and no matter how many times I try it will not allow me to set it.

I've tried going to file associations and I get the same behavior. Is this a Win 7 issue because the same actions seem to work just fine on Win XP.

Thanks in advance.

_________________
Colorado, USA
Primary: BioMedical/Custom Applications - www.sysdyn.com
Secondary: Handheld/Custom Applications - www.mrhswco.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Win 7 file associations...
PostPosted: Mon Jan 24, 2011 9:22 pm 
Offline
User avatar

Joined: Fri Sep 30, 2005 11:48 am
Posts: 3554
Location: Lenexa, KS
This is generally done in the installer. We use Inno Setup to create the file associations.

I think if you search on Inno Setup you can see the file association setup. It's part of my video tutorial series and I think there's a partial example in the ARBP Source Code Repository. Look in the [Registry] section of the Inno script file.

_________________
Bob K.

A blog about being a Real Studio/Xojo developer at http://www.bkeeneybriefs.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Win 7 file associations...
PostPosted: Tue Jan 25, 2011 8:46 am 
Offline

Joined: Wed Mar 01, 2006 6:48 pm
Posts: 199
Thanks Bob... I'll take a look at Inno Setup.

I still cannot understand however why I cannot set my preference using "Open with...". It just doesn't seem to work and I am an administrator user.

M

_________________
Colorado, USA
Primary: BioMedical/Custom Applications - www.sysdyn.com
Secondary: Handheld/Custom Applications - www.mrhswco.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Win 7 file associations...
PostPosted: Tue Jan 25, 2011 8:54 am 
Offline
User avatar

Joined: Wed Nov 15, 2006 3:50 pm
Posts: 2353
Location: England
Thoughts (may be nothing):
a) Is anything else already set up to deal with this extension?
b) Have you set your app to accept this file type in a drag/drop operation?


Top
 Profile  
Reply with quote  
 Post subject: Re: Win 7 file associations...
PostPosted: Tue Jan 25, 2011 2:24 pm 
Offline

Joined: Wed Mar 01, 2006 6:48 pm
Posts: 199
jefftullin wrote:
Thoughts (may be nothing):
a) Is anything else already set up to deal with this extension?
b) Have you set your app to accept this file type in a drag/drop operation?


a) - No... I looked in the registry and there is no handler for it. Right now it seems to open with notepad and I cannot figure out how to kill that association.

b) - Yes. If I drop an EKG file on the icon it opens beautifully.

_________________
Colorado, USA
Primary: BioMedical/Custom Applications - www.sysdyn.com
Secondary: Handheld/Custom Applications - www.mrhswco.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Win 7 file associations...
PostPosted: Fri Mar 04, 2011 4:27 am 
Offline

Joined: Mon Jan 22, 2007 9:47 am
Posts: 131
you really want to use an installer (InnoSetup is quite easy to get started - you probably find examples here or on the NUG-archives)...

if you don't have a software properly installed (and therefore registered somewhere deep in the registry), it won't be possible to use the "open with" and set it to a software which isn't "officially recognized/registered" by the OS. at least on Win7.
for example: just copy the realstudio-folder from one machine to another. no way to set the file associations for "rbp, rbvcp, ..." to realstudio. and if you push the 'Associate File Types' in the IDE, all it does is (try to) launch the installer to do this (which obviously won't exist on the machine you just copied the software-folder).

i'm sure you could somehow do all the registry-stuff yourself. but you save yourself a lot of time and trouble if you don't - and quite simply do it the way customers expect a windows software: use a installer.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group