Click here to Skip to main content
11,493,233 members (58,781 online)
Click here to Skip to main content

Remove .NET dependency from .MSI file

, 8 Feb 2005 CPOL 58K 8
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)

Share

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..? Pin
Amit Bhatia20-Jul-09 23:12
memberAmit Bhatia20-Jul-09 23:12 
GeneralAnd even another method Pin
PCV-Cameroon10-Oct-06 5:00
memberPCV-Cameroon10-Oct-06 5:00 
GeneralRe: And even another method Pin
Mark Harmon22-May-07 8:56
memberMark Harmon22-May-07 8:56 
GeneralA more human way: "how to do it via script" Enjoy Pin
Cohen Shwartz Oren24-Jul-06 3:49
memberCohen Shwartz Oren24-Jul-06 3:49 
GeneralDocumented way for same issue via Visual Studio UI Pin
Gene Gorokhovsky11-Apr-06 8:21
memberGene Gorokhovsky11-Apr-06 8:21 
GeneralRe: Documented way for same issue via Visual Studio UI [modified] Pin
Mark Harmon24-Jul-06 7:06
memberMark Harmon24-Jul-06 7:06 
GeneralRe: Documented way for same issue via Visual Studio UI Pin
howenActions8-Aug-07 20:30
memberhowenActions8-Aug-07 20:30 
GeneralDIRCA_CheckFX and VSDCA_VsdLaunchConditions Pin
Hannes Pavelka15-Feb-06 4:27
memberHannes Pavelka15-Feb-06 4:27 
GeneralRemove .NET dependency from .MSI file Pin
jj_maniz15-Feb-05 14:09
memberjj_maniz15-Feb-05 14:09 
GeneralRe: Remove .NET dependency from .MSI file Pin
Mark Harmon (aka Alforno)15-Feb-05 14:29
sussMark Harmon (aka Alforno)15-Feb-05 14: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 | Terms of Use | Mobile
Web03 | 2.8.150520.1 | Last Updated 8 Feb 2005
Article Copyright 2005 by Mark Harmon
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid