?
Solved

modifying a string table entry via automation

Posted on 2013-01-02
2
Medium Priority
?
899 Views
Last Modified: 2013-01-03
Hello,

I want to modify a string table entry value, already present, in my .ism file, via Installshield automation.
But, I can't figure out how to do this.

The entry that I want to modify is in the ISString table.
And I know the ID of the string entry itself.
And I know what I want to change the value to.

I just can’t figure out what the code should look like.

I am already using automation to open the .ism file and change a number of entries for various things, before saving it and then building the .MSI file.

I’d would be grateful  for an example, from someone who has done such a thing.

Thanks in advance for considering my request for help.
0
Comment
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 2000 total points
ID: 38740494
Here's VB6-based pseudo-code, hopefully it will make sense. It will change the value of the row with id = "IDPROP_SETUPTYPE_COMPLETE" in the table ISStrings from the initial "Complete" to "Almost Complete".
    set isd = createobject("ISWiAuto16.ISWiProject")
    isd.OpenProject "<path>"
    
    For Each t In isd.ISWiLanguages(1).ISWiStringEntries
        If t.ID = "IDPROP_SETUPTYPE_COMPLETE" and t.Value = "Complete" Then t.Value = "Almost Complete"
    Next
    isd.SaveProject
    isd.CloseProject

Open in new window

0
 
LVL 1

Author Closing Comment

by:Accidental Hyper-V Administrator
ID: 38740616
Very nice.
Thank you so much.
:)
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Progress
Starting up a Project

800 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question