PDA

View Full Version : File association in SB6



NewsArchive
09-02-2007, 03:46 AM
Hi Friedrich,

It appears that SB6/SB6.5 (not sure where or when) has associated
itself with .SB5 files as well as .SB6 files. So if I double click on
a .SB5 file SB6.5 attempts to open it. This also makes it impossible
to detect if or where the SB5 exe is located in order to run the
compiler and pass it a project file.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
09-02-2007, 03:47 AM
Hi Arnór,

> It appears that SB6/SB6.5 (not sure where or when) has associated
> itself with .SB5 files as well as .SB6 files. So if I double click on
> a .SB5 file SB6.5 attempts to open it. This also makes it impossible
> to detect if or where the SB5 exe is located in order to run the
> compiler and pass it a project file.

Yes, the SB6 IDE (Gold and all later versions) associates itself with .SB5
and .SB6 files. I agree that the SB6 installer should ask if the user wants
..SB5 files to be associated with the SB6 IDE. I'll change this in the next
SB6 install image and, of course, in SB7.

You can change the following key:

HKCR\SetupBuilder5.File\Shell\open\command

Change the value data from "SetupBuilder 6 Developer" to "SetupBuilder 5
Developer"

Thank you for the hint.

Friedrich

NewsArchive
09-03-2007, 02:55 AM
Hi Friedrich,

>You can change the following key:
>
>HKCR\SetupBuilder5.File\Shell\open\command
>
>Change the value data from "SetupBuilder 6 Developer" to "SetupBuilder 5
>Developer"
>
>Thank you for the hint.

Here is the problem. In my SetupBuilderClass I have a method that can
compile a SB project. It can work with both SB5 and SB6 and finds the
error log file correctly depending on which version is being used.

IF you load a .sb5 file it will automatically call the Sb6 compiler,
not the SB5 compiler. Not what it should do. So I have set it up so
that if it get's passed a .sb5 file, it checks if Sb6 is installed and
if it is, it throws an error about not being able to compile SB5
projects since both SB5 and SB6 are installed.

I still have some projects that I keep in SB5. I had issues with
moving them up to SB6.0 but haven't checked in a long time so they may
well work fine, but I thought it would be cool to be able to compile
both project types. Is there any other key where the location of the
SB5 exe is shown? I'm going to run a search on my registry and see
what it comes up with.

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
09-04-2007, 01:57 AM
Hi Arnór,

> Is there any other key where the location of the SB5 exe
> is shown?

HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\{4D910660-BBBC-11D8-6784-02015E7D18BE}

The InstallLocation value points to the SB5 installation folder.

Does this help?

Friedrich

NewsArchive
09-04-2007, 01:58 AM
Hi Friedrich,

>HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uni nstall\{4D910660-BBBC-11D8-6784-02015E7D18BE}
>
>The InstallLocation value points to the SB5 installation folder.
>
>Does this help?

Awsome! Hadn't thought of the uninstall, but that worked flawlessly:)
I can now compile _both SB5.x and SB6.x projects with my class without
risking running SB6.x on a SB5.x script that should be compiled with
SB5.x:)

Best regards,

Arnór Baldvinsson
Icetips Creative, Inc.
San Antonio, Texas, USA
www.icetips.com


Subscribe to information from Icetips.com:
http://www.icetips.com/subscribe.php

NewsArchive
09-04-2007, 01:58 AM
Hi Arnór,

> Awsome! Hadn't thought of the uninstall, but that worked flawlessly:)
> I can now compile _both SB5.x and SB6.x projects with my class without
> risking running SB6.x on a SB5.x script that should be compiled with
> SB5.x:)

Perfect!! :)

Friedrich