cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
jjb8297
Level 6

files not being removed

Greetings,

I have an installer that dependant on a unlock code will install the files that make up is associated witht he unlock code. However, there is a group of files that are not being removed and I am not sure why that is the case.

They seem to be set up correctly, but I was wondering if anyone has any ideas on what could be causing this. Thanks.

JD
Labels (1)
0 Kudos
(13) Replies
TsungH
Level 12

You will want to generate a verbose uninstallation log for clues.
0 Kudos
jjb8297
Level 6

TsungH wrote:
You will want to generate a verbose uninstallation log for clues.


how do you do that?
0 Kudos
TsungH
Level 12

There are two ways. One is to turn on system policy (see http://msdn2.microsoft.com/en-us/library/aa369776.aspx) and enable logging for all Windows Installer packages.

The other is to provide command line parameter, which depends on your release configurations, setup.exe or not. You can find all switches available at Support.
0 Kudos
jjb8297
Level 6

TsungH wrote:
There are two ways. One is to turn on system policy (see http://msdn2.microsoft.com/en-us/library/aa369776.aspx) and enable logging for all Windows Installer packages.

The other is to provide command line parameter, which depends on your release configurations, setup.exe or not. You can find all switches available at Support.


I am probably doing this incorrectly, but I followed the steps in the link above and got nothing when I uninstalled the app.

This is the strangest thing I have seen so far with Installshield (and I have to admit I have seen some strange things since I started using this application), I could have 20 files in my application, of those 10 of them are left behind as orphans.

I have gone through the installshield project itself and done some major cleanup, and I am still gettingt he same results.

For the files that are left behind I compare the settings against the ones that are removed when I do a uninstall. The settings are the same, but yet it does not get removed.

In case you can't tell, I am a wee bit frustrated with this, I just want the orphans to go away when I uninstall the app. Just like the rest of the files of that make up the application. 😄
0 Kudos
RobertDickau
Flexera Alumni

To create an uninstall log, perhaps run a command similar to this:

msiexec /i ProductName.msi REMOVE=ALL /L*v uninstall.log

One possibility is that the files' shared reference counts are greater than zero after uninstallation, meaning the files should stay around...
0 Kudos
jjb8297
Level 6

RobertDickau wrote:
To create an uninstall log, perhaps run a command similar to this:

msiexec /i ProductName.msi REMOVE=ALL /L*v uninstall.log

One possibility is that the files' shared reference counts are greater than zero after uninstallation, meaning the files should stay around...


That was what I was thinking, so I changed that setting on the files in question and in the middle of rebuilding the project and seeing if that will solve it.

If that is the case, then why would some of the files be removed and others not? Thanks for the suggestion. I will see what I find out. 🙂
0 Kudos
jjb8297
Level 6

jjb8297 wrote:
That was what I was thinking, so I changed that setting on the files in question and in the middle of rebuilding the project and seeing if that will solve it.

If that is the case, then why would some of the files be removed and others not? Thanks for the suggestion. I will see what I find out. 🙂


The setting I changed on the files is to turn off the shared, changing it from Yes to No and still got the same result. I did run the MSIEXEC command you gave and not seeing anything that signifies an error.

I am still very puzzled by why some files are removed and others are not in the same directory. Getting to the point where I may need to rebuild the installer, but that wouldn't be the road I want to go down at this stage.

I have attached two screen shots, one has the settings for a file that is not removed, with the shared set to No (it use to be Yes, but still did not go away). The second is an exe file that is removed.
😞
0 Kudos
RobertDickau
Flexera Alumni

In the log file you created during uninstallation, are the un-removed files mentioned at all? Anything about "client still exists" or the like?
0 Kudos
jjb8297
Level 6

RobertDickau wrote:
In the log file you created during uninstallation, are the un-removed files mentioned at all? Anything about "client still exists" or the like?


For the CDSDK there is no entries like the one you mentioned above, there is 4 separate entries for it based on the edition that I am installing.

I have 4 editions of my software and they are express, enterprise, professional and one other whose name is escaping me right now.

MSI (s) (30:A0) [08:42:09:596]: Component: CDSDK.dll_Express_Root_1; Installed: Local; Request: Absent; Action: Null

MSI (s) (30:A0) [08:42:09:612]: Component: CDSDK.dll_Professional_Root_2; Installed: Local; Request: Absent; Action: Null

MSI (s) (30:A0) [08:42:09:612]: Component: CDSDK.dll_Enterprise_Root_3; Installed: Local; Request: Absent; Action: Null

MSI (s) (30:A0) [08:42:09:612]: Component: CDSDK.dll_Express_Art_Root_4; Installed: Local; Request: Absent; Action: Null

This is the only time it appears in the log file, there is no mention of not being able to uninstall this file in the log.

I am seeing this entry
MSI (s) (30:A0) [08:42:09:237]: Disallowing uninstallation of component: {55EB89C8-343D-4A52-8CEF-234DE6C4C5A1} since another client exists

and I tried to see if this was in my project and don't see it, and searched the registry to see if it is in there and was not able to find it. So I have no idea what component this is?
0 Kudos
RobertDickau
Flexera Alumni

That GUID might be from a merge module; if you open the built MSI (and not the ISM project file), do you see it? A quick web search suggests it's related to ATL.

Are there perhaps leftover reference counts (from earlier test runs) in the registry at HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDLLs?
0 Kudos
jjb8297
Level 6

RobertDickau wrote:
That GUID might be from a merge module; if you open the built MSI (and not the ISM project file), do you see it? A quick web search suggests it's related to ATL.

Are there perhaps leftover reference counts (from earlier test runs) in the registry at HKLM\Software\Microsoft\Windows\CurrentVersion\SharedDLLs?


I looked in the registry key suggested above and found some entries in there, I am removing them and re running the install again. Although, I seem to remember running this on a VPC image and getting the same results. However, I will try it again and see what my result.

Can't be any worse than the last time I ran it. :rolleyes:
0 Kudos
jjb8297
Level 6

😄
jjb8297 wrote:
I looked in the registry key suggested above and found some entries in there, I am removing them and re running the install again. Although, I seem to remember running this on a VPC image and getting the same results. However, I will try it again and see what my result.

Can't be any worse than the last time I ran it. :rolleyes:


:cool: Sweet. Finally got this to work, thank you for the registry entries check, I made one other change to my project in regards the shared files. And ran it through a number of tests and hey presto, it cleans up after itself when it is being uninstalled from the machine.

Thanks again for your help.
0 Kudos
RobertDickau
Flexera Alumni

Great news---thanks for posting the follow-up.
0 Kudos