New Boundary Support Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Identify PCs needing latest app versionExpand / Collapse
Author
Message
Posted 10/13/2006 10:31:05 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 3/11/2008 2:36:44 PM
Posts: 9, Visits: 13
I want to create a config rule like
(EXISTS <File> "C:\Documents and Settings\All Users\Application Data\Prism Deploy\Unapply\NBS Building 5.5< .PWR")
but don't know how to search for less than 7 in the file name

I thought of using grepmatches[1-6] but I am uncertain how to us it in the middle of a file name eg
"...Unapply\NBS Building 5.5& grepmatches[1-6] & .PWR")

Post #1378
Posted 10/17/2006 12:16:52 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 10:05:18 AM
Posts: 655, Visits: 811
It's not possible to use two different comparison operators (Exists and Matches or Grepmatches) on the same data. However, there is another way to get what you're looking for. Set up a config group using a rule like this:

Exists <Registry Value> "HKEY_LOCAL_MACHINE\SOFTWARE\Lanovation\PictureTaker\Users\%username%\Unapply Files\\68E037F1-09E4-4133-B30E-2C00169F9602". If the value exists, it means a package containing user-specific data has been installed, and there is a separate rollback file for that user's data.

The number in red needs to be changed to the unique identifier for your package. To find out the number, simply open the NBS Building 5.5.PWC file in the Editor, go to File|Properties|Information, and look at the unique ID value. 

Let us know if this helps you out.



New Boundary Technologies Support
support@newboundary.com

Post #1379
Posted 10/18/2006 1:13:53 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Moderators
Last Login: Yesterday @ 10:05:18 AM
Posts: 655, Visits: 811

Thank you for providing more information about what you’re trying to accomplish. As mentioned in the earlier reply, there isn’t a way to combine the use of "exists" and "grepmatches."

 

Perhaps the easiest way to find out if systems need to be updated is to check the version of the application’s main executable. For example, if laceName w:st="on">NBSlaceName> laceType w:st="on">Building'laceType>s main executable is nbsbuilding.exe, you could make a configuration group based on a rule like this:

 

(EXISTS <File> "C:\Program Files\NBSBuildingbsbuilding.exe")

AND 

(<File Version> "C:\Program Files\NBSBuildingbsbuilding.exe" < "5.1.3")

 

Otherwise, you could create a compound rule to look for the existence of previous versions' rollback files, and the non-existence of the most version's recent rollback file. Here’s an example:

 

((EXISTS <File> "%allusersprofile%\Application Data\Prism Deploy\Unapply\NBS Building 5.5.1.pwr") OR  (EXISTS <File> "%allusersprofile%\Application Data\Prism Deploy\NBS Building 5.1.2.pwr")) AND  (NOT EXISTS <File> "%allusersprofiles%\Application Data\Prism Deploy\Unapply\NBS Building 5.1.3.pwr")

 

Let us know if this helps.



New Boundary Technologies Support
support@newboundary.com

Post #1382
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: New Boundary Support

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 10:18pm

Powered By InstantForum.NET v4.1.3 © 2008
Execution: 0.187. 12 queries. Compression Enabled.