Is there a way that a VB Script can edit an Ini file created at the time of launching an application for the 1st time and the place it in the user profile.
I have repackaged an .msi using Wise package studio. When this msi is launched for the first time after installation, it creates a .ini file which contains Licensing server details, port number & a location where user can save his/her work in a private folder.
While checking the .ini file created by .msi after launch, I found out that it contains incorrect license server details & was pointing to my user profile. Hence I want to know, is there a way through which I can overwrite the .ini file created by .msi and copy it to the user profile path.
Thanks in advance !!
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
anonymous_9363
7 years ago
Does the MSI use the INIfile table or does it treat it as a file? If the former, use a transform to:
- create a property or properties containing the server details
- reference the property/properties in the INIFile table's values.
- create a property or properties containing the server details
- reference the property/properties in the INIFile table's values.
If the MSI contains any advertised entry-points (e.g. advertised shortcut(s)) you'll need to re-jig the feature tree in order to use self-healing so that the INI goes in to the user's profile.
If the latter, it gets a little more complicated.
Seek out the rather wonderful JSWare INI file class (search ITNinja for 'clsINI'). Create a VB Script to edit the relevant section's values and set up your transform to run it using Active Setup.