ZedZip
ZedZip

Reputation: 6470

MSI: How to add rows to 'Upgrade' table in c#?

I have a Visual studio Setup project. After MSI is built I apply transformation. It adds 2 rows to 'Upgrade' table (properties P1,P2)and modifies Property SecureCustomProperties from

PREVIOUSVERSIONSINSTALLED;NEWERPRODUCTFOUND

to

PREVIOUSVERSIONSINSTALLED;NEWERPRODUCTFOUND;P1;P2

How I can do it in VS Setup to avoid this transformation applying?

Upvotes: 1

Views: 332

Answers (2)

Stein Åsmul
Stein Åsmul

Reputation: 42136

Honestly, truly, really - do spend the time to convert to Wix. See this similar post: Add remove programs show increased size after each REINSTALL of my msi product

Upvotes: 2

Christopher Painter
Christopher Painter

Reputation: 55581

You can't avoid this using VS Setup. It's one of many design limitations of the tool. Either live with it through postbuild hacks or rewrite your installer using another tool such as WiX.

I maintain an open source project called IsWiX. This has project tempates and visual designers that make it easy to do such a task.

Upvotes: 1

Related Questions