Why is .NET 2.0 required to deploy an app using VC2005 C++ Setup project?

I just created a setup project for my mfc app.  I noticed that in the 
prerequisites section the .NET 2.0 is checked by default.  My app does not 
need the framework (at least this is what I think).  If I clear the 
checkbox, build the project, and then try to deploy it on a machine with 
..NET 1.1 the installer fails with a message complaining about missing .NET 
2.0.

I'm not sure if this the installer that needs the framework or my app.  Are 
there any mfc8 dlls dependant on the framework?

Thanks 


0
rob1164 (5)
6/18/2007 7:39:04 PM
vc.mfc 33608 articles. 0 followers. Follow

8 Replies
878 Views

Similar Articles

[PageSpeed] 11

Hi,

> I just created a setup project for my mfc app.  I noticed that in the
> prerequisites section the .NET 2.0 is checked by default.  My app
> does not need the framework (at least this is what I think).  If I
> clear the checkbox, build the project, and then try to deploy it on a
> machine with .NET 1.1 the installer fails with a message complaining
> about missing .NET 2.0.

Please post the exact error message.

> I'm not sure if this the installer that needs the framework or my
> app.  Are there any mfc8 dlls dependant on the framework?

No, MFC does not depend on the Framework.

Check you project properties: Configuration Properties : General : Common 
Language Runtime Support = "No Common Language Runtime support".

Did you use the Project wizard to create a new project? Which type did you 
select?

--
SvenC 

0
SvenC (45)
6/18/2007 7:51:31 PM
I don't remember the exact error message (and can't run the setup at the 
moment).  The message basically said that .NET 2.0 is required.

I do have "No Common Language Runtime support" set to "No".
I'm now certain that this is not MFC or my app because I could run the app 
on the same target machine by installing it manually (i.e. creating 
necessary folders, copying files, creating shortcuts, etc.).

I used Setup And Deployment.Setup Project.

Thanks


"SvenC" <SvenC@community.nospam> wrote in message 
news:%23UwGRIesHHA.4196@TK2MSFTNGP03.phx.gbl...
> Hi,
>
>> I just created a setup project for my mfc app.  I noticed that in the
>> prerequisites section the .NET 2.0 is checked by default.  My app
>> does not need the framework (at least this is what I think).  If I
>> clear the checkbox, build the project, and then try to deploy it on a
>> machine with .NET 1.1 the installer fails with a message complaining
>> about missing .NET 2.0.
>
> Please post the exact error message.
>
>> I'm not sure if this the installer that needs the framework or my
>> app.  Are there any mfc8 dlls dependant on the framework?
>
> No, MFC does not depend on the Framework.
>
> Check you project properties: Configuration Properties : General : Common 
> Language Runtime Support = "No Common Language Runtime support".
>
> Did you use the Project wizard to create a new project? Which type did you 
> select?
>
> --
> SvenC 


0
rob1164 (5)
6/18/2007 8:13:41 PM
Hi,

> I don't remember the exact error message (and can't run the setup at
> the moment).  The message basically said that .NET 2.0 is required.

Maybe you can provide that later on.

> I do have "No Common Language Runtime support" set to "No".
> I'm now certain that this is not MFC or my app because I could run
> the app on the same target machine by installing it manually (i.e.
> creating necessary folders, copying files, creating shortcuts, etc.).
>
> I used Setup And Deployment.Setup Project.

Which Detected Dependencies are shown in your Setup project in the Solution 
Explorer?

After unchecking the .Net dependency did you really rebuild the setup before 
copying the setup to the target machine?
Which files/direcories have been created?

--
SvenC 

0
SvenC (45)
6/18/2007 8:24:49 PM
- Error:
This setup requires the .NET Framework version 2.0.50727.  Please Install 
the .NET Framework and run....

- Detected dependencies:
DSOUND.dll
Microsort_VC80_CRT_x86.msm
Microsort_VC80_MFC_x86.msm
msi.dll
MSIMG32.dll
msxml4.dll
policy_8_0_microsoft_vc80_crt_x86.msm
policy_8_0_microsoft_vc80_mfc_x86.msm
QUARTZ.dll
VERSION.dll
WININET.dll

- Directories/files created (by the setup project on my dev machine, is this 
what you asked for?):
<appname>.msi
setup.exe

I have no prerequisites selected in the project properties.  I think I could 
clear the "Create setup program" to get rid of setup.exe.  Still, this will 
not solve the .NET 2.0 dependency because running the .msi on its own 
generates the same error.

An yes, I did rebuild the project.

Thanks again.

