How to launch just the Delphi personality - Delphi

This is a discussion on How to launch just the Delphi personality - Delphi ; What I want to do is launch the delphi only personality AND load the project file that I clicked on. I can use the installed shortcuts to start the Delphi personality only but it doesn't load a project. The installer ...

+ Reply to Thread
Results 1 to 8 of 8

How to launch just the Delphi personality

  1. Default How to launch just the Delphi personality

    What I want to do is launch the delphi only personality
    AND load the project file that I clicked on.

    I can use the installed shortcuts to start the Delphi
    personality only but it doesn't load a project. The
    installer will create shortcuts to the full program and
    one for each of the personalities.

    Each of the personality shortcuts looks like:
    "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe" -pDelphi

    However, when you double-click a project file, the full
    BDS environment gets loaded.

    Each registered file type has the following shortcut:
    "C:\Program Files\Borland\BDS\4.0\Bin\bdsLauncher.exe"
    "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe" /np

    I tried adding -pDelphi to the end of the shortcut but
    this change is ignored. The is virtually no information
    about the bdsLauncher application from google search.

    Any ideas on how to do this?

    I have BDS2006/Upd2/Hotfix.

    Erik Turner



  2. Default Re: How to launch just the Delphi personality

    > I can use the installed shortcuts to start the Delphi
    > personality only but it doesn't load a project.


    One of the settings in Tools-Preferences (I think)
    will load your last project when Delphi is re-opened.
    I think the option is called 'Save Desktop Files'
    or something similar.
    There is also a list of your last 5 projects on the welcome page, which
    you can click to open them.

    Cheers,

    Chris

  3. Default Re: How to launch just the Delphi personality

    Chris,

    Thanks for the input.

    I don't think this works. It basically saves the layout on a per project
    basis but still doesn't open the project when you start.

    What I really want is what TurboDelphi already does, i.e. start in the
    Delphi personality and open the Delphi project.

    I would use TD except for the fact that you can't install components
    onto the palette...

    Erik

    "Chris Morgan" <chris.nospam@lynxinfo.co.uk> wrote in message
    news:476ea949$1@newsgroups.borland.com...
    > I can use the installed shortcuts to start the Delphi
    > personality only but it doesn't load a project.


    One of the settings in Tools-Preferences (I think)
    will load your last project when Delphi is re-opened.
    I think the option is called 'Save Desktop Files'
    or something similar.
    There is also a list of your last 5 projects on the welcome page, which
    you can click to open them.

    Cheers,

    Chris



  4. Default Re: How to launch just the Delphi personality

    Erik Turner wrote:
    > One of the settings in Tools-Preferences (I think)
    > will load your last project when Delphi is re-opened.
    > I think the option is called 'Save Desktop Files'
    > or something similar.


    The only way I know to have your project open when you open Delphi is to
    close Delphi with that project open. I personally have opted to never
    close Delphi with a project open. Must have been some bug or perceived
    bug in some prior version that keeps me operating that way.

    Loren

  5. Default Re: How to launch just the Delphi personality

    > "C:\Program Files\Borland\BDS\4.0\Bin\bdsLauncher.exe"

    Just remove the reference to bdsLauncher.exe as it is
    not even needed and let it execute BDS.EXE as required


  6. Default Re: How to launch just the Delphi personality

    That's a good suggestion!

    However, when I tried it I get a "could not locate file xxxxx" message
    which is complete nonsense since I just double-clicked on the file.
    After, I dismiss the error message box, sometimes the correct project
    is opened and sometimes no project is opened.

    Also, if it wasn't needed, why would borland go to all the trouble of
    creating this executable?

    Erik

    "Dennis Passmore" <somewhere@someplace.com> wrote in message
    news:m4ivm3td6h49sfatjq68r3408qi3uj8tog@4ax.com...
    > "C:\Program Files\Borland\BDS\4.0\Bin\bdsLauncher.exe"


    Just remove the reference to bdsLauncher.exe as it is
    not even needed and let it execute BDS.EXE as required



  7. Default Re: How to launch just the Delphi personality


    "Erik Turner" <erik@spamless.turner.org> wrote in message
    news:476fdb86@newsgroups.borland.com...

    > However, when I tried it I get a "could not locate file xxxxx" message


    What did you edit the Registry value to look like? I would imagine it
    should look something like the following:

    "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe" -pDelphi "%1"

    Make sure you are wrapping the %1 in quotations in order to support long
    filenames with spaces.

    > Also, if it wasn't needed, why would borland go to all the
    > trouble of creating this executable?


    BDS needs a long time to startup, and Windows does not like having to wait
    that long when trying to open a file. BDSLauncher allows control to return
    to Explorer more quickly while continuing to load BDS in the background. It
    also allows multiple files to be opened in a single IDE instance. If you
    change the file association to run BDS directly, then a new instance of the
    IDE may be run for each file you try to open via Explorer.


    Gambit



  8. Default Re: How to launch just the Delphi personality

    I tried that. I tried every combination of flags that I
    could think of. And I still get the "could not locate file"
    message.

    I think it's related to the DDE conversation that takes
    place between the shell and BDSLauncher. If I rename
    the "ddexec" key to something else to hide it, it kind
    of works. Basically, I get the IDE to start with just
    the delphi personality and with the project open.

    However, it seems to throw internal exceptions
    more frequently when I do things this way. And I
    don't get an opened file added to the running delphi
    version (a behavior that I want).

    So, I seem to be back to the questions:

    What are the command line arguments for BDSLauncher?
    Can the BDSLauncher be configured to launch a
    specific personality?

    Erik Turner


    "Remy Lebeau (TeamB)" <no.spam@no.spam.com> wrote in message
    news:47729b9a$1@newsgroups.borland.com...

    "Erik Turner" <erik@spamless.turner.org> wrote in message
    news:476fdb86@newsgroups.borland.com...

    > However, when I tried it I get a "could not locate file xxxxx" message


    What did you edit the Registry value to look like? I would imagine it
    should look something like the following:

    "C:\Program Files\Borland\BDS\4.0\Bin\bds.exe" -pDelphi "%1"

    Make sure you are wrapping the %1 in quotations in order to support long
    filenames with spaces.

    > Also, if it wasn't needed, why would borland go to all the
    > trouble of creating this executable?


    BDS needs a long time to startup, and Windows does not like having to wait
    that long when trying to open a file. BDSLauncher allows control to return
    to Explorer more quickly while continuing to load BDS in the background. It
    also allows multiple files to be opened in a single IDE instance. If you
    change the file association to run BDS directly, then a new instance of the
    IDE may be run for each file you try to open via Explorer.


    Gambit




+ Reply to Thread