Hi friends,

I want to make automated build in install shield.Here developers using TFS for source management.
I have some Questions,

1. How trigger build button pro-grammatically
2. how to add the files in install shield pro-grammatically.     

it's big Question for me.Already I have checked with google about msbuild,iscmdbld,automation interface,but i'm not getting proper answer & brief explanation.
I want to start to end can you help me. 
1 Comment   [ + ] Show Comment

Comments

  • I have done this. I will dig out some notes. Its not too hard, but you do need to test the steps
Please log in to comment

Answers

0
Set m_ISWiProject = CreateObject("IswiAuto18.ISWiProject") 

'To open an installation project, call the OpenProject method, as follows: 

    ' Build path to the .ism file 
    Dim=strFile

    strFile = "C:\InstallShield 2012 Projects\My Project Name-1.ism" 

    m_ISWiProject.OpenProject strFile 

I have used the above script in vbs but it's not working.It's says compilation error.
can you help me anybody..?
Answered 03/06/2015 by: perumal9791
Yellow Belt

Please log in to comment
0
From the (admittedly scant) investigations I made when this question was asked a while ago, documentation for IS's object model is non-existent. You would be far better off using Wix, as many, many people in your position do. Aside from anything else, Wix has a healthy and knowledgeable community who'll be able to help you. 
Answered 03/02/2015 by: VBScab
Red Belt

Please log in to comment
0
What about using of Installshield's Automation Interface? There are following objects available:

ISWiProject Object

ISWiRelease Object
(please google for description of the rest of them :)

 ISWiAdvancedFile Object
 ISWiAutomaticUpgradeEntry Object
 ISWiCustomAction Object
 ISWiComponent Object
 ISWiComponentSubFolder Object
 ISWiCondition Object
 ISWiDimDependency Object
 ISWiDimReference Object
 ISWiDynamicFileLinking Object
 ISWiEnvironmentVar Object
 ISWiFeature Object
 ISWiFile Object
 ISWiFolder Object
 ISWiLanguage Object
 ISWiObject Object
 ISWiPathVariable Object
 ISWiProductConfig Object
 ISWiProperty Object
 ISWiRelease Object
 ISWiSequenceRecord Object
 ISWiSetupFile Object
 ISWiSetupType Object
 ISWiShortcut Object
 ISWiSISProperty Object
 ISWiSQLConnection Object
 ISWiSQLDatabaseServer Object
 ISWiSQLReplace Object
 ISWiSQLRequirement Object
 ISWiSQLScript Object
 ISWiStringEntry Object
 ISWiUpgradeTableEntry Object

And check some tips and C# code here:
http://stackoverflow.com/questions/13814473/programatically-create-installshield-packages
Answered 03/02/2015 by: rad33k
Orange Senior Belt

  • I Dont know how to use ISWIProject object..
Please log in to comment
0

Last time I did this (best job ever!!)
We used the iscmdbld.exe. I wont give you the full answer, but have a look at the cmd arguments and you should be OK.

You say your searches are not giving you what you want??? What exactly do you want??

You run the build by using the iscmdbld.
you have to have your ISM. I would recommend setting up a release in that first.

What files are you trying to add automatically???
Create the ism, use relative paths, it will add the files in as you go. If you are writing code, building that into binaries for a products, if you add a new binary file, you will have to add that into the MSI via the ISM in a component, associated with a feature.

Oh, free tip. save the ISM in XML format. That will be handy later on in ways you cant imagine now.

 

Answered 03/02/2015 by: Badger
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity