Solved

modifying a string table entry via automation

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

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

A short article about problems I had with the new location API and permissions in Marshmallow
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Progress

690 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