×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Modify existing INI file with Wise for Windows Professional Installer

Modify existing INI file with Wise for Windows Professional Installer

Modify existing INI file with Wise for Windows Professional Installer

(OP)
How do I modify/update an existing ini file during my installation? I could do this previously using Wise InstallMaster Script editor by using a "while statement".  But Wise for Windows Professional Installer does not have this Action?

This is probably an obvious question, but I am not familiar with Wise for Windows Professional Installer...Any ideas?

Thanks in advance

RE: Modify existing INI file with Wise for Windows Professional Installer

NikC,

In the Installation Expert there is an INI Files area.  Simply create the folder and Import the INI you want to edit.  Any changes that need to be made to a pre-existing INI file will be made.  You should only have entries specifically for the program you are installing (such as adding Add-On entries to the Lotus Notes notes.ini file).

HtH,

Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-

RE: Modify existing INI file with Wise for Windows Professional Installer

(OP)
Thanks Rob,

Yes, I can create a new ini file using the Installation Expert.  
What I am trying to achieve during my installation is to increment the sections within the ini file based on the number of sections required by the installer.  I can get the number of sections required as I have created a new dialogue box with a numeric edit field.

So really my question is: how do I get my ini file to create multiple sections based on a number entered into an editable field in a dialogue box?

RE: Modify existing INI file with Wise for Windows Professional Installer

One of two ways comes to mind:

1) If there are a finite number of entries allowed then in a feature create several conditions (NumSections=1, NumSections=2, etc.).  Place a modified INI file in each condition.  Your dialog box will need to appear before the WriteINIValues action.  Uninstallation probably won't clean the entries unless you ask the question again.

2) Use VBScript/JScript and the FileSystemObject to programatically create the INI file based on the number of sections.


HtH,

Rob
robschultz@yahoo.com
-Focus on the solution to the problem, not the obstacles in the way.-

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close