Click here to Skip to main content
Licence CPOL
First Posted 8 Feb 2005
Views 49,112
Bookmarked 8 times

Remove .NET dependency from .MSI file

By | 8 Feb 2005 | Article
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

Member



Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
QuestionAll setup projects with cutom dll(.net dependent or not) requires .net framework..? PinmemberAmit Bhatia22:12 20 Jul '09  
GeneralAnd even another method PinmemberPCV-Cameroon4:00 10 Oct '06  
GeneralRe: And even another method PinmemberMark Harmon7:56 22 May '07  
GeneralA more human way: "how to do it via script" Enjoy PinmemberCohen Shwartz Oren2:49 24 Jul '06  
GeneralDocumented way for same issue via Visual Studio UI PinmemberGene Gorokhovsky7:21 11 Apr '06  
GeneralRe: Documented way for same issue via Visual Studio UI [modified] PinmemberMark Harmon6:06 24 Jul '06  
GeneralRe: Documented way for same issue via Visual Studio UI PinmemberhowenActions19:30 8 Aug '07  
GeneralDIRCA_CheckFX and VSDCA_VsdLaunchConditions PinmemberHannes Pavelka3:27 15 Feb '06  
GeneralRemove .NET dependency from .MSI file Pinmemberjj_maniz13:09 15 Feb '05  
GeneralRe: Remove .NET dependency from .MSI file PinsussMark Harmon (aka Alforno)13:29 15 Feb '05  

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.

Permalink | Advertise | Privacy | Mobile
Web04 | 2.5.120517.1 | Last Updated 8 Feb 2005
Article Copyright 2005 by Mark Harmon
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid