Permissions cannot be the issue because anything that's ran during a startup script uses the system permission level, and the permissions on the share are set to allow 'Everyone' read and execute access, so that's why I'm really doubting permissions as the issue. I hadn't read about the SETOPTION() function of kix, but will take full advantage of it now that I know... thanks. And for a look at the code see below, it just checks the registry, then runs the install:
setconsole("hide") ;hides the dos window
;array containing list of subnets to install on ;as we continue to add subnets, we'll still run on the other subnets that have already been ran on ;to ensure inclusion of everyone $SUBNETS = "168", "169", "170", "171", "228", "229", "86", "221", "223" ;parses for each NIC on the machines that may have more than one NIC For $NIC = 0 to 10 ;if there is no information for the NIC, we've reached the end of available NICs If EnumIPInfo ($NIC, 0) <> "" ;checks every subnet in the array until it finds the subnet of this NIC, or until the ;end of the array is reached without finding this NICs subnet for each $SUBNET in $SUBNETS if($SUBNET = "86") ;the substr function works differently since the 86 is a two-digit ;subnet if((substr(EnumIPInfo($NIC,0),7 ,2)="86") and (substr(EnumIPInfo($NIC,0),9 ,1)=".")) commonTasks endif ;works with all of the other 3 digit subnets else if(substr(EnumIPInfo($NIC,0),7 ,3)=$SUBNET) commonTasks endif endif next EndIf
next
quit(1) ;machine is not to be included, so exit
;*************************************************************************** Function commonTasks
;check to see if it's already installed $Index = 0 :Loop1 $KeyName = ENUMKEY("HKEY_LOCAL_MACHINE\Software\", $Index) If @ERROR = 0 ;quits if the program has already been installed if $KeyName = "LANDesk" quit(1) endif $Index = $Index + 1 goto Loop1 Endif ;if we got here, the client is NOT installed already and must be installed MessageBox("IT is installing new software. This could take up to 20 minutes depending on your machine speed, PLEASE BE PATIENT. " +"You will be prompted to reboot upon completion of the install. " +"If you wish to reboot, then click 'yes', if you do not, then click 'no'. " +"If you click 'no' be sure that you do reboot sometime throughout the day. Thank you." , "Message from IT", 48) ;run the command to install MDAS shell "\\fs2\install$$\mdas.exe" quit(1)
EndFunction
****************END OF CODE************************
The funny part about it, is that I know the script is running for the test machines, but once it gets to that one line it does not run the executable. Some of the test machines run it and install just fine, while the others, receive the message box, and then that's it nothing more. And I've confirmed that the registry key that is used as the check does not exist on the machines that it is not working on. So that's the story, any more pointers would be appreciated. Thanks again.
|