Indigo Rose Software

Go Back   Indigo Rose Software Forums > Old Versions > Visual Patch 1.0

 
 
Thread Tools Display Modes
  #1  
Old 01-25-2001
chian chian is offline
Forum Member
 
Join Date: Jul 2000
Posts: 6
Grin In INI files, how to obtain value of a key when part of a Section is unknown?

Below is part of an INI file located under %AppDir%. The number "1920" is assigned randomly by the installation program and is unique to each workstation. Is there a way to read what the actual Key is? In my case it is "1920" under [MACHINE ID]. The value of the Key varies.
If I can get a variable (%MyVar%) assigned with 1920, can I use it to access a Key under [ID 1920] by maybe using [ID %MyVar%]?
In the end, what I need is to read/modify the Key BuildID.

-------------------------------------
[MACHINE ID]
1920=user

[ID 1920]
installdate=01/26/2001 12:05:47 AM
updatedate=01/26/2001 12:05:47 AM
buildID=0025
-------------------------------------

Thanks,
Carlos

  #2  
Old 01-26-2001
Mark's Avatar
Mark Mark is offline
Indigo Rose Staff Member
 
Join Date: Jun 2000
Location: Indigo Rose Software
Posts: 1,773
Re: In INI files, how to obtain value of a key when part of a Section is unknown?

Hi,
Sorry but getting the key value really is not possible using Visual Patch. The only thing I could suggest doing is using the Windows API to enumerate all the KEYS in a SECTION. This would have to be accomplished by running an external program that you design.

mark.

[This message has been edited by Mark (edited 02-13-2001).]
__________________
MSI Factory The Next Generation Intelligent Setup Builder
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software