Jump to content

Nobby Barnes

Member
  • Posts

    7
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United Kingdom

Everything posted by Nobby Barnes

  1. You are spot on.. I will stick to just using this to pull prior versions of software, when installing later versions. The trick will be to get the uninstall string.. Hmm.. I bet I can parse the software name to a CMD script and use some (semi) inteligent scripting to locate the uninstaller.. I could even have some option stuff preset for some software I know of that needs silent switches.. That could work.. but my guess is that IsProgramInstalled("Adobe Acrobat") would not work (match) as the package is "Adobe Acrobat 6", or "Adobe Acrobat 6.0.1"... Hmm..
  2. ARP.. grin.. ok AoRP (Add or Remove Programs) Hmm yes there are several good ways to install apps on a domain.. I personally like GPO pushing MSI installers. I just have to remember to select the advanced option and tick the "uninstall when falls out of scope". and one does have to 'fiddle' with the MSI's occasionally to get them to install properly. but this falls down when the plank of a user installs something like 'smiley central'. Removal requires a visit to the machine in question, whether phisicaly or via remote software. If I was using WPI during startup, from a central folder, I could force off the system anything not on the list.. Yes the user may end up calling the helpdesk when he gets a prompt (if software uninstall is not silent), but we've got him/her by the 'sphericals' at that point. "So why did you install this unauthorised software?" A selection (WPI calling method) can be used to include software we permit. This would also work for workgroups.. Hyena get's close, lists the software, but won't allow you to do anything with it.. Expensive support tools like Kaseya can (with effort) be configured similarly and can uninstall unwanted software.. But a £10k startup cost it's not cheap.. I just love this tool (WPI) and want to get the max from it..
  3. you guys are ACE.. I'll give the new one a try.. Just a quick thought.. does this work for w2k3? as crahak indicated the wmi lookup didn't work on that system.. Next challenge will be cond[pn]=['isInstalled("Adobe Reader 8.1.2")']; cmd1[pn]=[' .... er... wmi lookup the correct product uninstall string .... ']; Better still would there be a posibility of having an 'already installed' Category that auto-populates from ARP? with the uninstall action available as cmd1 ..?? Does this make sense? If this works, I could then concentrate my efforts on creating valid MSI installers for my noddy apps and reg tweaks using the old free WinINSTALL. That way the install/uninstall is in a 'standard' method and maintains full portability.. Far, far in the distance, in an astral plane that was never meant to exist... [[ this worked for other computers withing your LAN (assuming sufficient rights and access). One screen listed computers in the network and their installed software. Hi-lighting a machine allowed new software to be added from a list. ]] ... there appeared a virtual world, where users knew how to behave and didn't experiment with settings and then blame the chief network support wizard. Expecting him to perform acts of magic on their system.
  4. Now I know I can use WMI from vbscript (no flaming PLEASE) to lookup Add Remove Programs (ARP) list and determine if a piece of software is installed. Say "Adobe Reader 8.1.2" How does one do this with 'cond' and 'gcond'? My purpose is to NOT offer a piece of software if it's already installed, via a better test than just picking a file or registry entry at random from what I can see is created uppon test installs. Also can we have an uninstall checkbox? or do I have to: 1/ check if software is installed (via cond) 2/ present the uninstaller.. This just doubles my work if I want to be able to use WPI to control what software is and isn't installed.
  5. Ah then it's a data validition bug in the GUI.. It allows you to press return to start a new line of text and does hot handle this correctly. But I get what you say.. and this is a good solution. wish this kind of control was visible/available in the GUI My point exactly.. Click click.. out of memory error.. Any 'syntax rules' guide/notes/faq ????
  6. I already 'handle' this. for EVERY install action, I create a 'stand-alone' batch file with the install commands. This gives me portability from stand-alone DVD WPI installs to Domain scripted deploys.. I add the following code at the head of every batch.. set cdrom="" FOR %%i IN (D E F G H I J K L M N O P Q R S T U V W X Y Z) DO IF EXIST %%i:\CD.txt SET CDROM=%%i: rem pause if %cdrom%=="" set cdrom=C:\Builds\Win_Base_SW_install If I'm running from CD, then I create CD.txt in the root of the disk. That way I can 'pretest' my install scripts directly on my build system out of the builds folder.. Java just causes 'out of memory' errors in my brain.!
  7. The 'multi-line' ability of the 'description' field is not being handled properly. If you start WPI. Click on config add a new item, In the 'Description' field add a long line of text, including a 'return' (newline). It incorrectly writes the desc[pn] field with a line feed (newline) prog[pn]=['HP TCP/IP Port Monitor']; desc[pn]=['Installs "HP Standard TCP/IP Port" as an available port to connect printers with. This is needed to talk to HP jet Direct network printers']; uid[pn]=['HPTCPIPPORTMONITOR']; dflt[pn]=['yes']; cat[pn]=['Drivers']; forc[pn]=['no']; cmd1[pn]=['"%root%\\Win\\batch\\Add_Printer_portmon.cmd"']; pn++; If you restart WPI.hta, you get 'unterminated string constant' script error. This may possibly be a bug with the interpreting of the desc field (terminating at the newline and not the field end marker) If I manually edit the config.js file and remove the 'return' it works fine.. On a side note, I struggle to appreciate the syntax that one uses for 'condition'. Reading through the (limited) help file I can ony find breif reference to it. I have insufficient (mental) storage capacity to even contemplate learning JavaScript. So if it is 'standard' js condition evalation phrases then I will need some sort of reasonable documentation that lists the syntax, modifiers and some good working examples.. Perhaps I've missed a guide here somewhere.. If I have, my 'Googling' sucks..! Link anyone?
×
×
  • Create New...