![]() |
|
|
#51 |
|
WCG Team Captain
Join Date: Nov 2007
Location: Miami, Florida
Posts: 23,888 (11.92/day)
Thanks: 15,149
Thanked 12,311 Times in 7,776 Posts
|
just ran the latest one, works like a charm. Thanks to everbody who helped out
![]() Thanks to Mindweaver for having this crazyyyyy idea
|
|
|
|
| The Following User Says Thank You to Chicken Patty For This Useful Post: |
|
|
#52 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Thanks bro!
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#53 |
|
WCG Team Captain
Join Date: Nov 2007
Location: Miami, Florida
Posts: 23,888 (11.92/day)
Thanks: 15,149
Thanked 12,311 Times in 7,776 Posts
|
|
|
|
|
|
|
#54 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
So, are there any changes I need to make to that exectuable?
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#55 | |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Quote:
It looks good thought! What software are you using to create the exe? ![]()
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
|
#56 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } Last edited by FordGT90Concept; Oct 23, 2009 at 04:20 AM. |
|
|
|
|
|
#57 | |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Quote:
I think you're starting from the "ProgramData" correct?
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
|
#58 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
It is using the equivilent of:
%ALLUSERSPROFILE%\BOINC\
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#59 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Yea, should work then.
I just like painting the whole picture for M$... lol
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#60 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
Try the beta 2 I uploaded. See if it properly creates the cc_config.xml if it is not present.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#61 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
I just tried beta 2. Scenario one is fixed, but two is still an issue.
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#62 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
What's the path it displays and what is wrong with it?
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#63 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
"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.
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#64 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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?
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#65 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Ok over looked the path.. It's pointing to C:\Program Files (x86)\BOINC\cc_config.xml. Change that path to "%SYSTEMDRIVE%\ProgramData\BOINC\".
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#66 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#67 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
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 ... Been writing SQL queries... :d
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 Last edited by Mindweaver; Oct 23, 2009 at 03:38 AM. |
|
|
|
|
|
#68 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#69 | |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Quote:
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
|
#70 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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.
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#71 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
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. Good Job!
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#72 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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?
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } Last edited by FordGT90Concept; Oct 23, 2009 at 05:37 AM. Reason: Removed attachment |
|
|
|
|
|
#73 |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Nice! Yea I just tested and it works!
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.
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
|
#74 |
|
"I go fast!1!11!1!"
Join Date: Oct 2008
Location: IA, USA
Posts: 10,575 (6.29/day)
Thanks: 1,755
Thanked 2,596 Times in 1,960 Posts
|
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):
Command line example: Code:
-backcolor "Green" -forecolor "White" -dir "C:\Documents and Settings\All Users\Application Data\BOINC"
__________________
Golden Rule of Programming: Never assume. try { SteamDownload(); } catch (Steamception ex) { RageQuit(); } |
|
|
|
|
|
#75 | |
|
Moderato®™
Join Date: Apr 2009
Location: Statesville, NC
Posts: 3,651 (2.44/day)
Thanks: 4,320
Thanked 2,319 Times in 1,150 Posts
|
Quote:
__________________
“As long as I feel the warmth from the sun and breathe precious air…. I must ask questions to feed the Mind!” Battletag: Mindweaver#1523 |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Case Gallery] Easy CaseMod | Dj.Grazy | Case Mod Gallery | 3 | Apr 18, 2010 04:18 AM |
| Acronis® Migrate Easy 7.0 | fafa21 | Storage | 2 | Nov 28, 2008 03:17 PM |
| easy question | accordpower99 | Graphics Cards | 7 | Jan 19, 2008 03:59 AM |
| Easy 4ghz Processor? | diGitaL | General Hardware | 15 | Sep 5, 2004 11:45 PM |