"SvenC" <SvenC@community.nospam> wrote in message 
news:%23QYW4aesHHA.4868@TK2MSFTNGP02.phx.gbl...
> Hi,
>
>> I don't remember the exact error message (and can't run the setup at
>> the moment).  The message basically said that .NET 2.0 is required.
>
> Maybe you can provide that later on.
>
>> I do have "No Common Language Runtime support" set to "No".
>> I'm now certain that this is not MFC or my app because I could run
>> the app on the same target machine by installing it manually (i.e.
>> creating necessary folders, copying files, creating shortcuts, etc.).
>>
>> I used Setup And Deployment.Setup Project.
>
> Which Detected Dependencies are shown in your Setup project in the 
> Solution Explorer?
>
> After unchecking the .Net dependency did you really rebuild the setup 
> before copying the setup to the target machine?
> Which files/direcories have been created?
>
> --
> SvenC 


0
rob1164 (5)
6/18/2007 8:46:19 PM
Hi,

> - Error:
> This setup requires the .NET Framework version 2.0.50727.  Please
> Install the .NET Framework and run....
>
> - Detected dependencies:
> DSOUND.dll
> Microsort_VC80_CRT_x86.msm
> Microsort_VC80_MFC_x86.msm
> msi.dll
> MSIMG32.dll
> msxml4.dll
> policy_8_0_microsoft_vc80_crt_x86.msm
> policy_8_0_microsoft_vc80_mfc_x86.msm
> QUARTZ.dll
> VERSION.dll
> WININET.dll

Looks OK.

> - Directories/files created (by the setup project on my dev machine,
> is this what you asked for?):
> <appname>.msi
> setup.exe

Looks OK, too.

> I have no prerequisites selected in the project properties.  I think
> I could clear the "Create setup program" to get rid of setup.exe. Still, 
> this will not solve the .NET 2.0 dependency because running
> the .msi on its own generates the same error.

I do select Windows Installer 3.1 to ensure that a proper installer version 
might be installed if the target doesn't have it.
But I doubt that is the problem, otherwise you could not start the msi 
directly.

Sorry, I am out of ideas.

--
SvenC 

0
SvenC (45)
6/18/2007 9:01:44 PM
I appreciate your help.

FYI,  I hacked the msi file with Orca editor and deleted auto-generated 
custom action that checks for framework version: DIRCA_CheckFX.  I also 
deleted  VSDCA_VsdLaunchConditions.  I did it based on the following: 
http://geekswithblogs.net/pavelka/archive/2006/02/14/69425.aspx
http://www.codeproject.com/useritems/removedotnet.asp?df=100&forumid=151443&exp=0&select=1371941

It works but this makes me wonder what causes VS to put that stuff in msi.
I'll try to post the question to msi group.

Thanks again.


"SvenC" <SvenC@community.nospam> wrote in message 
news:D4567896-1C0F-4A7C-855C-F4741A096C9F@microsoft.com...
> Hi,
>
>> - Error:
>> This setup requires the .NET Framework version 2.0.50727.  Please
>> Install the .NET Framework and run....
>>
>> - Detected dependencies:
>> DSOUND.dll
>> Microsort_VC80_CRT_x86.msm
>> Microsort_VC80_MFC_x86.msm
>> msi.dll
>> MSIMG32.dll
>> msxml4.dll
>> policy_8_0_microsoft_vc80_crt_x86.msm
>> policy_8_0_microsoft_vc80_mfc_x86.msm
>> QUARTZ.dll
>> VERSION.dll
>> WININET.dll
>
> Looks OK.
>
>> - Directories/files created (by the setup project on my dev machine,
>> is this what you asked for?):
>> <appname>.msi
>> setup.exe
>
> Looks OK, too.
>
>> I have no prerequisites selected in the project properties.  I think
>> I could clear the "Create setup program" to get rid of setup.exe. Still, 
>> this will not solve the .NET 2.0 dependency because running
>> the .msi on its own generates the same error.
>
> I do select Windows Installer 3.1 to ensure that a proper installer 
> version might be installed if the target doesn't have it.
> But I doubt that is the problem, otherwise you could not start the msi 
> directly.
>
> Sorry, I am out of ideas.
>
> --
> SvenC 


0
rob1164 (5)
6/18/2007 9:36:25 PM
I finally managed to fix the problem.  While examining the content of 
associated vdproj file I noticed a "Launch Conditions" section with .NET 2.0 
in it.  I then went back to the project in VS and opened Launch Conditions 
editor. I was quite surprised to see .NET node attached to the Launch 
Conditions folder.  The node was in error (i.e. had a red exclamation icon). 
I'm not sure where this thing came from.  I definitely did not put it there. 
Anyway, after deleting  it the .msi was created without .NET dependencies.




