Click here to Skip to main content
15,884,176 members
Articles / Operating Systems / Windows

Remove .NET dependency from .MSI file

Rate me:
Please Sign up or sign in to vote.
2.43/5 (9 votes)
8 Feb 2005CPOL 78.3K   8   11
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)


Written By
Architect
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
SuggestionWay on how to do in in Visual Studio Pin
Vojtěch Klíma2-Feb-18 6:14
Vojtěch Klíma2-Feb-18 6:14 
QuestionAll setup projects with cutom dll(.net dependent or not) requires .net framework..? Pin
Amit Bhatia20-Jul-09 22:12
Amit Bhatia20-Jul-09 22:12 
GeneralAnd even another method Pin
PCV-Cameroon10-Oct-06 4:00
PCV-Cameroon10-Oct-06 4:00 
GeneralRe: And even another method Pin
Al Forno22-May-07 7:56
Al Forno22-May-07 7:56 
GeneralA more human way: "how to do it via script" Enjoy Pin
Cohen Shwartz Oren24-Jul-06 2:49
Cohen Shwartz Oren24-Jul-06 2:49 
GeneralDocumented way for same issue via Visual Studio UI Pin
Gene Gorokhovsky11-Apr-06 7:21
Gene Gorokhovsky11-Apr-06 7:21 
GeneralRe: Documented way for same issue via Visual Studio UI [modified] Pin
Al Forno24-Jul-06 6:06
Al Forno24-Jul-06 6:06 
GeneralRe: Documented way for same issue via Visual Studio UI Pin
howenActions8-Aug-07 19:30
howenActions8-Aug-07 19:30 
GeneralDIRCA_CheckFX and VSDCA_VsdLaunchConditions Pin
Hannes Pavelka15-Feb-06 3:27
Hannes Pavelka15-Feb-06 3:27 
GeneralRemove .NET dependency from .MSI file Pin
jj_maniz15-Feb-05 13:09
jj_maniz15-Feb-05 13:09 
GeneralRe: Remove .NET dependency from .MSI file Pin
Mark Harmon (aka Alforno)15-Feb-05 13:29
sussMark Harmon (aka Alforno)15-Feb-05 13:29 

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

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