GoldNova
GoldNova

Reputation: 353

Prevent automatic adding of dependencies in visual studio installer projects

I am currently working on a project, which is using the wix installer but now we want to migrate to the "visual studio installer projects" .msi installer.

The problem is that the vs installer is adding all the dependencies automatically, even though it is not necessary because we're using referenced .DLLs from another programm, which will always be installed.

Here is what i mean:

Installer File system

I added the two .DLLs in the red rectangle in the installer file explorer and the installer just added a bunch of junk as dependencies itself.

All the Autodesk .DLLs are NOT NEEDED because they always exist on the target machine!

How do I get rid of the junk files? It is bloating the installer to insane levels, which are not acceptable according to the customer.

Upvotes: 2

Views: 608

Answers (1)

Jingmiao Xu-MSFT
Jingmiao Xu-MSFT

Reputation: 2337

You can try this method:

1.Right-click on the Autodesk.dll file in Solution Explorer and choose Exclude.

enter image description here

2.Change Exclude to True in the properties

enter image description here

Hope it can help you.

Upvotes: 2

Related Questions