Index | Recent Threads | Unanswered Threads | Who's Active | Guidelines | Search |
![]() |
World Community Grid Forums
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
No member browsing this thread |
Thread Status: Active Total posts in this thread: 80
|
![]() |
Author |
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Whether you have a large or small network, installing the WCG UD agent on multiple machines has always been difficult, as each PC has had to be manually registered with the WCG servers.
----------------------------------------Now that you can crunch WCG work units using the BOINC agent, the problem can be overcome. These instructions will allow you to deploy the BOINC client across your network AND enable each PC to automatically register itself with the WCG servers. What you will need: 1. The latest BOINC client, available here 2. A PC that is already running the BOINC agent and has been joined to WCG. If you have not done this yet, login to your WCG account and follow the instructions here. 3. Microsoft's Orca msi editing tool, currently available here. (The location does change from time to time.)
Extracting the BOINC Package 1. Click 'Start' and select 'Run' 2. Enter that path and file name of the downloaded BOINC package and add the /a switch to the end. eg: "C:\Documents and Settings\Me\Desktop\boinc_5.2.13_windows_intelx86.exe" /a3. Click Next and then enter a directory where you want to store your package. eg: C:\BONIC Package4. Click 'Install' 5. When the package has installed, untick the 'Launch BOINC' checkbox and click 'Finish'. Modifying the BOINC Package 1. From your PC that has already run the BOINC agent and joined WCG, copy the file 'C:\Program Files\BOINC\account_www.worldcommunitygrid.org.xml' to the subdirectory 'program files\BOINC' that will be found in the directory chosen in 3 above. If you open it with notepad, it will look like this <account>The <authenticator> value should be you BOINC Account Key, which you can find here. The <host_venue> tag contains the device profile that you wish to use. (This line is not necessary.) 2. Right click the file account_www.worldcommunitygrid.org.xml and select 'Properties' 3. Write down the size of the file. (Not the 'Size on disk' value.) You will need this info later. 4. Browse to the package directory and right click 'BOINC.msi'. Providing Orca has been sucessfully installed, select the option 'Edit with Orca' 5. Once Orca has opened the BOINC msi, click the menu item Transform > New Transform. The window title will change to 'BOINC.msi (transformed by Untitled)' 6. In the 'Tables' list in the left panel of Orca, select 'File'. (A list of files will appear in the right panel.) 7. In the right panel, click the heading 'Sequence' to sort the list in numeric order. 8. Scroll down to the bottom of the right panel file list and note what will be the next free number. (At the moment it will be 71.) 9. Right click anywhere in the right panel and select 'Add Row' 10. In the window that pops up, CAREFULLY enter the following. File: account_www.worldcommunitygrid.org.xmlClick 'OK' when you have finished. (Note: the line you have just added will have a green border around it. This will be displayed around every table entry that you modify as it makes it easier to find what you have changed.) 11. In the 'Tables' list, select 'Media'. (You will see just one entry.) 12. Change the value in the 'LastSequence' column from 70 to 71. 13. In the 'Tables' list, select 'Components'. (There will be about 45 rows here.) 14. Find in the first column, Component called '_AccountFiles' and select it. 15. Remove the value 'ACCOUNTS_LOCATION' in the 'Condition' column. 16. Select 'Transform > Generate Transform...' and pick a file name for your modifications. (eg: BOINC Modifications) Click 'OK' to save your .mst file. Installing the modified BOINC Package. 1. If the directory where you have created your modified BOINC installation, is not 'shared', you will not be able to access it from another PC. To allow a directory to be shared, follow the instructions below
msiexec /i "\\PC-01\BONIC Package\BOINC.msi" TRANSFORMS="\\PC-01\BONIC Package\BOINC Modifications.mst" Additional Modifications There are quite a varity of additional modifications that can be added to your mst file. An up to date list can be found here under the heading 'Customizing the installer'. All of the parameters are pretty self explanitary and will allow you to create a fully automated installation of the BOINC agent. To modify any of these parameters, follow these instructions. 1. Open the BONIC.msi with Orca 2. Click 'Transforms > Apply Transform...' and select the mst file you created earlier. 3. In the 'Tables' column, select the 'Property' table. 4. In the right panel, click the 'value' of the property you want to change. 5. If the property you want to change is not there, you can easily create it by right clicking on any of the properties and selecting 'Add Row' 6. If there is a property you want to remove, right click it and select 'Drop Row' 7. When you have finished all of your changes, click 'Transform > Generate Transform' and pick a file name for your updated mst file. (NB. you can not overwrite an existing mst, however, you can rename it after you have exited Orca.) Tips. 1. DO NOT CHANGE AN MST THAT HAS BEEN INSTALLED ON A PC. The installer will demand the original file when you to repair, modify or remove the BOINC client. 2. Uninstall BOINC on PC if you are giving it away otherwise the new owner will have the problem highlighted above. 3. You do not need to modify the property table, if you don't wish to. Instead you can add the property to the command line. eg: msiexec /i "\\PC-01\BONIC Package\BOINC.msi" TRANSFORMS="\\PC-01\BONIC Package\BOINC Modifications.mst" ENABLESCREENSAVER=0This would install BOINC, and disable the screen saver. 4. If you are using some kind of snapshot mechanism to deploy BOINC, you can install the agent without any modifications (Don't launch it at the end of the installation), copy the account_www.worldcommunitygrid.org.xml file to 'C:\Program Files\BOINC\' directory, and then take your snapshot. If anybody would like any further information, let me know. The Lazy Slug [Edit 1 times, last edit by Former Member at Feb 2, 2006 10:48:05 AM] |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Thanks Slug,
I have placed your instructions in 'Start Here': http://www.worldcommunitygrid.org/forums/wcg/viewthread?thread=5796 If anybody has comments, suggestions or horror stories, please post them to this thread. mycrofth |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Would anyone be interested in a tool to automatically generate the required transform, without requiring a previous installation or Orca?
The options are: A web based tool. (This would be most useful, but is least likely to happen). A C# tool, which would require the .NET Framework 2.0. This is the easiest option. A C++ tool, with no dependencies (except Windows Installer). Is there sufficient interest? Such a tool may be useful to other projects, as well as WCG. If enough people want it, I will write it. |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Hello Didactylos,
There are a number of BOINC projects running on Windows. I do not know just where the best place is to discuss this possible project, but I suspect that Paul Buck would know. Paul runs the BOINC Unofficial Wiki at http://boinc-doc.net/boinc-wiki/index.php?title=Main_Page He lists a contact address on the main Wiki page at p.d.buck@comcast.net Paul probably knows a lot about the issues involved. mycrofth |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Hmmm. Nothing on how to create a transform there. The administrative install instructions are barely more than what is on the official site.
If I see any interest here, I'll drop him a line. Thanks for the contact info. |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Hi Didactylos
A web based tool. (This would be most useful, but is least likely to happen). Excuss my ignorance, but would a VBScript that automatically created the XML account file and mst be useful ? (I know VBScript can be run on website, but you could write on a pin head my knowlegde of how to do that ![]() Regards Slug |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
You have such a script? I don't want to reinvent the wheel.
It's technically possible, it's just the least likely option for me to pursue. |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Almost ! (Well, actually it's in my head at the moment
![]() I hadn't really thought about doing it with app until I saw your post. Just need to work out the syntax for adding/changing the tables - probably only 3 or 4 lines of code away from a fully working script. I'll post it as soon as I can Regards Slug |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
Evening Didactylos
----------------------------------------Sorry for the delay in posting the script, but a) I went to the office today and actually had to do some work ![]() b) I discovered that headings in Orca are not high enough to display underscores, hence I couldn't get the component_ field in the msi database to update ![]() Anyway, here it is. Extract BOINC.exe with the /a switch and save this script in the same directory as the extracted msi. Regards Slug Code deleted due to bug. Please see later post. [Edit 2 times, last edit by Former Member at Feb 24, 2006 1:02:34 PM] |
||
|
Former Member
Cruncher Joined: May 22, 2018 Post Count: 0 Status: Offline |
As soon as someone verifies the successful use of this script, I shall add it to 'Start Here'.
mycrofth |
||
|
|
![]() |