Click here to Skip to main content
Click here to Skip to main content

Remove .NET dependency from .MSI file

, 8 Feb 2005
Rate this:
Please Sign up or sign in to vote.
Have an MSI that is forcing installation of the .NET Framework even though your application doesn't use it? Here's how to fix it.

Introduction

I created an application that needs to be deployed to many different machines running many versions of Windows. My app is pretty basic and does not require the .NET Framework. I created a setup project in Visual Studio .NET 2003 and tested it on a new install of Windows 98. The installer popped up a message notifying to me that I HAD to install the .NET Framework before continuing with the installation. I looked for an option to turn off that install condition, but could find none.

I did some research and learned about ORCA, the .MSI editor. I downloaded ORCA, which is part of Microsoft's Windows Installer SDK, and went to work trying to remove the .NET dependency.

After a few minutes of experimentation, I found the solution. I went to Edit->Find and searched for all instances of the string VSDCA_VsdLaunchConditions. I deleted every row that contained that string and saved the .MSI file. Lo and behold! The installer no longer asked for the .NET Framework.

Hope this helps someone out there that's as frustrated as I was.

History

  • 8th February, 2005: Initial post

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Mark Harmon
Architect Deacon Software
United States United States
No Biography provided

Comments and Discussions

 
QuestionAll setup projects with cutom dll(.net dependent or not) requires .net framework..? PinmemberAmit Bhatia20-Jul-09 22:12 
GeneralAnd even another method PinmemberPCV-Cameroon10-Oct-06 4:00 
GeneralRe: And even another method PinmemberMark Harmon22-May-07 7:56 
GeneralA more human way: "how to do it via script" Enjoy PinmemberCohen Shwartz Oren24-Jul-06 2:49 
GeneralDocumented way for same issue via Visual Studio UI PinmemberGene Gorokhovsky11-Apr-06 7:21 
GeneralRe: Documented way for same issue via Visual Studio UI [modified] PinmemberMark Harmon24-Jul-06 6:06 
GeneralRe: Documented way for same issue via Visual Studio UI PinmemberhowenActions8-Aug-07 19:30 
GeneralDIRCA_CheckFX and VSDCA_VsdLaunchConditions PinmemberHannes Pavelka15-Feb-06 3:27 
GeneralRemove .NET dependency from .MSI file Pinmemberjj_maniz15-Feb-05 13:09 
GeneralRe: Remove .NET dependency from .MSI file PinsussMark Harmon (aka Alforno)15-Feb-05 13:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140721.1 | Last Updated 8 Feb 2005
Article Copyright 2005 by Mark Harmon
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid