Rowpro 4.1, multiple regular PC users, no joy
Posted: March 20th, 2023, 5:26 pm
I think %userprofile% is the right place for user specific info in a windows environment, not ProgramData. RowPro doesn't seem to be seeing much development so unknown if they are working on things or interested in fixing the problem, haven't reached out. But there's a work around that is simple and allows for EACH windows login ID to have it's own training plan/data defaulted and not mess anyone else's db up. It's really rather simple, reversable and the info is really pretty safe the whole time. Since the startup time on login varies I found it helpful to add a pop-up on the screen to tell me when the process is over. I you don't want that, you can certainly remove the relevant lines of code and associated "vbs" file.
Here's how to get multiple users on the same machine:
Disclaimer - this process worked for me, but you should make backups, wear suspenders, put on a belt, because you're messing with files... worst case you lose local rowpro data, but it should all be uploaded each row session to their website anyway, so shouldn't be a huge problem to just let it make a new setup if this goes "udder-up"... that's still PC, right?
.
1- I started with a fresh install of the version above, added my two license keys via "Tools/activate". Downloaded my training plan, and exited.
2 - Copy the "C:\ProgramData\RowPro" folder from source to each users %userprofile%"\Documents\RowPro" folder. (if you need this explained, maybe walk away now? Idonno, you decide.)
3 - Find a drive letter that's open for all users of the machine, I chose "V" for this example, substitute with whatever you want to use for the remainder of these instructions.
4 - Copy the below code into notepad and save as a batch file in each users "%appdata%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" folder (if you want automatic setup each login.) If not, drop the batch file wherever you want to access it from manually. I like the clean and simple. Call it whatever you want, I used "RowPro symlink mapping.bat"
5 - Copy the below code into a new notepad document and save it to each users Documents folder as "v:\Documents\message.vbs"
6 - rename "C:\ProgramData\RowPro" directory to "C:\ProgramData\RowPro-original"
7 - open a command prompt as administrator (search for cmd if you don't know where it is, right click, run as administrator) and run the below command. This is persistant across all users, so you only need to run this command once. It drops a "shortcut" called RowPro in ProgramData redirecting from ProgramData to the current users Documents directory.
What it's all doing - We're creating a temporary "wormhole" of sorts that remaps "C:\ProgramData\RowPro" to each users individual "Documents/RowPro" folder (until they log out) (the batch file establishes this link each login). Now when each user logs in they should see a pop-up center screen for a few seconds during login process that tells them RowPro is ready to go... signaling that the "wormhole" is reestablished. I don't do any error checking, if that's important to you, you'll probably want to test for "V:" before that message. The pop-up will go away on it's own or you can dismiss it. You can then start RowPro and it'll use the data in current users Documents directory instead of the "shared" location!
By copying "C:\ProgramData\RowPro" to each user's Documents directory, you're seeding each user with the same setup as a starting point. Meaning you won't have to activate licenses for each userID, just the once before you started this joy ride. Once they change the Windows user and then RowPro user to their own, download their own training plan, it'll "stick" and not be over written as the next person's "V" drive letter is mapped to their own user ID. You can now share the machine, but keep your own local row data locally.... the way it should have been done to begin with. It can also be mapped to "%appdata%\Roaming\RowPro" if you don't want users to see the RowPro folder or script file in their documents directory. Just an option to 'hide' the stuff the users don't need to see cluttering up their space if that's important to you. If you do that, make sure to adjust instructions accordingly or you'll be surpised by the results.
Enjoy.
Oh no, what have I done? Dumbest idea ever!
Not happy? Undo it like this:
Rename the "wormhole" link - "C:\ProgramData\RowPro" to "C:\ProgramData\RowPro-Link"
Copy the first V:\RowPro directory created back to C:\ProgramData\RowPro and you'll preserve that users current data (the other users will lose their local data, sorry) or if you want to go back to before this ride started, just rename "C:\ProgramData\RowPro-original" back to "C:\ProgramData\RowPro".
delete the "%appdata%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\RowPro symlink mapping.bat" (or whatever you called it)
delete the "v:\Documents\message.vbs" file
reboot, log back in and if it works as expected you won't see a drive "V" anymore in file explorer, row pro should work as before and hopefully someone's data is preserved. If that's true you can delete the "C:\ProgramData\RowPro-Link" folder and the various "%userprofile%\Documents\RowPro" folders you copied the original data to.
delete the "C:\ProgramData\RowPro-original" folder if it still exists.
Or just restore from a backup or image you did before you started... you did do a backup as suggested yes?
Here's how to get multiple users on the same machine:
Disclaimer - this process worked for me, but you should make backups, wear suspenders, put on a belt, because you're messing with files... worst case you lose local rowpro data, but it should all be uploaded each row session to their website anyway, so shouldn't be a huge problem to just let it make a new setup if this goes "udder-up"... that's still PC, right?
.
1- I started with a fresh install of the version above, added my two license keys via "Tools/activate". Downloaded my training plan, and exited.
2 - Copy the "C:\ProgramData\RowPro" folder from source to each users %userprofile%"\Documents\RowPro" folder. (if you need this explained, maybe walk away now? Idonno, you decide.)
3 - Find a drive letter that's open for all users of the machine, I chose "V" for this example, substitute with whatever you want to use for the remainder of these instructions.
4 - Copy the below code into notepad and save as a batch file in each users "%appdata%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" folder (if you want automatic setup each login.) If not, drop the batch file wherever you want to access it from manually. I like the clean and simple. Call it whatever you want, I used "RowPro symlink mapping.bat"
Code: Select all
@echo off
rem drop into %appdata%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
subst v: %userprofile%
rem this done once on the PC as an administrator in a command prompt "mklink /d c:\ProgramData\RowPro v:\Documents\RowPro"
start "" "v:\Documents\message.vbs"
Code: Select all
CreateObject("WScript.Shell").PopUp "RowPro Ready, now SWEAT.", 5
7 - open a command prompt as administrator (search for cmd if you don't know where it is, right click, run as administrator) and run the below command. This is persistant across all users, so you only need to run this command once. It drops a "shortcut" called RowPro in ProgramData redirecting from ProgramData to the current users Documents directory.
Code: Select all
mklink /d c:\ProgramData\RowPro v:\Documents\RowPro
By copying "C:\ProgramData\RowPro" to each user's Documents directory, you're seeding each user with the same setup as a starting point. Meaning you won't have to activate licenses for each userID, just the once before you started this joy ride. Once they change the Windows user and then RowPro user to their own, download their own training plan, it'll "stick" and not be over written as the next person's "V" drive letter is mapped to their own user ID. You can now share the machine, but keep your own local row data locally.... the way it should have been done to begin with. It can also be mapped to "%appdata%\Roaming\RowPro" if you don't want users to see the RowPro folder or script file in their documents directory. Just an option to 'hide' the stuff the users don't need to see cluttering up their space if that's important to you. If you do that, make sure to adjust instructions accordingly or you'll be surpised by the results.
Enjoy.
Oh no, what have I done? Dumbest idea ever!
Not happy? Undo it like this:
Rename the "wormhole" link - "C:\ProgramData\RowPro" to "C:\ProgramData\RowPro-Link"
Copy the first V:\RowPro directory created back to C:\ProgramData\RowPro and you'll preserve that users current data (the other users will lose their local data, sorry) or if you want to go back to before this ride started, just rename "C:\ProgramData\RowPro-original" back to "C:\ProgramData\RowPro".
delete the "%appdata%\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\RowPro symlink mapping.bat" (or whatever you called it)
delete the "v:\Documents\message.vbs" file
reboot, log back in and if it works as expected you won't see a drive "V" anymore in file explorer, row pro should work as before and hopefully someone's data is preserved. If that's true you can delete the "C:\ProgramData\RowPro-Link" folder and the various "%userprofile%\Documents\RowPro" folders you copied the original data to.
delete the "C:\ProgramData\RowPro-original" folder if it still exists.
Or just restore from a backup or image you did before you started... you did do a backup as suggested yes?
