Solved

modifying a string table entry via automation

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
A short article about problems I had with the new location API and permissions in Marshmallow
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

895 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now