This is what I have gotten so far... Any assistance would be appreciated.



 Code:
BREAK ON
CLS

;$windir = READVALUE('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion','SystemRoot')
$systemdrive = SUBSTR($windir,1,2) ; -- This will show C: or M: or what drive Windows is installed on
$PathString = 'S:\Lync'

IF INGROUP (Lync_USERS)

	IF EXIST ($systemdrive+'\Program Files (x86)')
	
		GOTO "64Bit"

   
   	ELSE
		GOTO "32Bit"
ELSE

GOTO "END"

:64Bit

IF EXIST ($systemdrive+'\program files\microsoft office 15\root\office15\lync.exe')
      	? "This is 64bit OS"
	SLEEP 3
       	'Lync is being installed.  Please wait..'
       	SLEEP 3

       	;CD  \\usmiadc01\Software$\Lync\
       	RUN "$PathString\setup.exe /configure configuration-en-64.xml"
       
   ELSE
	GOTO "END"


ENDIF

:32Bit

IF EXIST ($systemdrive+'\program files\microsoft office 15\root\office15\lync.exe')
      	? "This is 32bit OS"
	SLEEP 3
       	'Lync is being installed.  Please wait..'
       	SLEEP 3

       	;CD  \\usmiadc01\Software$\Lync\
       	RUN "$PathString\setup.exe /configure configuration-en-64.xml"
       	RETURN
   ELSE
	GOTO "END"


ENDIF		

	
	ENDIF
ENDIF

:END
Exit




Edited by Glenn Barnas (2015-08-20 01:47 AM)
Edit Reason: Using CODE tags will preserve your formatting!