I've made a menu for the install cd of our soft. It works only on 2 computers which has Visual Studio installed.
开发者_C百科When I try it on others, which have just .Net framework installed, it just crashes...
Also, I wrote the short program in C#, and of course if .Net framework is not installed, I would like to launch the installation instead of the menu cd. Is there any way to do this with autorun file ?
In reply to the part about the autorun file, I am guessing you must have used the publish feature of visual studio. I find your question confusing, but i think you want to load an installer off of the CD instead of loading your menu application(Correct me if i am wrong). To do that, you wull have to edit the AUTORUN.INF file. The standard format of this file is:
[autorun]
open=application.exe
icon=application.exe/application.ico
action=This will be shown when you right-click the icon in my computer
label=The label in my computer
replace application.exe with the path of your installer, and if you want a custom icon, put the path to the icon after icon=. The action and label text both affect what is seen in 'My Computer'
You will have to write a native (read: C/C++) application that has no dependency on any installed library by statically linking to it. This application will check for the proper version of the .NET framework. If it is not installed, it will the start the installer. Otherwise, you can launch your application.
精彩评论