topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday October 31, 2024, 5:58 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Launch Ignores Exe.Config  (Read 5189 times)

jmiller76

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Launch Ignores Exe.Config
« on: February 06, 2012, 02:17 PM »
LaunchBar Commander 1.129.01 (Win7 All latest patches)
I have created command nodes to both:
C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe
And the to the default shortcut in the start menu.

I have created a C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe.config config file to allow PowerShell to run as .Net 4.0

When I run either through LaunchBar Commander, it is ignoring this XML, giving me a black background (default is blue).

Any ideas?

When launching the EXE directly it loads the .CONFIG.

.Config matches :

<?xml version="1.0"?>
<configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
          <supportedRuntime version="v4.0.30319" />
          <supportedRuntime version="v3.5" />
          <supportedRuntime version="v3.0" />
          <supportedRuntime version="v2.0.50727" />

    </startup>
</configuration>


mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,913
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Launch Ignores Exe.Config
« Reply #1 on: February 06, 2012, 04:23 PM »
I have some new launching options that I need to put into place in LBC in the next release.  Hopefully that will fix things -- if not i'll have another look.

One thing you could try though is to create a .bat file that launches the app -- can you see if having LBC launch the .bat file solves the problem you are having? if so that would at least be a clue.

jmiller76

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 2
    • View Profile
    • Donate to Member
Re: Launch Ignores Exe.Config
« Reply #2 on: February 06, 2012, 04:37 PM »
BAT with "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" Starts the prompt using the .Config's settings.  But the Apps running icon is the CMD icon.

BAT with "start %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe"  uses the .Congfig settings, applies the appropriate powerShell App Icon, but doesn't load the default color scheme.

the .lnk has the color scheme info so I changed it to:
start "" "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\Windows PowerShell\Windows PowerShell.lnk"
and this works fine.

Running the link without invoking via Start does not work.

I'll try again with a direct link after the update, but this will work.

Thanks,
      Josh