cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vinodn1
Level 4

Best way to create a list of Components and the Source/Destination paths??

Is there any way of creating the list of Components and their Source/Destination paths in an InstallScript project? I have a very long list of Components, so the manual process takes too long.
Labels (1)
0 Kudos
(4) Replies
RobertDickau
Flexera Alumni

When are you trying to create this list? At build time, or run time, or ...?
0 Kudos
vinodn1
Level 4

At any time is ok. This is for reporting/documentation and other similar purposes.
0 Kudos
RobertDickau
Flexera Alumni

You can use InstallShield Automation on the .ism project file, for example:

' change ProgID for your InstallShield version
set ism = CreateObject("ISWiAuto15.ISWiProject")

ism.OpenProject "InstallScript2009.ism"

for each comp in ism.ISWiComponents
WScript.Echo comp.name & " going to " & comp.Destination
next ' comp

ism.CloseProject: set ism = Nothing


P.S. This being VBScript code to run using cscript /nologo thisfile.vbs in a command prompt...
0 Kudos
vinodn1
Level 4

Thanks Robert, I will try that out.
0 Kudos