PP-1268: Extend new windows installer to automate server/execution/client/comm config modes

Overview: 

  • Forum discussion
  •  The current MSI installer in windows installs and configures the system for standalone single execution host. On comparing with Linux RPM installers, MSI installers are lacking to provide support to install PBS_MOM/PBS_COMM/Commands only installation. This use case helps the windows admins to configure server/execution/client/comm only in case of multiple execution hosts. 
  • The solution to this problem is to add a new interface called "-t| --type <user value>" to the "win_postinstall.py" script to accept the type of installation. The choices are server/execution/client/comm.

Interface: Adding new interface switch to specify the type of installation. (-t | –type <user value>)

  • Visibility             :  Public 
  • Change Control : Stable
  • Privilege             : Administrator user privilege 
  • Value                  :  server/execution/client/comm
  • Detail                  :  While installing, user need to specify any one value as "type" of installation using "-t|–type" argument.
                                   a) If type is not specified, defaults to server type installation

                                         b) If the user specified client/execution/comm and its must to specify the value for server using "-s |–server" argument.

                                         c) Along with this support for type of installation, win_postinstall.py script will un-register the persisting services 

                                             (PBS_SERVER, PBS_SCHED, PBS_COMM, PBS_MOM) for making user life easy. 


                                            [If the user had failed to unregister the services from system registry during previous MSI un-installation.

                                            A new installation takes care while installing next version of MSI by uninstalling those services 

                                            Else new MSI will just install promptly without any un-installation steps.] 

                           

Example
 C:\Program Files (x86)\PBS\exec\etc>python win_postinstall.py -u <user name> -p <password> -t < installation type> 
 -or-
 C:\Program Files (x86)\PBS\exec\etc>python win_postinstall.py --user <user name> --passwd <password> --type < installation type>

For client/execution/comm only installation:

C:\Program Files (x86)\PBS\exec\etc>python win_postinstall.py -u <user name> -p <password> -t < installation type> -s <server> 
 -or-
C:\Program Files (x86)\PBS\exec\etc>python win_postinstall.py --user <user name> --passwd <password> --type < installation type> --server <server>