aewarnick Posted April 22, 2003 Posted April 22, 2003 Does MS or anyone make a warning you can put in your program if someone does not have the framework and how to get it? All that showes now is about some dll missing. Or, is it possible to make my own error message about that? Quote C#
Xee Posted April 23, 2003 Posted April 23, 2003 Taken from MSDN: "Installers created using Visual Studio .NET deployment tools include a default launch condition (MsiNetAssemblySupport) that checks for the .NET Framework on the target computer. If it is not found, installation is halted and a dialog box displays the following default message to the user: "This setup requires the .NET Framework. Please install the .NET Framework and run this setup again." You should replace this message with a message that is customized for your application's users. For example, if your application is being distributed by CD-ROM, your message might read: "This setup requires the .NET Framework. Please install the .NET Framework by running the file Dotnetfx.exe, which can be found in the NetInstall directory on this CD, and then run this setup again." Quote
aewarnick Posted April 23, 2003 Author Posted April 23, 2003 Seen anything about self running programs? Quote C#
Xee Posted April 23, 2003 Posted April 23, 2003 Not sure if this helps, but to get the version of .NET Framework you can do something like this: Private Sub btnCheckVersion_Click(...) Handles btnTest.Click GetInfo() End Sub Sub GetInfo() Sub GetInfo() Dim Major As String = CStr(System.Environment.Version.Major) Dim Minor As String = CStr(System.Environment.Version.Minor) Dim Build As String = CStr(System.Environment.Version.Build) lblVersion.Text = Major & "." & Minor & "." & Build End Sub End Sub Quote
aewarnick Posted April 24, 2003 Author Posted April 24, 2003 That is helpful for some things but what I wanted was a message that will pop up for a user that does not have the framework at all installed when they click on my program displaying a link label of where to get it. Quote C#
Moderators Robby Posted April 24, 2003 Moderators Posted April 24, 2003 check this... http://www.microsoft.com/downloads/details.aspx?FamilyId=BF253CFD-1EFC-4FC5-BA7E-6A6F21403495&displaylang=en Quote Visit...Bassic Software
gs_london Posted April 25, 2003 Posted April 25, 2003 This worked very well indeed Not very much in the way of instructions but from what I gather it bootstraps the file.msi and the dotnetfx.exe and installs both as needed. Would like to have some control over the setup.exe like icons and message texts but other than that recomended Quote
aewarnick Posted May 8, 2003 Author Posted May 8, 2003 What I would really like to do is put unmanaged code in the beginning of my program. Is this posible and does anyone have a site to direct me to that will teach me how? Quote C#
*Gurus* divil Posted May 8, 2003 *Gurus* Posted May 8, 2003 Do you mean run from the installer, or actually in the program you're installing? Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
aewarnick Posted May 8, 2003 Author Posted May 8, 2003 (edited) Code within my code that is unmanaged. I do not want to use installers yet at all. There is alot of docs on the internet about calling unmanaged dlls from your code but I did not see any that included how to start your program off with unmanaged code. And I don't mean using an unmanaged program to search for the framework and then, if it is found starting the managed program. Though that would work I just think there may be a better way. At the beginning of my program there would need to be unmanaged code to search for the framework, if it is found, the program will use the framework and move on like normal. If it is not found the unmanaged code will display a message with an internet link to the framework. Edited May 8, 2003 by aewarnick Quote C#
*Gurus* divil Posted May 8, 2003 *Gurus* Posted May 8, 2003 I don't think you'll have much luck doing that from C#. Maybe managed C++, but you can't mix and match code like that from a C# application. Quote MVP, Visual Developer - .NET Now you see why evil will always triumph - because good is dumb. My free .NET Windows Forms Controls and Articles
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.