cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Chris_Edwards
Level 3

uninstall does not uninstall all files.

If I create a basic msi project and just use the defaults the application installs and un-installs OK.
If i change the default installation location in the project assistant by inserting my own folder, some of the files are not un-installed

I am new to all this so please be gentle 🙂
Regards
Chris
Labels (1)
0 Kudos
(8) Replies
Barbara
Level 7

I would suggest to write a verbose MSI-logfile of the uninstallation and then search for the filenames in this logfile. Have also a look at the component which contains the files, maybe it is set as permanent.

Barbara
0 Kudos
Chris_Edwards
Level 3

Thanks for the pointers but. . .
Looking at the log file there are no entries to remove all the files
ActionStart(Name=RemoveFiles,Description=Removing. . . . .

All I am doing is creating a project and changing the INSTALLDIR in the product properties from [ProgramFilesFolder]Company Name\My Product Name to [ProgramFilesFolder]\Neo Loader

If I do not modify this, the program installs ok to the folder [ProgramFilesFolder]Company Name\My Product Name and uninstalls ok

if I modify INSTALLDIR the program installs ok to the folder [ProgramFilesFolder]\Neo Loader but when trying to un-install some files are left in the folder.
The project only has 4 files 1x .exe, 1x .chm, 1x .ini and 1x .avi. The exe and chm are being left behind.

Is this a bug or am I modifying INSTALLDIR incorrectly ?

Regards
Chris.
0 Kudos
Barbara
Level 7

Is there one component per file or is more than one file in a component ? Are the files in use during removal of the software ? You can post a verbose logfile (/L*V) of the deinstallation and I will have a look at it. Maybe I can see something.

Barbara
0 Kudos
Chris_Edwards
Level 3

thanks for the help

There are 4 componants
1 (all other files) has 2 files
and the other 3 have 1 each.

zip file contains 4 log files
these are for the default settings
installok.log
uninstallok.log

Theses are for when INSTALLDIR is changed.
uninstallchanged.log
installchanged.log
0 Kudos
Barbara
Level 7

The files neo loader.exe and neo_loader_help.chm are not installed with your setup because they are already present on your system:
See this snippet from the logfile installchanged.log:

[CODE]FileCopy(SourceName=XPCONT~1.OCX,SourceCabKey=xpcont_1.ocx,DestName=XPCONT~1.OCX,Attributes=16384,FileSize=2125824,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,Version=1.0.0.13,Language=1033,InstallMode=58982400,,,,,,,)
MSI (s) (F0:AC) [09:09:38:821]: File: c:\WINDOWS\system32\XPCONT~1.OCX; Won't Overwrite; Won't patch; Existing file is of an equal version
MSI (s) (F0:AC) [09:09:38:821]: Executing op: SetTargetFolder(Folder=c:\Program Files\Neo Loader\)
MSI (s) (F0:AC) [09:09:38:821]: Executing op: SetSourceFolder(Folder=1\PROGRA~1\NEOLOA~1\|program files\Neo Loader\)
MSI (s) (F0:AC) [09:09:38:821]: Executing op: FileCopy(SourceName=NEOLOA~1.EXE|neo loader.exe,SourceCabKey=neo_loader.exe,DestName=neo loader.exe,Attributes=16384,FileSize=335872,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,Version=2.0.0.1,Language=1033,InstallMode=58982400,,,,,,,)
MSI (s) (F0:AC) [09:09:38:821]: File: c:\Program Files\Neo Loader\neo loader.exe; Won't Overwrite; Won't patch; Existing file is of an equal version
MSI (s) (F0:AC) [09:09:38:821]: Executing op: FileCopy(SourceName=WEBFIL~1.AVI|web file delete 1.avi,SourceCabKey=web_file_delete_1.avi,DestName=web file delete 1.avi,Attributes=16384,FileSize=9540,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=-985489513,HashPart2=911733956,HashPart3=1799069443,HashPart4=1389654168,,)
MSI (s) (F0:AC) [09:09:38:837]: File: c:\Program Files\Neo Loader\web file delete 1.avi; To be installed; Won't patch; No existing file
MSI (s) (F0:AC) [09:09:38:837]: Source for file 'web_file_delete_1.avi' is compressed
MSI (s) (F0:AC) [09:09:38:853]: SOFTWARE RESTRICTION POLICY: Verifying object --> 'c:\WINDOWS\Installer\4038f3.msi' against software restriction policy
MSI (s) (F0:AC) [09:09:38:853]: Note: 1: 2262 2: DigitalSignature 3: -2147287038
MSI (s) (F0:AC) [09:09:38:853]: SOFTWARE RESTRICTION POLICY: c:\WINDOWS\Installer\4038f3.msi is not digitally signed
MSI (s) (F0:AC) [09:09:38:853]: SOFTWARE RESTRICTION POLICY: c:\WINDOWS\Installer\4038f3.msi is permitted to run at the 'unrestricted' authorization level.
MSI (s) (F0:AC) [09:09:38:853]: Note: 1: 2318 2: c:\Program Files\Neo Loader\web file delete 1.avi
MSI (s) (F0:AC) [09:09:38:884]: Executing op: FileCopy(SourceName=NEO-LO~1.INI|neo-loader.ini,SourceCabKey=neo_loader.ini,DestName=neo-loader.ini,Attributes=16384,FileSize=1040,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=-152081973,HashPart2=-874974473,HashPart3=88641687,HashPart4=-2120610794,,)
MSI (s) (F0:AC) [09:09:38:884]: File: c:\Program Files\Neo Loader\neo-loader.ini; To be installed; Won't patch; No existing file
MSI (s) (F0:AC) [09:09:38:884]: Source for file 'neo_loader.ini' is compressed
MSI (s) (F0:AC) [09:09:38:884]: Note: 1: 2318 2: c:\Program Files\Neo Loader\neo-loader.ini
MSI (s) (F0:AC) [09:09:38:884]: Executing op: FileCopy(SourceName=NEO_LO~1.CHM|Neo_Loader_Help.chm,SourceCabKey=neo_loader_help.chm,DestName=Neo_Loader_Help.chm,Attributes=16384,FileSize=1702918,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=58982400,HashOptions=0,HashPart1=2072484132,HashPart2=-1702111541,HashPart3=1673173483,HashPart4=-1810127676,,)
MSI (s) (F0:AC) [09:09:38:900]: File: c:\Program Files\Neo Loader\Neo_Loader_Help.chm; Won't Overwrite; Won't patch; Existing file is unversioned and unmodified - hash matches source file
MSI (s) (F0:AC) [09:09:38:900]: Executing op: CacheSizeFlush(,)[/CODE]

And whats not installed will not be removed by the Windows Installer. So I would check the testing machine and clean the machine before testing.

Barbara
0 Kudos
Chris_Edwards
Level 3

Thanks for that, in my hase i failed to delete the folder from the previous install 😞 , this time the install log shows the files copied but it does not uninstall them
File: c:\Program Files\Neo Loader\neo loader.exe; To be installed; Won't patch; No existing file
Thanks for your assistance.
0 Kudos
Barbara
Level 7

Are you using a clean testing machine ?
In the logfile uninstallchanged.log I can see the following entries:
{98963E61-5618-42B4-AA0E-05FCA48FC93D} is the Component ID for Neo loader.exe

[CODE]MSI (s) (14:B8) [13:32:57:868]: Executing op: ProgressTotal(Total=4,Type=1,ByteEquivalent=24000)
MSI (s) (14:B8) [13:32:57:868]: Executing op: ComponentUnregister(ComponentId={267BF05F-F7B3-4C09-95F9-E9036D1E3A8F},,BinaryType=0,PreviouslyPinned=1)
MSI (s) (14:B8) [13:32:57:900]: Executing op: ComponentUnregister(ComponentId={98963E61-5618-42B4-AA0E-05FCA48FC93D},,BinaryType=0,PreviouslyPinned=1)
MSI (s) (14:B8) [13:32:57:915]: Executing op: ComponentUnregister(ComponentId={4ECDA646-2A02-49F0-9AF1-722EC58198B3},,BinaryType=0,)
MSI (s) (14:B8) [13:32:57:915]: Executing op: ComponentUnregister(ComponentId={2F8978D0-4232-4F85-9C5A-4E2D8D7B8A78},,BinaryType=0,PreviouslyPinned=1)
MSI (s) (14:B8) [13:32:57:947]: Executing op: ProgressTotal(Total=1,Type=1,ByteEquivalent=13200)[/CODE]
The flag PreviouslyPinned=1 means that the file has been installed by an other installer before and therefore will not be uninstalled.
See also

http://community.macrovision.com/archive/index.php?t-129269.html
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg04302.html

Barbara
0 Kudos
Chris_Edwards
Level 3

Wonderful, thank you very much, no this isn't a clean machine it is my laptop. 😉 deleting the entries in the shared dll's part of the registry worked a treat.
Thank you for your assistance, and I have learned a little bit more. 🙂
0 Kudos