Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9001841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:29:25+00:00 2026-06-16T00:29:25+00:00

I have been searching on the internet for ways to create InstallShield setups using

  • 0

I have been searching on the internet for ways to create InstallShield setups using c#. I came to know that there is one ” InstallShield Automation Library” available for it. But, all the examples I have seen so far only automate the task of building projects already created.

InstallShield Automation Using c#

However what I need is this:

  1. I would first create an InstallShield project (.ISM) manually
    specifying details such as folder structure etc
  2. Then, I want to create a program that will copy the ISM file with
    the new version name, add files to the newly created project file
    and then build it.

Please let me know if its possible and how to proceed.

EDIT: I just came to know that the directories created during installation are called features. So the question may be read as “How to add feature to project file and add files to that feature”

EDIT2 I have found a way of iterating it here:
http://blogs.flexerasoftware.com/installtalk/2010/12/getting-started-with-installshield-automation-and-c.html
Maybe this can help someone prepare the answer.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T00:29:25+00:00Added an answer on June 16, 2026 at 12:29 am

    In simplest terms, in MSI world, a file belongs to a component.
    And the file will be installed if the feature associated with the component is installed.

    So, your task would be to create a component, add the file to it and associate it with a feature.

    1. Create ISWiProject object (say proj).
    2. Call proj.OpenProject and open the existing project.
    3. Call proj.AddComponent and receive ISWiComponent object (say comp).
    4. Set the component’s destination folder(using comp.Destination property).
    5. Call comp.AddFile to specify the source location of the file.
    6. Associate the component to an existing feature.
      For instance, if you have a feature with name feature1, use the following:
      proj.ISWiFeatures.Item(“feature1”).AttachComponent(comp)
    7. Use proj.ProductVersion to change the installer version as per your needs.

    There’s a whole lot of things that you can do via the Automation interface. See the documentation here:
    http://helpnet.installshield.com/installshield16helplib/IHelpAutoISWiProject.htm

    –Jag

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been searching on the Internet about how to create a Session in
I have been searching all over the Internet, but did not find that exact
I have been searching the Internet for good c++ AES code sample/tutorial that teaches
I have been searching the Internet for a solution but not found one, hopefully
I have been searching for this all over the internet, this site claims that
I have been searching the internet for answers but it seems that I can't
I have been searching the internet wildly for an answer to this question. We
I have been searching the internet for days now and I was just wondering
I have been searching for a command that will return files from the current
I have been searching for how to create an animated widget. I have found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.