1. Welcome to TechPowerUp Forums, Guest! Please check out our forum guidelines for info related to our community.

Easy WCG_config

Discussion in 'World Community Grid (WCG)' started by Mindweaver, Oct 19, 2009.

  1. Chicken Patty

    Chicken Patty WCG Moderator Staff Member

    Joined:
    Nov 27, 2007
    Messages:
    28,341 (11.61/day)
    Thanks Received:
    12,225
    Location:
    Miami, Florida
    just ran the latest one, works like a charm. Thanks to everbody who helped out :toast:

    Thanks to Mindweaver for having this crazyyyyy idea ;)
    Mindweaver says thanks.
  2. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Thanks bro!
    Crunching for Team TPU
  3. Chicken Patty

    Chicken Patty WCG Moderator Staff Member

    Joined:
    Nov 27, 2007
    Messages:
    28,341 (11.61/day)
    Thanks Received:
    12,225
    Location:
    Miami, Florida
    anytime ;)
  4. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    So, are there any changes I need to make to that exectuable?
    Crunching for Team TPU
  5. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Sorry bro I've been busy.. hehehe I tested your file with issues my batch file encountered . One scenario, I deleted the content out of the cc_config.xml ,and I received an error (See Error Pic Below). Second scenario, I deleted the cc_config.xml file, and ran your file. It did not create the file or prompt me that it didn't complete successful. Both scenarios tested on Vista x64.

    It looks good thought! What software are you using to create the exe? :toast:

    [​IMG]
    Crunching for Team TPU
  6. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    Visual Studio 2008

    I fixed the first scenario. That may have also fixed the second scenario but, if it didn't, it now displays the default directory. Maybe I have the default directory for Vista wrong.
    Last edited: Oct 23, 2009
    Crunching for Team TPU
  7. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Great! This is the directory "%SYSTEMDRIVE%\ProgramData\BOINC\" for vista.

    I think you're starting from the "ProgramData" correct?
    Crunching for Team TPU
  8. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    It is using the equivilent of:

    %ALLUSERSPROFILE%\BOINC\
    Crunching for Team TPU
  9. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Yea, should work then.

    I just like painting the whole picture for M$... lol
    Crunching for Team TPU
  10. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    Try the beta 2 I uploaded. See if it properly creates the cc_config.xml if it is not present.
    Crunching for Team TPU
  11. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    I just tried beta 2. Scenario one is fixed, but two is still an issue.
    Crunching for Team TPU
  12. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    What's the path it displays and what is wrong with it?
    Crunching for Team TPU
  13. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    "Second scenario, I deleted the cc_config.xml file, and ran your file. It did not create the file or prompt me that it didn't complete successful."

    It says update successful.. but when you press any key... I doesn't create the file.
    Crunching for Team TPU
  14. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    It should say the full path to the file it created just above that. Is that path correct? If so, is the file sitting where it says it is?
    Crunching for Team TPU
  15. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Ok over looked the path.. It's pointing to C:\Program Files (x86)\BOINC\cc_config.xml. Change that path to "%SYSTEMDRIVE%\ProgramData\BOINC\".
    Crunching for Team TPU
  16. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    If it has always been finding that file, it won't create the file in %ALLUSERSPROFILE%.

    You can type "echo %ALLUSERSPROFILE%" in cmd if you want to double check that it points to C:\ProgramData
    Crunching for Team TPU
  17. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    So, if the user has to uninstall the manager and reinstall. Then run the Ez config it won't update?

    Yea i know %allusersprofile% works.. you don't need to echo.

    You're pointing to the Programs folder (x86), not the %allusersprofile%. Sorry, not trying to be a smart a$$.. I'm just tired :p... Been writing SQL queries... :d
    Last edited: Oct 23, 2009
    Crunching for Team TPU
  18. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    It does impose a problem, yeah, because without knowing the version of BOINC, I don't know where BOINC expects the xml file. I suppose I could always create the file (in %allusersprofile%) even it doesn't exist but that leaves those who have it in the program files high and dry.


    Or, maybe I should go with what the registry says?


    Edit: 5.# doesn't even have a registry key. :(
    Crunching for Team TPU
  19. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    I would always use the "%allusersprofile%", because the user may have mult users/family members with different logins. You could use the registry, but we have confirmed it works in XP, Vista, Win7 from the "%allusersprofile%\BOINC\" folder. What do you think?
    Crunching for Team TPU
  20. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    I think I will always make it always create it in %allusersprofile%. It will be hit or miss with older versions of WCG but it should always work for 6.1 and newer.
    Crunching for Team TPU
  21. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Sounds good! That's how i left my batch file to work. I thought about it after you told me about 6.0 and under, but I figured if they were using the older file for a server. Then most likely they wouldn't have any problem configuring there cc_config.xml file.

    Add the new version and I'll add it to the first of the post with the batch files. :toast: Good Job!
    Crunching for Team TPU
  22. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    Here it is. I tested and it appears to work...


    Edit: I can make it blue/green if you want me to. Or I could add a command in the startup arguments so a shortcut can change the color.

    Or maybe a different name?
    Last edited: Oct 23, 2009
    Crunching for Team TPU
  23. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Nice! Yea I just tested and it works! :toast:

    I'm off to bed.... hehehe

    I'll upload it tomorrow and add it! Good job!

    Edit: Startup arguments would be nice. Let the user pick. :D
    Crunching for Team TPU
  24. FordGT90Concept

    FordGT90Concept "I go fast!1!11!1!"

    Joined:
    Oct 13, 2008
    Messages:
    13,354 (6.30/day)
    Thanks Received:
    3,367
    Location:
    IA, USA
    I added three commandline arguments (all optional):

    -backcolor (color) - Sets the background color.*
    -forecolor (color) - Sets the foreground color.*
    -dir (directory) - Will create update or create a cc_config.xml in this directory overriding the search algorithms.

    * Available colors (capitalization is important):
    • Black
    • DarkBlue
    • DarkGreen
    • DarkCyan
    • DarkRed
    • DarkMagenta
    • DarkYellow
    • Gray
    • DarkGray
    • Blue
    • Green
    • Cyan
    • Red
    • Magenta
    • Yellow
    • White


    Command line example:
    Code:
    -backcolor "Green" -forecolor "White" -dir "C:\Documents and Settings\All Users\Application Data\BOINC"
    Last edited: May 16, 2014
    Crunching for Team TPU
  25. Mindweaver

    Mindweaver Moderato®™ Staff Member

    Joined:
    Apr 16, 2009
    Messages:
    5,148 (2.66/day)
    Thanks Received:
    2,653
    Location:
    Statesville, NC
    Cool.. but it kind of takes the easy out of the Easy WCG config..lol
    Crunching for Team TPU

Currently Active Users Viewing This Thread: 1 (0 members and 1 guest)

Share This Page