1 | | == 64-bit Windows: Installing GSAS-II with a single download == |
2 | | |
3 | | A single download installer can be used to install the latest version of GSAS-II. If the file downloaded file is moved to a computer not connected to the internet it will install a working, but slightly out-of-date GSAS-II version. Note that 64-bit Windows is required (currently Windows-7 or later.) [SingleStepWindowsNew Click here to see this page without screen images]. |
| 1 | = 64-bit Windows: Installing GSAS-II with a single download = |
| 2 | |
| 3 | A single download installer can be used to install the latest version of GSAS-II. To install GSAS-II on a computer not connected to the internet, download this file and move it to desired computer; running it will install a working, but slightly out-of-date GSAS-II version. Note that 64-bit Windows is required (currently Windows-7 or later.) |
| 4 | {{{#!comment |
| 5 | [SingleStepWindowsNew Click here to see this page without screen images]. |
| 6 | }}} |
47 | | * This screen shows the version number of GSAS-II that is contained in the installer. Later this will be updated, if an internet connection is available. The installer suggests closing all applications. It is wise to save work in other applications, but closing them seems a bit excessive. You will need to pass through several windows by pressing "Next", selecting options as you go. |
48 | | |
49 | | * Pressing Next the 1st time brings you to the License Agreement window shows you the article we ask you to cite, as well as the use terms for Python and packages, as below. You must agree to continue. The License for use of GSAS-II is found in the source code for the package; for convenience the full text [#AnacondaLicense from this screen] and the [#G2license GSAS-II license] are shown below. |
| 47 | * This screen shows the version number of GSAS-II that is contained in the installer. Note that GSAS-II will be updated later, if an internet connection is available. The installer suggests closing all applications. It is wise to save work in other applications, but closing them seems a bit excessive. You will need to pass through several windows by pressing "Next", selecting options as you go. |
| 48 | |
| 49 | * Pressing Next the first time brings you to the License Agreement window. This shows you the article we ask you to cite, as well as the use terms for Python and packages, as below. You must agree to continue. The License for use of GSAS-II is found in the source code for the package; for convenience the full text [#AnacondaLicense from this screen] and the [#G2license GSAS-II license] are shown below. |
212 | | * A Registry entry is created that causes the above above script to be run when double-clicking on .gpx (GSAS-II project) files. (See note below for re-installation) |
213 | | * A desktop icon is created that allows GSAS-II to be started. (See note below for re-installation) |
214 | | [[Image(10.png, 300px)]] |
215 | | * A The last step will be to download the latest version of GSAS-II. |
216 | | |
217 | | [[Image(13.png, 400px)]] |
218 | | |
219 | | |
220 | | Then click on "Next" and "Finish". to complete the installation. |
221 | | |
222 | | |
223 | | Feedback on installation instructions is welcomed. E-mail Brian dot Toby at ANL dot gov. |
224 | | |
225 | | |
| 212 | * A Registry entry is created that causes the above above script to be run when double-clicking on .gpx (GSAS-II project) files. (See [#Reinstallation note below for reinstallation]) |
| 213 | * A desktop icon is created that allows GSAS-II to be started. (See [#Reinstallation note below for reinstallation]) |
| 214 | [[Image(10.png, 100px)]] |
| 215 | * A The last step will be to download the latest version of GSAS-II. This will fail if your computer is not connected to the internet or a proxy is needed. The installation will not show an error message should this be the case. |
| 216 | |
| 217 | [[Image(11.png, 400px)]] [[Image(13.png, 400px)]] |
| 218 | |
| 219 | |
| 220 | Then click on "Next" and "Finish". to complete the installation. Test the installation by clicking on the desktop icon and confirming that GSAS-II starts. The Help/"Check for Updates" menu command can be used to check if GSAS-II was able to update to the latest version. |
| 221 | |
| 222 | Feedback on these installation instructions is welcomed. E-mail Brian dot Toby at ANL dot gov. |
| 223 | |
| 224 | |
| 225 | |
| 226 | |
| 227 | |
| 228 | |
| 229 | |
| 230 | |
| 231 | |
| 232 | |
| 233 | |
| 234 | |
| 235 | |
| 236 | |
| 237 | |
| 238 | |
| 239 | |
| 240 | |
| 241 | |
| 242 | |
| 243 | |
| 244 | |
| 245 | |
| 246 | |
| 247 | |
| 248 | |
| 249 | |
| 250 | |
| 251 | |
| 252 | |
| 253 | |
| 254 | |
| 255 | |
| 256 | |
| 257 | |
| 258 | |
| 259 | |
| 260 | |
| 261 | |
| 262 | |
| 263 | |
| 264 | |
| 265 | |
| 266 | |
| 267 | |
| 268 | |
| 269 | |
| 270 | |
| 271 | |
| 272 | |
| 273 | |
| 274 | |
| 275 | |
| 276 | |
| 277 | |
| 278 | [=#Reinstallation] |
227 | | [[Image(re1.png, 250px)]] |
228 | | [[Image(re2.png, 400px)]] |
229 | | |
230 | | |
231 | | |
| 280 | |
| 281 | I commonly hear from people who are having problems with GSAS-II and try reinstalling as a way to fix the problems. That rarely helps. However, you may want to have more than one copy of GSAS-II on your computer so you can compare how different versions behave. While this can be done with a lot less use of space by duplicating the {{{<Prefix>\GSASII\}}} folder under another name and then running the {{{<Prefix>\GSASII\bootstrap.py}}} or {{{<Prefix>\GSASII\MakeBat.py}}} file ([#bootstrap see Recovery] below), it is much easier to simply install again. Installing a new release also potentially provides a newer version of Python and associated packages. This is also not a bad thing. |
| 282 | |
| 283 | If you attempt to install GSAS-II twice, only one version can be selected to open |
| 284 | .gpx (project) files by clicking on them. If you already have a GSAS-II |
| 285 | installed (unless the package has been deleted or moved) you will get this message: |
| 286 | [[Image(re1.png, 250px)]] |
| 287 | Click Yes to use the newly-installed GSAS-II version and No if the previous version should be used when clicking on .gpx files. |
| 288 | |
| 289 | Likewise, if the desktop shortcut file exists (no check is made to see if the shortcut still works), you will see the dialog below. Specifiy a new name if you want to keep the older shortcut and create a new one. To overwrite the previous shortcut, simply press save and confirm that you want to overwrite the old file. If you use Cancel no shortcut is created. |
| 290 | [[Image(re2.png, 400px)]] |
| 291 | |
| 292 | |
| 293 | |
| 294 | |
| 295 | |
| 296 | |
| 297 | |
| 298 | |
| 299 | |
| 300 | |
| 301 | |
| 302 | |
| 303 | |
| 304 | |
| 305 | |
| 306 | |
| 307 | |
| 308 | |
| 309 | |
| 310 | |
| 311 | |
| 312 | |
| 313 | |
| 314 | |
| 315 | |
| 316 | |
| 317 | |
| 318 | [=#Logfiles] |
233 | | |
234 | | |
235 | | == Recovering After an update problem == |
236 | | |
237 | | |
238 | | == Sites requiring and Internet Proxy == |
239 | | |
240 | | |
241 | | == Licenses == |
| 320 | Several files are created as the GSAS-II customization is done. |
| 321 | * File {{{<Prefix>\GSASII\RunGSASII.bat}}} contains a script for running GSAS-II |
| 322 | * File {{{<Prefix>\GSASII\InstallLog.txt}}} contains the output when creating the above |
| 323 | script, the registry entry and the desktop icon. |
| 324 | * File {{{<Prefix>\GSASII\UpdateLog.txt}}} contains the output when trying to update GSAS-II to the latest version. If this ends with text saying {{{GSAS-II failed to be installed...}}} either the network was inaccessible or a proxy is required. |
| 325 | If installation fails and you want to get help, please include these files in your e-mail. |
| 326 | |
| 327 | |
| 328 | |
| 329 | |
| 330 | [=#bootstrap] |
| 331 | == Recovering after an install problem == |
| 332 | If the installation has completed far enough to give you a working Python but the GSAS-II installation fails to complete open a command prompt (cmd.exe) window, and type in these commands: |
| 333 | |
| 334 | {{{<Prefix>\Scripts\activate.bat}}} |
| 335 | {{{<Prefix>\python.exe <Prefix>\GSASII\bootstrap.bat}}} |
| 336 | |
| 337 | A convenient way to do this that avoids spelling errors is to find and drag the file to the window. Be sure to type a space between dragging the {{{<Prefix>\python.exe}}} and the {{{<Prefix>\GSASII\bootstrap.bat}}} files. |
| 338 | |
| 339 | |
| 340 | == Sites requiring an Internet Proxy == |
| 341 | |
| 342 | Some sites route traffic to the internet via a proxy computer. Finding a network administrator who knows what your site is doing can be tough. The web site http:/www.whatismyproxy.com/ may help. If you have a proxy, you will need to know either the name or IP address of the proxy computer and you will need to know the IP port (usually 80 but sometimes something else, such as 8080 or 8000.) |
| 343 | |
| 344 | The easiest way to set the proxy is to start GSAS-II and use the File/"Edit Proxy" menu command; check if the values work using the Help/"Check for Updates" menu command. |
| 345 | |
| 346 | = Licenses = |