|
solidworks addins & vb.net applications
i have been able to create a vb.net app to add macros to a solidworks menu as an addin, but i had to run the app with .net running to install it is there a way to create a .exe file in vb.net to do this, so you don't have to have the .net framework on the machine you are running solidworks on
no. the .net framework contains all the library files for the language that your exe gets compiled into.
.net 2.0 comes installed on all systems since xp sp2
thanks for your reply - what is best way to install a solidworks addin on a machine that has solidworks and xp . do you just need to register the dll created by .net that is used for the addin ?
unfortunately it is not simple to create a seamless installer. to do it manually you just run regasm.exe (c:\windows\microsoft.net\framework\v2.0.50727) to register your dll which effectively is the stage that is run automatically when you compile your project in vs.net
i have a j script that finds the regasm.exe and registers the addin but at this point i've only been able to distribute a .bat file which runs the j script which the user must manually run after the install. i've tried to get the windows installer project to run the j script or the .bat file during the install using a custom action but i can't seem to make that work. if anyone knows how to use custom actions i'd be happy to share my scripts.
quick |
|