/build/static/layout/Breadcrumb_cap_w.png

Updating One Line of INI during Install

Greetings,

I am currently finishing up repacking Adobe Reader 8.0 -- only part left I need to do is integrate with Interwoven iManage (document management software). To do this, one line of an INI needs to be updated to point to the new version of Reader. The original entry in the INI that I need to update appears as;

[ACROBAT]
APPNAME=Acrobat Reader
PRIMARY=Y
PATH=C:\Program Files\Adobe\Reader\acrord32.exe
DDE=N
ODMA=N
DDEAPPNAME=
DDETOPIC=
DDEOPEN=
DDERDOPEN=
DDEPRINT1=
DDEPRINT2=

I need to update the path to reflect the new version; "C:\Program Files\Adobe\Reader 8.0\Reader\AcroRd32.exe"

This INI file does not reside within the Adobe structure, it's location is "C:\Program Files\Interwoven\WorkSite\NRTDD.INI"

The easiest way to accomplish this would be to make an updated INI file and include it within the transform to copy over during the install (in AdminStudio Tuner, System Configuration > Files and Folders). The problem is there are other programs referenced in this INI; MS Word, MS PowerPoint, MS Excel, etc.

Is it possible to update just one line inside an INI during install, instead of overwriting the whole file?

If not, it's not the end of the world, but I figured this would be cleaner in case this becomes a trend, and having to keep track of what package overwrites what INI in what order.

Thanks in advance for any help, suggestions, and/or guidance

0 Comments   [ + ] Show comments

Answers (2)

Posted by: aogilmor 17 years ago
9th Degree Black Belt
0
Yes, if you use the INI file section of Wise's product it would do that for you. If you don't have Wise, you can use Orca (free from micrsoft) to edit the INIfile table. See the msi.chm help file for reference.
Posted by: JdotQ 17 years ago
Senior Purple Belt
0
aogilmor,

Thank you for the informative reply -- I'm not sure how I missed this in the first place [8|]

In case other people are wondering the same thing, you can achieve this in AdminStudio Tuner by browsing to;

System Configuration > INI Files

Depending where the original INI file is that needs to be updated, you can right click on Destination Computer and select Show Folder, and select what system folder the INI resides. For example, "WindowsFolder" = "C:\Windows" in WinXP, or "ProgramFilesFolder" = "C:\Program Files"

You can right click on the folder and select "New INIfile" -- rename this to the name of the file you wish to update/change

Right click on this newly added file and select "New Section", title the new section whatever the value is between the [ ] -- in my example, this would be "ACROBAT"

The Key is the value of everything BEFORE the "=" -- in my example, this would be "PATH"
The Value is everything AFTER the "=" -- in my example, this would be "C:\Program Files\Adobe\Reader\acrord32.exe"

The Action has 3 choices; (1) Add Tag, (2) Create Line, (3) Add Line -- these values correspond with (1) msidbIniFileActionAddTag, (2) msidbIniFileActionCreateLine, (3) msidbIniFileActionAddLine in the SDK -- for my example, I used "Add Tag"


I hope this post is able to help other people [:)]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