cancel
Showing results for 
Search instead for 
Did you mean: 
mary_v
Pilgrim

automatically delete element from upgrade table

hi,

i need a quick hint:

how can i delete a specific entry (with set a specific ActionProperty and NOT ProductCode) from the upgrade table via script?

I am sure it's something like m_UpgradeTableEntries.Delete any ideas?


my script looks like

Set oProject = CreateObject("ISWiAuto17.ISWiProject")
oProject.OpenProject "D:\InstallShield 2011 Projects\MyProject.ism"
...
For Each m_UpgradeTableEntries In oProject.ISWiUpgradeTableEntries
if ( m_UpgradeTableEntries.ActionProperty = "W_VERSION_FOUND" ) then

m_UpgradeTableEntries.Delete -> won't work Smiley Sad

end if
Next
....

thanks in advance
mv
Labels (1)
0 Kudos
1 Reply
Highlighted
mary_v
Pilgrim

Re: automatically delete element from upgrade table

no idea anybody?

thought it would be easy for you ... Smiley Wink

then - how would i delete only one entry from the upgrade table if exist multiple entries with the same UpgradeCode?

mary
0 Kudos