Click here to Skip to main content
15,846,091 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 77.9K   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 7:14
Vojtěch Klíma2-Feb-18 7:14 
QuestionAll setup projects with cutom dll(.net dependent or not) requires .net framework..? Pin
Amit Bhatia20-Jul-09 23:12
Amit Bhatia20-Jul-09 23:12 
I have made a custom dll for my setup project. My dll is very simple, registering few services, not CLR or any 3rd party lib dependent. Have statically linked with msi.lib only.

I have removed the .net and windows installer prerequisite requirements from the setup project. My setup fails on macines not having .net framework..?

As I have not having any .net dependent code, what should be the solution to this. I don;t want user to download framework first for installation.

Regards Amit
GeneralAnd even another method Pin
PCV-Cameroon10-Oct-06 5:00
PCV-Cameroon10-Oct-06 5:00 
GeneralRe: And even another method Pin
Al Forno22-May-07 8:56
Al Forno22-May-07 8:56 
GeneralA more human way: "how to do it via script" Enjoy Pin
Cohen Shwartz Oren24-Jul-06 3:49
Cohen Shwartz Oren24-Jul-06 3:49 
GeneralDocumented way for same issue via Visual Studio UI Pin
Gene Gorokhovsky11-Apr-06 8:21
Gene Gorokhovsky11-Apr-06 8:21 
GeneralRe: Documented way for same issue via Visual Studio UI [modified] Pin
Al Forno24-Jul-06 7:06
Al Forno24-Jul-06 7:06 
GeneralRe: Documented way for same issue via Visual Studio UI Pin
howenActions8-Aug-07 20:30
howenActions8-Aug-07 20:30 
GeneralDIRCA_CheckFX and VSDCA_VsdLaunchConditions Pin
Hannes Pavelka15-Feb-06 4:27
Hannes Pavelka15-Feb-06 4:27 
GeneralRemove .NET dependency from .MSI file Pin
jj_maniz15-Feb-05 14:09
jj_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    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.