Solved

modifying a string table entry via automation

Posted on 2013-01-02
2
856 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
A short article about problems I had with the new location API and permissions in Marshmallow

749 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