Distribution: Difference between revisions
m (→The batch file) Tag: Reverted |
m (Undo revision 367 by Heidi@zoodiets.com (talk)) Tag: Undo |
||
Line 43: | Line 43: | ||
---- | ---- | ||
</code> | |||
Revision as of 08:21, 2 March 2024
This page assumes that at least one person has ZDN up and running on their computer successfully, and now you want to add additional users at your institution.
The manual way (1-2 users)
This process is fine for a few users. When there are updates to ZDN, you will just repeat this process.
- Ensure the ZDN Support Files folder is on a shared drive (See the Installation Guide for details).
- Configure the ZDN program (Settings) to connect to the shared drive
- Give each user a fresh copy of the ZDN program (program only, not the Support Files folder)
If you have more than a few users or make regular updates, you will want to automate the distribution process. This has several benefits, including being able to add additional steps to the script such as making backups along the way
The best way to distribute to multiple users is via a Windows batch file.
A batch file is a script that does multiple things. Below is the text of a batch file with notes about what each section does. This batch file is included in your original ZDN download (v2.1 and later). You do not need to copy from here. It is included here to highlight the three spots where you need to edit the code to match your local install.
Instructions:
- Inside your ZDN folder (v2.1 and later), there is a hidden folder called "Advanced" containing a .zip file. Unzip this file
- Right-click on the ZDN.bat file (do not open it), and select "Edit"
- Compare the code below to the code in the file. Find the three bolded sections below and change those to your local paths.
- Save and close your file.
- Right-click on the Zoo Diet NaviGator shortcut (do not open it), and select "Properties"
- Change the "Target" to wherever you just saved the .bat file.
- Change the "Start in" to the same location, just without the filename at the end.
- Both values should be in quotes. Neither should end with a \.
- Double-click the shortcut to make sure everything is working correctly. If so:
- NaviGator should open
- A new folder should appear on your hard drive at C:\Data
- Inside C:\Data there will be a hidden folder called "Nutrition_Database"
- Inside that folder should be two items: A folder called "BackendBackups", which is where your backups will live. Every time ANYONE opens NaviGator using the shortcut, a backup copy of the data will be copied to their local C: drive. You must decide whether this is acceptable data security for you or not. It is helpful for backups, but obviously there will be many copies of your data floating around (hidden, but there). If you do not want this behavior, remove those lines of the code below.
- There will also be a local (C: drive) copy of the NaviGator front end that will always be the most recent version. So, every time you (the admin!) update NaviGator in its original location, everyone will get those changes the next time they run the script as a new copy will get downloaded each time.
- Copy the shortcut to somewhere public and easily find-able by your users(shared drive, SharePoint, etc.).
- Tell everyone where to find the NaviGator shortcut. They should run the shortcut from that location or copy the shortcut to their local drive/desktop. They should never open the .accdb file directly - only the shortcut. It's best if they don't even know where the original file lives. Occasionally, users will move the shortcut instead of copy it and you'll have to replace it with a new copy. That's why you COPIED the shortcut in step 10 instead of moved it ;)
> Uses
The batch file
- Don't worry if you don't understand the code below. You can follow along by reading the comments.
- In batch files, any line with REM in front is treated as a comment (i.e. not run).
- You can modify this for your institution's needs and policies by removing (or adding) sections below.