0
rob1164 (5)
6/18/2007 10:09:05 PM
Rob wrote:
> I finally managed to fix the problem.  While examining the content of
> associated vdproj file I noticed a "Launch Conditions" section with
> .NET 2.0 in it.  I then went back to the project in VS and opened
> Launch Conditions editor. I was quite surprised to see .NET node
> attached to the Launch Conditions folder.  The node was in error
> (i.e. had a red exclamation icon). I'm not sure where this thing came
> from.  I definitely did not put it there. Anyway, after deleting  it
> the .msi was created without .NET dependencies. 

Good to see it fixed and a nice help, if others stumble about it.

--
SvenC
0
SvenC (45)
6/19/2007 6:20:58 AM
Reply:

Similar Artilces:

Lookup based on criteria in 2 columns
Hi, I am trying to use a vlookup or other function to return the value in the amount column based on the location and date. Here is a sample of my data: Location Date Amount 101 9/15/8 10 101 9/16/8 20 101 9/17/8 15 102 9/15/8 50 102 9/16/8 75 102 9/17/8 67 For example if I wanted to return the amount for location 102 on 9/15/8, what formula would I use? I tried using variations of vlookups but had no luck. Thanks, =SUMPRODUCT(--(A2:A50=102),--(B2:B50=DATE(2008,9,15)),C2:C50) -- Regards, Peo Sjo...

Microsoft POS #2
I have a group of customers that I am working on setting up A bundled POS system for. I have looked at RMS and Microsoft POS. The customer's are small bulk food stores. They package all of the bulk food in various containers and weigh it with a Hobart scale producing a label with an system 2 price enbedded barcode. These are UPC A formats. They are for the most part simple single store installs and donot require the complex RMS system. I have setup the Microsoft POS version 2.0 and found it will work perfect for these customers. The only problem when you programed the system you l...

Outlook 2003 keeps crashing #2
I get this message when I look in System information. Outlook keeps crashing quite often. I cannot for example delete two messages without outlook crashing. My colleagues do not have this problem. We are using the Microsoft mail exhange server. Faulting application outlook.exe, version 11.0.5510.0, stamp 3f1380f0, faulting module mso.dll, version 11.0.5606.0, stamp 3f334cce, debug? 0, fault address 0x003b6e16. Does anyone has a solution?=20 Best regards/ Bj=F6rn 1) I would definitely apply Service Pack 2for Office 2003 + applicable critical security updates. 2) Have you tried starting O...

Using expression builder object
Hi, I'm developing a wizzard in Access which builds import templates for various data sources to a fixed set of tables. In step 3 the users must be able to build an expression ; for instance Left([Fieldx],20) . Now I would like to have a command button on my form which calls the Access expression builder to allow the users to use this to build the expression. This expression will then be stored in a text box linked to the templates table. Anybody know how to call and use this object from VBA code? -- Kind regards Noëlla DoCmd.RunCommand acCmdInvokeBuilder I th...

Rollup 2 and Office 2007
I already have Roll Up 1 and the Office 2007 compatibility patch installed. If I now install roll up 2 will I have to reinstall the office 2007 compatibility? yes -- Regards, MS CRM Certified Professional http://microsoftcrm3.blogspot.com Chat with me on MSN / Gmail / Skype : ID Is :.. mscrmexpert@gmail.com "LLoyd" wrote: > I already have Roll Up 1 and the Office 2007 compatibility patch installed. > If I now install roll up 2 will I have to reinstall the office 2007 > compatibility? ...

Using part of a cell in a chart title
I have a chart which should get a title. However, this should be partly be used from a cell e.g. "counted with 5%" 5% should be taken from the cell and used in the title. Is this possible? Hi, Yes it's possible but all of the chart title needs to be in the cell. So you may need to use a helper cell and concatenate text and value. http://www.andypope.info/tips/tip001.htm Cheers Andy -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info "Nicole" <Nicole@discussions.microsoft.com> wrote in message news:5CB7A971-AA7F-4C34-BB42-7DC283AA2958@micro...

copy my vb project... is it as easy as copying the directory..
Hi, I want to take a copy of a project so I have two projects the same.. the idea is i can play around with one, and not effect the original.. is it as easy as just using file explorer to copy the directory from say c:\project1 to c:\project2... or do the project files like forms etc have paths in them and therefore I can't just copy like this.. thanks "AussieRules" <nospam@nospam.com> wrote in message news:uzrSvxp6KHA.5112@TK2MSFTNGP02.phx.gbl... > Hi, > > I want to take a copy of a project so I have two projects the same.. the > i...

