12-05-2018 08:24 AM
I would like to build two different versions of a distributed executable. (LabVIEW 2018, application builder, Windows 10).
One version (for selected users only) should be able to do everything.
Another version (for other users) has a restricted feature set but is about 98% of the full application.
It should not be possible for a user of the restricted version to gain access to the full features (so no configuration file or run-time settings or secret keypresses) - I expect there to be two distinct but similar compiled executables.
I would like to maintain only one set of code and not have to edit the source to change between builds. I thought of doing this with two different build specifications but I am not sure how to get the build option into the compiled code.
Is there a standard way to do this? Maybe include full.vi in one build and restricted.vi in the other? What is the best way to build in a compiled option?
Thanks.
Solved! Go to Solution.
12-05-2018 08:32 AM
You could create an entry in the registry. If the entry is encrypted the user will not be able to easily change it. You could create a separate utility which would set this entry. Another alternative is to have the user login to the application and based on the user name entered you would grant the appropriate level of access.
12-05-2018 08:34 AM - edited 12-05-2018 08:35 AM
12-05-2018 09:04 AM
Thanks Mark. My client uses the applications for various trained staff in different countries so I don't have (r want access to their machines). Each user does their own installation of our application so the option needs to be built in to the application that gets installed - I neglected to mention that.
Also, I have no idea who the users will actually be and their laptops often can't be networked in their working environments so I don't think logging in to the application would work either.
Much as I would rather have one distributed executable I think that to start with this won't be an option.
12-05-2018 09:09 AM
I too suggest the conditional disable diagram structure. You can have two projects use the same source, and each project set a different flag when changes the software's behavior, and load different UIs if you want.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
12-05-2018 09:10 AM
Thanks GerdW,
A conditional disable structure does what I need but I need to be able to have a symbol definition set in the build spec. That's the bit I haven't yet found. Is there a way to do that?
12-05-2018 09:20 AM
The conditional disable is fine - but how do I have different conditional disable symbols based on the build spec. As far as i can see they are common throughout a project and not able to be different in alternative build specs?
12-05-2018 09:25 AM
Just change the conditional disable value between builds.
Ben
12-05-2018 09:25 AM
See Hoovahh's reply. Create two projects. Each project will have the appropriate flag set. Both projects include the same source code. However, your users can get access to the full application simply by installing both versions. If the access control is critical then I think you will need some type user authentication method.
12-05-2018 09:26 AM
Yes, there is a way. Here is an example taken from one of my projects.
AFAIK it's an undocumented feature (at least it was when I started to use the Set Tag method).
However, it works.