#1  
Old 13th August 2019, 12:20 AM
ericus ericus is offline
Junior Member
 
Join Date: Nov 2018
Posts: 23
Default Nexus Deployment Best Practise

Good day

So I want to deploy NexusServer and include it with my advanced installer.

I have read the manual and see an example of the options:

Example 1:

nxServer.exe /install

Will prompt for account, then install the service and ask if it should be started

Example 2

nxServer.exe /install /username:.\test /password:test /silent

Will (try to) install the service with the given account. If successful it will not start the service or prompt for it.

The question is. There is no way for me to just pass a username and password for the installation on an unknown server. I basically have to get the user to enter hopefully the administrator username and password. Is that correct?

Is there anything else I should keep in mind when distributing the application.

Ericus Steyn
  #2  
Old 13th August 2019, 11:03 AM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Nexus Deployment Best Practise

> The question is. There is no way for me to just pass a username and
> password for the installation on an unknown server. I basically have
> to get the user to enter hopefully the administrator username and
> password. Is that correct?


No, your advanced installer should have no problems asking the user for
a *new* username and password which is only used for nxServer, and then
pass those details on the command line. That's how I would recommend
doing it.



--
Eivind Bakkestuen [NDD]
  #3  
Old 17th September 2019, 11:05 PM
ericus ericus is offline
Junior Member
 
Join Date: Nov 2018
Posts: 23
Default

I have now started deploying my application but still a few issues. Maybe somebody else encounter this as well and have a solution:

Issue 1:

Erin you refer to *new user and installation time. What do you mean by that because the installer is not going to create a new user on the server. It must be a valid username and password that must be entered else the service won't start.

Issue 2:

When the application is installed on a local machine I ask the user which server they want to connect to. I expect a name for the server. But if the data and application is on the local machine and Netbios over TCP/IP is enabled then you must actually enter an IP Address and not a name. How do you know when to use an IP Address and when to use a name?

Issue 3:

Once the application has found the server, and if the server is a network server, you have a mapped drive to the server. Let's say P: is mapped to \\TCCSERVER\ACCPAC.

The first thing the application does is check for an alias on the server and creates it if it does not exist. However when you create that alias the path must be the path on the server i.e. C:\ACCPAC and not the path from the local machine.

How do you find that path on the server seeing as it can be on any drive letter and not necessarily C drive.

My apologies for so many questions. All I want is a seamless, mostly hands free and idiot proof installation for servers, clients and stand alone workstations.

Ericus Steyn
  #4  
Old 18th September 2019, 10:42 AM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Nexus Deployment Best Practise

> Erin you refer to *new user and installation time. What do you mean
> by that because the installer is not going to create a new user on the
> server. It must be a valid username and password that must be entered
> else the service won't start.


Have a look at the example command line toward the bottom of this page

https://www.nexusdb.com/support/index.php?q=node/26893

Your server installation can ask for new user credentials, that can be
passed to the server on the command line.


> When the application is installed on a local machine I ask the user
> which server they want to connect to. I expect a name for the
> server. But if the data and application is on the local machine and
> Netbios over TCP/IP is enabled then you must actually enter an IP
> Address and not a name. How do you know when to use an IP Address and
> when to use a name?


Your client installer will need to use a network API to test which way
works. Likely examples in the Inno Setup newsgroups.

> Once the application has found the server, and if the server is a
> network server, you have a mapped drive to the server. Let's say P:
> is mapped to \\TCCSERVER\ACCPAC.


Why do you want a mapped drive to the server? NexusDB does not require
it.

> The first thing the application does is check for an alias on the
> server and creates it if it does not exist. However when you create
> that alias the path must be the path on the server i.e. C:\ACCPAC and
> not the path from the local machine.
>
> How do you find that path on the server seeing as it can be on any
> drive letter and not necessarily C drive.


It sounds as if you are trying to create a single installer that will
install on both client and server machines when run on a client machine.

I'd recommend creating a separate server installation, to be run on the
server machine. No mapped drive necessary, local drives are then
accessible, etc.

--
Eivind Bakkestuen [NDD]
  #5  
Old 18th September 2019, 04:31 PM
ericus ericus is offline
Junior Member
 
Join Date: Nov 2018
Posts: 23
Default

Thanks Erin

2 issues solved.

When I talk about a mapped drive I am talking about a mapped drive from the workstation to the server.

So P: on the local machine is mapped to a shared folder ACCPAC on the server.

So on the local machine it will show something like ACCPAC(\\TCCSERVER\ACCPAC) (P in File Explorer.

You need the mapped drive because the data is located on the server and Nexus is installed on that server TCCSERVER.

When the user opens the application for the first time from his workstation I am looking for an alias on the server. If that alias does not exist I create it, from the local machine, not on the server.

When the alias is created, HAddAlias(ACCPAC, path) you need to map it to the local drive of the server.

For example if I was on the server I would create and alias called ACCPAC and the path would be, C:\ACCPAC. Now how can I create that alias from the local machine?

From the local machine I have no idea where ACCPAC (the shared folder on the server) is physically located on the server. It could be any drive in any folder.

Thanks in advance


Ericus Steyn
  #6  
Old 18th September 2019, 11:21 PM
Eivind Bakkestuen [NDD]
 
Posts: n/a
Default Re: Nexus Deployment Best Practise

> You need the mapped drive because the data is located on the server
> and Nexus is installed on that server TCCSERVER.


If you are using the NexusDB Server (nxServer.exe), installed on the
server machine, you don't need a mapped drive. All you need on the
client side is the alias.

> When the user opens the application for the first time from his
> workstation I am looking for an alias on the server. If that alias
> does not exist I create it, from the local machine, not on the server.


Your server installation could create a "root" alias with corresponding
path, then...

> When the alias is created, HAddAlias(ACCPAC, path) you need to map it
> to the local drive of the server.
>
> For example if I was on the server I would create and alias called
> ACCPAC and the path would be, C:\ACCPAC. Now how can I create that
> alias from the local machine?
>
> From the local machine I have no idea where ACCPAC (the shared folder
> on the server) is physically located on the server. It could be any
> drive in any folder.


....a client side session method does exist to get the server side alias
path (GetAliasPath). You can use this method to get the "root" path and
create database aliases (including new directory) under that root.

--
Eivind Bakkestuen [NDD]


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Deployment of EM to clients Germain Cassiere nexusdb.public.discussions 2 1st May 2006 11:04 AM
Borland D2006 Deployment Malcolm Cheyne Binaries 0 25th January 2006 04:58 PM
Deployment? Lauchlan M nexusdb.public.support 6 12th November 2003 08:58 AM
Deployment of Nexus C/S system? Lauchlan M nexusdb.public.support 1 6th November 2003 11:42 AM
Deployment! Atmapuri nexusdb.public.support 1 30th October 2003 06:09 AM


All times are GMT +11. The time now is 01:06 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.