Gary,
I don't really think that I need the .NET Framework. My app is a simple
C++/MFC project with no .NET stuff. You solved the problem however in that
I hadn't noticed that the .NET Framework was checked in the Prerequisites
window and also the "Download prerequisites from the component vendor's web
site" radio button was selected. So the installer was going off to download
a file that wasn't really needed.
When I changed the radio button selection to "Download prerequisites from
the same location as my application", then the Framework was put into a
folder of it's own within the distributable folder. Unfortunately this
added 25MB to the size of the app. My .exe is only 128KB and the VSC++
runtime libraries are about 2.6MB so there's a lot of overhead for the
Framework.
So I unchecked the box for the Framework and selected the radio button for
getting the libraries from the app folder itself and I was able to complete
the install.
Thanks for the feedback. It's very difficult to understand the
documentation that supposedly describes creating a Setup project. It would
be nice it there were a few more walkthroughs of typical projects beside the
Notepad example.
Ed
[quoted text, click to view] ""Gary Chang[MSFT]"" <v-garych@online.microsoft.com> wrote in message
news:hLItU03FHHA.1652@TK2MSFTNGHUB02.phx.gbl...
> Hi Edward,
>
>>How can I get all the files my app needs into the distributable folders?
>
> I suggest you can add the .NET Framework 2.0 as a prerequisite to your
> application's setup project.
>
> To do this you need to create a bootstrapper--in Solution Explorer,
> right-click the setup project and then click Properties. In the Property
> pages box click Prerequisites and then check Create setup program to
> install the prerequisite components. Choose .NET Framework 2.0 and specify
> the install location for prerequisites. In current case, you can choose
> the
> "Download prerequisites from the same location as my application ".
>
> After building your setup project, VS2005 would create a dotnetfx folder
> which contains the .NET Framework Version 2.0 Redistributable Package as
> well as your installation package. Your customer should use the
> "setup.exe"
> to launch the installation process.
>
> Please refer to the following MSDN documentation for the details:
>
> Using Visual Studio 2005 to Redistribute the .NET Framework 2.0
>
http://msdn2.microsoft.com/en-us/library/aa480239.aspx >
>
> Thanks!
>
> Best regards,
>
> Gary Chang
> Microsoft Online Community Support
> ==================================================
> Get notification to my posts through email? Please refer to
>
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif > ications.
>
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
>
http://msdn.microsoft.com/subscriptions/support/default.aspx. > ==================================================
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
>