Urgent help - INNO and uninstallation

Hello group,

I have an INNO script file for installation and uninstallation. It works fine however, on some machine the uninstallation part causes trouble. Basically, it installs a COM server and registers it in Windows regsitery but it doesn't uninstall the COM server from register. Meanting after installation is over and says that all things are removed still user can see it in Excel.

How should I use  REGSVR32 /U  /A_FOLDER/MYAPP.DLL ?

Regards,
ak
akohanAsked:
Who is Participating?
 
2266180Connect With a Mentor Commented:
well, I usually (read always) use the following for COM stuff:

in files section I palce:
Source: "path to ocx/dll/exe"; DestDir: "{app}"; Flags: regserver

and that works just fine. did you try this way?
0
 
akohanAuthor Commented:


I believe after uninstallation phase the entry which is created during installation must deleted. Right? if so, then how come it still exists in regsitery?

Thanks.
ak
0
 
MerijnBSr. Software EngineerCommented:
is it still there after you reboot?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
akohanAuthor Commented:

Yes, since it is a DLL (COM Add-IN) for Excel so I look under:

HEKY_CURRENTLY_USER
   Software
     Microsoft
       Office
          Excel
            Addins
              MyToolBox.CToolboxConnect


Any advice?

Regards,
ak

p.s. is there any setting that could avoid this? I mean a setting that could avoid unregistering DLL files in Windows.




                   
0
 
2266180Commented:
well, I usually (read always) use the following for COM stuff:

in files section I palce:
Source: "path to ocx/dll/exe"; DestDir: "{app}"; Flags: regserver

and that works just fine. did you try this way?
0
 
2266180Commented:
first time I get to use QuickEE after 5 months of inactivity and the simplest and most basic operation: reply is giving errors. that reminds me why I want to write my own such application. damn thing. if anyone with delete power gets around here, use it :)
0
 
Wayne Taylor (webtubbs)Commented:
0
 
akohanAuthor Commented:

Hi Ciuly,

Yes, I'm using the same thing and it works fine on all computers except on one machine that is giving me hard time since it is my boss' computer !!! and he wants to know why it doesn't work on his.

This is what I use:
Source: "C:\Development\VB6.0\TheProjectDir\File.dll"; DestDir: "{pf}\MyApp Dir\"; Flags: regserver



Any comments?

Regards,
ak



0
 
akohanAuthor Commented:


I think there must be an issue or setting maybe in his Windows but have no idea how to look for it.
0
 
2266180Commented:
well, considering that jsut yesterday I put an end to a weeks hell of one ISAPI dll not wanting to work on IIS 6 but worked perfectly on IIS 5.1, and the problem was, hold on, access rights reading/executing the dll (geez). I am thinking: maybe same problem? is you bosses computer on some windows server? or was it configured by somebody (maybe if it's in a domain, by the domain controller) to be strict in respect to access rights.
the problem would be a setup in which he needs some special (admin) rights to install the application. that is fine, he logs in with admin or "runs as" admin but in this case, uninstallation must be done with admin as well.

one idea would be to require explicitly admin rights
in
[Setup]
...
PrivilegesRequired=admin
...

but as you now probably think, is is a problem of system configuration. we need to know what is so special about his configuration in order to properly fix this.
but I'm thinking that the above fix with admin priv requiremenet should solve the problem.
0
 
akohanAuthor Commented:

Hi Ciuly,

You brought up a very interesting point. Just to give you a brief explanation the progam is a COM Addin server for Office and it creates a custom design menu in Excel environment. In this point, after doing the uninstall and installaing a new version still the old program will be shown up when you run Excel. In fact, it become zombie but I definitely will do what you mentioned.

Once again thanks and I will get back to you soon.

Regards,
ak
0
 
2266180Commented:
just in case it's needed, I subscribe to mlmcc's questions.
also, I don't see the reason for a delete, since there are some good pieces of information here.
0
 
akohanAuthor Commented:


Hi Ciuly,

The problem I found was in the registry and after I fixed it , it worked well. However, you posted a new parameter that we can use in INNO which was PrivilegesRequired=admin and it was interesting. However, it didn't solve the problem but again it is helful for future readers so let's keep the thread.

Once again thanks,
ak
0
 
2266180Commented:
I see. well, you'll have to keep noted somewhere that something corrupts your registry entry, and note as much as possible every software running and version from your bosses computer. next time you get such behaviour, you can crosscheck and hopefully track down which application was the cause
0
 
akohanAuthor Commented:

Ok. Thanks for your response.

Regards,
ak
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.