Inventor 10 crashes once I uninstall a setup created in .net

Inventor 10 crashes once I uninstall a setup created in .net

Anonymous
Not applicable
501 Views
5 Replies
Message 1 of 6

Inventor 10 crashes once I uninstall a setup created in .net

Anonymous
Not applicable
Hello,
i am customizing inventor 10 in vb.net.
I have created a setup for my code via .net setup project wizard.
It works fine when installed.But the moment i uninstall the setup of my code,inventor crashes and i am unable to start it.
can anyone help me out.
please. its very urgent
0 Likes
502 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
There is a posting on the autodesk.inventor.customer-files that contains the
source code for a simple installer project. (the title of the posting is
"msi installer sample for C# Inventor AddIn" :
news:<5034467@discussion.autodesk.com>

-Venkatesh Thiyagarajan.

wrote in message news:5037459@discussion.autodesk.com...
Hello,
i am customizing inventor 10 in vb.net.
I have created a setup for my code via .net setup project wizard.
It works fine when installed.But the moment i uninstall the setup of my
code,inventor crashes and i am unable to start it.
can anyone help me out.
please. its very urgent
0 Likes
Message 3 of 6

Anonymous
Not applicable
Venkatesh,Thanx for your reply but the code didn't help me much as what i have developed is not an addin.
I have developed some customized interfaces in vb.net
which calls some Inventor APIs...meaning i just have a reference made to the inventor and the apprentice tlb in my application.
i have also created a setup of that application with the help of .net setup projects.
It also successfully installs the application on the machine but
my problem starts when i uninstall the setup of my application.
It simple leaves me with inventor crashed.
I am unable to trace what the uninstallation process does that it crashes inventor.
I have found some turn around to get back inventor in working condition without repairing/re-installing but still i want a clean uninstallation.
can u help me out....
0 Likes
Message 4 of 6

Anonymous
Not applicable
Hmmm.., it is difficult to say what could be wrong without looking at what
is exactly going on during the uninstallation. It seems like you are not
really using the Inventor API in the application but just creating some code
templates that somebody who installs your application can use. Is that
right? If so, then the Inventor AddIn wizards for .NET are similar to what
you are doing, I can take a look at the installer for that and see if we are
doing anything special. But still, I don't see problems with installaling
files for the code templates and removing them during uninstall. You could
try to install and then immediately uninstall the application to see if the
problem exists. If running the application before uninstallation is causing
the problem, it could be possible that there is some reference leak due to
which the Inventor process is not shut down when your applicaiton is shut
down (you can check in the "Task Manager" to see if the Inventor.exe process
is running).

I'm just doing some guessing here, the above might not even be related to
the problem you are seeing. But, anyway, thought I'd just make some
suggestions.

-Venkatesh.


wrote in message news:5038529@discussion.autodesk.com...
Venkatesh,Thanx for your reply but the code didn't help me much as what i
have developed is not an addin.
I have developed some customized interfaces in vb.net
which calls some Inventor APIs...meaning i just have a reference made to the
inventor and the apprentice tlb in my application.
i have also created a setup of that application with the help of .net setup
projects.
It also successfully installs the application on the machine but
my problem starts when i uninstall the setup of my application.
It simple leaves me with inventor crashed.
I am unable to trace what the uninstallation process does that it crashes
inventor.
I have found some turn around to get back inventor in working condition
without repairing/re-installing but still i want a clean uninstallation.
can u help me out....
0 Likes
Message 5 of 6

Anonymous
Not applicable
Hello vinay,

I assume you use Visual Studio Net to create setup for your add-in. I think that there is problem that Visual Studio automatically scans for dependendcies, includes RxInventor.tlb (or apprentice) and sets Register property to vsdrfCOMSelfReg (or similar). If you install your add-in using such installer, then everything is ok. However when you uninstall it, then registry information for RxInventor.tlb is removed from registry. It causes that Inventor crashes during next start. The fix is to re-register RxInventor.tlb or reinstall Inventor.

The solution is to set Register property to vsdrfDoNoRegister (please, see attached image). Please, remember that it applies to setup created using Visual Studio .Net.

Hope it helps,
-jan

> Venkatesh,Thanx for your reply but the code didn't help me much as
> what i h
> ave developed is not an addin.
> I have developed some customized interfaces in vb.net
> which calls some Inventor APIs...meaning i just have a reference made
> to th
> e inventor and the apprentice tlb in my application.
> i have also created a setup of that application with the help of .net
> setup
> projects.
> It also successfully installs the application on the machine but
> my problem starts when i uninstall the setup of my application.
> It simple leaves me with inventor crashed.
> I am unable to trace what the uninstallation process does that it
> crashes i
> nventor.
> I have found some turn around to get back inventor in working
> condition wit
> hout repairing/re-installing but still i want a clean uninstallation.
> can u help me out....
0 Likes
Message 6 of 6

Anonymous
Not applicable
Hi,
I've had the same problems after uninstalling an add-in that was created with VS .NET. The problem is that VS .NET includes the RxInventor.tlb (with Register: vsdrfCOM) in the setup project.
Following modification to the setup project prevents the type library to unregister its types. I've tried this and it works fine! (installing/uninstalling doesn't affect Inventor!)

Open your setup project. Open the 'Detected Dependencies' tree, right click on the RxInventor.tlb and click on 'Exclude'. Rebuild your setup project. That's all!

Robert
0 Likes