Solved

modifying a string table entry via automation

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
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 …
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 …

760 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

19 Experts available now in Live!

Get 1:1 Help Now