am using InstallShield Automation Interface to automate my packaging process. I am tryng to use ISWiAutoUpgradeEntries method of ISWiProject object from VBscript to get the details of specific auto upgrade item entry from upgrade items list. I used the code given in install shield automation interface help library but it fails to find the upgrade item and return the "Automation Error: Element not found" error message.
Sample VBScript code:
Sample VBScript code:
<skip>
Set m_ISWiProj = CreateObject("IswiAuto19.ISWiProject")
m_ISWiProj.OpenProject("C:\Installer\MyApp.ism")
Set m_AutomaticUpgradeEntries = m_ISWiProj.ISWiAutoUpgradeEntries("SearchItem")
<skip>
Error message on execution:Set m_ISWiProj = CreateObject("IswiAuto19.ISWiProject")
m_ISWiProj.OpenProject("C:\Installer\MyApp.ism")
Set m_AutomaticUpgradeEntries = m_ISWiProj.ISWiAutoUpgradeEntries("SearchItem")
<skip>
c:\Installer\test.vbs(17, 1) ISWiAuto19: Automation error
Element not found.
> ISWiAutomation.IswiAutomaticUpgradeEntries.Initialize
> ISWiAutomation.IswiProject.IswiAutoUpgradeEntries
Can anyone explain me how to solve this or what is wrong here?Element not found.
> ISWiAutomation.IswiAutomaticUpgradeEntries.Initialize
> ISWiAutomation.IswiProject.IswiAutoUpgradeEntries