PDA

View Full Version : Remove File Table



Dennis Marks
04-19-2006, 12:17 PM
We have placed a support request on the remove file table via that automation tool. The Support engineer stated to add a post on the Beta 12 on this issue. So here is the information.

We are heavy users of Installshield automation. We need to do minor upgrades via automation. Manually entering this info through the IDE is not an option. Doing only major upgrades is not an option. When I do an "objComponent->RemoveFile(objFile);" no entry is made in the msi RemoveFile table, nor does there seem to be an option on the call, or a separate call to get the RemoveFile table populated. How do I do this??

Incident # SIOA-000047857


Without this functionality, this hinders our automation process!

hidenori
04-19-2006, 01:10 PM
The ISWiComponent->RemoveFile(objFile) is for removing the specified file from the File table. In order to directly modify the tables in a project, I would suggest you to use the Windows Installer APIs to accomplish your requirements. To open your project using the Windows Installer API, you need to save it as a MSI file by setting ISWiProject->UseXMLProjectFormat property to false and calling ISWiProject->SaveProject() method.

Hope this helps.

RobertDickau
04-19-2006, 03:10 PM
For a couple examples of modifying a project file using MSI Automation (to access tables not exposed by the InstallShield Automation interface), perhaps see these DevLetter tips:

Modifying Path Variables with Automation (http://www.installshield.com/news/newsletter/0402-articles/modify.asp)
Using MSI Automation to Modify a Developer 7 Project (http://www.installshield.com/news/newsletter/0203-articles/msi-automation.asp)