Copy entire row where CellValue=0
I need to loop through the collumn and search for value that is more then 0. When I find it I need to copy whole row and paste it 2-3 rows below the table. I tried to select the collumn and search the selection but for some reason I copy and paste only one row. Thank you for any help. Hi as a starting point: http://www.rondebruin.nl/copy5.htm -- Regards Frank Kabel Frankfurt, Germany "OxanaB" <OxanaB@discussions.microsoft.com> schrieb im Newsbeitrag news:8628F791-CF2D-480A-9EBF-6C31BCEF0293@microsoft.com... > I need to loop through the collumn and search for value tha...

How do I use traffic lights in excel
I am wanting to use traffic lights in excel that change colour based on the result of a variance cell, ie if the result of the cell is 10 make the traffic light green, if it is 20 make the traffic light amber, if the result is 30 make the traffic light red. How do I do this? Shorty Format>Conditional Formatting>Cell Value is: Note: you can add up to 3 conditions(4 if you count default) Gord Dibben Excel MVP On Wed, 22 Dec 2004 16:35:03 -0800, Shorty <Shorty@discussions.microsoft.com> wrote: >I am wanting to use traffic lights in excel that change colour based on the &g...

Filter recordset using query results
Hi all I have a form based on a query called [qry Quarterly Planning], it lists all Itineraries on the system. On this form you can filter records by specifying a Start and End Date for the [ReviewDate] and/or [Specialist]. It is a subform on a main unbound form, lets call this Subform1. Along side this I have another subform (Subform2) which displays ReviewDates that exist against an Itinerary. In other words Subform1 has a start date of an activity and if the activity lasts longer than 1 day, then the additional dates are stored in Subform2 (ItineraryDates). Currently when I...

Please ignore #2
Testing a posting problem -- Jim Bunton ...

Outlook freezes after sending one email after upgrading 4.0
We just upgraded from 3.0 to 4.0 this weekend. All client machines have had the desktop client upgraded and 2 have the same issue. One is XP with Outlook 2003 and the other is Vista with Outlook 2007. Open opens and the CRM addin initializes correctly. As soon as you compose and send an email, Outlook locks up and you have to kill the process in task manager to close Outlook. I've had the same problem and have tried all I can think of...how did you fix this issue? Thank you. "Sander" wrote: > We just upgraded from 3.0 to 4.0 this weekend. All client machines have...

2 register ruinning together on one z report
Is this possible, to have two registers running on one z report ? We have a small store and would like to setup a second register as a backup, temporary addition ( during rush hours) Since we are a small show i do not need to have a separate register reports. Can two registers ring up all sales together as one ? How can i set this up ? No, you can't do that. You might be able to use the Register Analysis report available in SO Manager Utilities/Crystal Reports to get something close to a single Z though. Glenn Adams Tiber Creek Consulting http://www.tibercreek.com glenn@tibercreek.c...

Using Visio HTML output within frames
Hi, I want to include visio HTML output in a frame of another html file. Unfortunately it is not working. I understood the problem is in vml_*.htm files. It is due to, the target arrtibute(pointing to _parent) in v:shapetype tag and href attribute (pointing to #) in v:shape tag. These attributes should point to "_top" and "<target-html-file>#" respectively inorder to work. I want to change these options while saving .vsd as web page? I would appreciate if you can help me in this regard. <v:shapetype id="VISSHAPE" target="_parent" coor...

Upgrade CRM 4.0 Professional to CRM 4.0 Enterprise
When I enter the CRM license code in the Deployment Manager to upgrade to Enterprise I get a message "The license code entered is not valid for upgrade. Make sure you have entered the license code correctly, and then try again". Do I have to reinstall CRM 4 to install Enterprise? Hi, what is your current installation? Professional? Have you entered trial version license keys ? /Aamir Current is Professional. I got the key from our MSDN subscription which didn't indicate a trial license. I was able to install the Enterprise edition on a test server using the same key w...

Newbie Question: Using Web Services
Hello All. I've been trying to implement Infopath with CRM with no success. I've tried the example, http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnmbscrm1_2/html/mbs_crminfopathcrmintegration.asp, to no avail. I have followed the example to the letter, but find the information about publishing the Web Service to the server to be somewhat lacking. Admittedly, I am not a programmer, and I am continually running into an error in line 54: xmlDoc.LoadXml(objQuery.ExecuteQuery(objBizUser.WhoAmI(), strAllAccountsFetchXML)); Has anyone else ...

matching contents #2
E1 thru E10 contains sequentially-sorted data. B1 thru B6 contains sequentially-sorted data which matches SOME (but not ALL) of the data in Col A. For example. B E 1 1 1 2 3 2 3 4 3 4 5 4 5 6 5 6 10 6 7 7 8 8 9 9 10 10 I need to move the data in the cells in Col B next to the cells in Col E that have the same contents. For example: B E 1 1 1 2 2 3 3 3 4 4 4 5 5 5 6 6 6 7 7 8 8 9 9 10 10 10 Besides dr...

Outlook Express 5 #2
On loading, error message "MSIMN caused an invalid page fault in module DIRECTDB.dll at 017f:7dbf3070.." Appeared to coincide with display config change? Ask in an Outlook Express forum. This is an Microsoft Office Outlook forum. Outlook Express is family of Internet Explorer and Outlook of the Office family. Here is the link for the right forum http://communities.microsoft.com/newsgroups/default.asp?icp=InternetExplorer Good Luck! -- Roady [MVP] www.sparnaaij.net Microsoft Office and Microsoft Office related News Also Outlook FAQ, How To's, Downloads and more... Tip of...

Workbook_Open Help #2
Hello Frank, Here's the code Private Sub Workbook_Open() ' Call Unhide_Sheets ' Sheets("CONTROLPANEL").Select Range("A1").Select Call Splash End Su -- Fabl ----------------------------------------------------------------------- Fable's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=218 View this thread: http://www.excelforum.com/showthread.php?threadid=26252 Hi and there's no application.screenupdating=false statement in your unhide procedure? -- Regards Frank Kabel Frankfurt, Germany "Fable" <Fable.1d07w...

CRM 1.2 12-02-05
I have installed MS CRM 1.2 on a SBS 2003 server. Problem is I can only start the application if I log onto the server usind the server administrator account. If I try to access using a domain users account I just get a page cannot be displayed error, could somebody please help... Have you added the appropriate domain users as crm users using the deployment manager? "Redders" <Redders@discussions.microsoft.com> wrote in message news:D80FF8B4-78F1-4334-ACB5-2F772F0CF3B6@microsoft.com... > I have installed MS CRM 1.2 on a SBS 2003 server. Problem is I can only start >...

Does CRM have a Microsoft Project like add-on?
Hello All: Does anyone know if CRM has a Microsoft Project like add-on? I was using Microsoft "Project Central" (which had it's own issues), but am looking for something like that. The best of both worlds would be an interface between the two packages. I am open to any suggestions. -Bill Project Central (v2000) was the first attempt to take MS Project to a server-based centralized solution. They have made great strides in more recent version. The latest is called "Project Server 2003" which is part of the "Enterprise Project Management Solution&q...

reason codes #2
I'm having a big problem tracking discounts in RMS. Whenever something is discounted up front, a reason code is set. There are several I use for discounts. However, when I try to do an Item Movement History report and select based on those reason codes, I never get any matches. When I do an item history report for a few weeks, I notice that the only reason codes that are displayed are the ones pertaining to inventory adjustment. It seems that reason codes associated with discounts do not display in this report. HELP! I need these to display to track discounts (and also store use)! ...

outlook express 6.0 in ms 98
I cant seem to delete any of my sent mail messages in Outlook express 6.0 i am operaitng in ms 98..up to 8400 messages now. Please help ! At the risk of being obvious, click on the first item in your sent items folder while holding down the shift key. Then scroll to the bottom and click the last item. That will select them all - or you can use any range you desire. Then just click the delete icon or press the delete button. Once done, you might want to empty the deleted items folder (assuming it doesn't tell you there isn't enough room there and they'll be permanently delete...

Listing 'last used' date
Hi folks. We have literally hundreds of databases and my boss wants me to try and produce a listing where we can idenatify the tables etc., and link a 'last used' date, in order to delete those that are no longer used. Has anyone any ideas about how to go about this? Mike MacKinnon wrote: > Hi folks. We have literally hundreds of databases and my boss wants > me to try and produce a listing where we can idenatify the tables > etc., and link a 'last used' date, in order to delete those that are > no longer used. > > Has anyone any ideas about how to go abou...

Auto setup user with settings
Is there a way to configure outlook 2003 that connects to an exchange 2003 server so that anytime I create a new user on the terminal server.I would like it not prompt to prompt for all the user settings every time. I would like it to take all the defualt settings. Also I would like to set this up with out a reinstall Have you looked at the Office Resource Kit for assistance? --� Milly Staples [MVP - Outlook] Post all replies to the group to keep the discussion intact. Due to the (insert latest virus name here) virus, all mail sent to my personal account will be deleted without rea...