sabarnett
Posts: 12
Joined: Wed Nov 23, 2011 9:53 pm

File deleted during install

I'm very new to this stuff and have a strange problem but no clue as to how to fix it.

As part of my install, I install "ssce5532.dll" to the windows\system32 folder. On my local Win7 machine this works fine everytime. However, on my office Win7 machine, the insatll runs to the end but the existing ssce5532.dll is deleted from the machine, not installed. If I then re-run the install and select the repair option, it does get installed. It will then remain installed until I generate and install an upgrade (I change the version number of the install and Advanced Installer does the rest).

Problem is, I have no idea why it should work on one machine and not the other. The log on my local machine clearly shows the file being installed (ok, not installed because it is already there)

MSI (s) (FC:D4) [19:55:25:238]: Executing op: FileCopy(SourceName=ssce5532.dll,SourceCabKey=ssce5532.dll,DestName=ssce5532.dll,Attributes=512,FileSize=225280,PerTick=65536,,VerifyMedia=1,,,,,CheckCRC=0,Version=5.15.6.0,Language=1033,InstallMode=58982400,,,,,,,)
MSI (s) (FC:D4) [19:55:25:238]: File: C:\Windows\system32\ssce5532.dll; Won't Overwrite; Won't patch; Existing file is of an equal version

No such line exists in the failing system log. Instead I get:

MSI (s) (18:F0) [20:33:20:911]: Note: 1: 2318 2:
MSI (s) (18:F0) [20:33:20:912]: Note: 1: 2318 2:
MSI (s) (18:F0) [20:33:20:912]: Executing op: SetTargetFolder(Folder=C:\Windows\system32\)
MSI (s) (18:F0) [20:33:20:912]: Executing op: FileRemove(,FileName=ssce5532.dll,,ComponentId={66C9148C-7C42-40E3-9F4F-242AA6FE1EFF})
RemoveFiles: File: ssce5532.dll, Directory: C:\Windows\system32\
MSI (s) (18:F0) [20:33:20:914]: Verifying accessibility of file: ssce5532.dll

The next mention of the file is a ComponentRegister.

Any suggestions as to how I fix this please? It seems strange that the file gets installed if I do a repair.

Thanks
Steve

I'm using AI 8.6. I've not specified any options other than the defaults for the file.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: File deleted during install

Hello and welcome to Advanced Installer forums,

The recommended approach to installing a file only if it doesn't already exist on the target machine involves implementing the following steps in your Advanced Installer project:
- add a search for the file in the Search page
- condition the file's component in the Organization page using the search name

If you haven't set anything particular to treat this special case, then it's most likely the reason for the behavior you are getting.

By definition the repair operation involves keeping the software in a working state without regard to what happens. For example, if a user deletes the executable file for their spreadsheet, and then chooses the spreadsheet from the Start menu, the executable file would be reinstalled automatically, thereby repairing the software.

Since you are new, I highly recommend you read our tutorials for a better understanding of how to use Advanced Installer to efficiently deploy your products.This will also help you better understand support team's suggestions now and in the future. The Simple and Professional tutorials are especially important.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sabarnett
Posts: 12
Joined: Wed Nov 23, 2011 9:53 pm

Re: File deleted during install

Thanks for the reply.

That seems like a lot of work... I came from a background of Wise installers where the installer wouldn't install over the top of the higher versioned component, so I had expected that installing a 5.16 version of this dll would not overwrite a version 5.17 that was already on the machine. The implication of what you're saying is that I have to put in a search for every system level DLL that I install in order to not have that dll deleted? That just seems wrong.

Still, if that's the solution, then I gues sthat's the solution.

Thanks
Steve
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: File deleted during install

Hi Steve,

Actually you are correct, sorry I missed that in your initial post. Windows Installer uses several File Versioning Rules when it decides whether to overwrite an existing file.

The Creation and Modification dates are used as a criteria only when the files do not have a version. You can override a file's version information by specifying a custom version in the "Version" tab of the "Edit File" dialog (double-click on a file in order to open this dialog).

You can also select the option "Ensure that this file overwrites any installed target file", which automatically sets all the version fields to the highest possible values.

However, I am not sure why you are getting this behavior. Can you please send us the .AIP (project) and a verbose log of the faulty installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sabarnett
Posts: 12
Joined: Wed Nov 23, 2011 9:53 pm

Re: File deleted during install

I certainly will, thank you. It'll have to be overnight though as I don't have access to the ajp file (only the install log) in my current location.

Many thanks for looking.
Steve
sabarnett
Posts: 12
Joined: Wed Nov 23, 2011 9:53 pm

Re: File deleted during install

The requested files are in the email.

Steve
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: File deleted during install

Hi Steve,

The files gets deleted because you are performing an upgrade. An upgrade operation involves the removal of the previously installed version.

The behavior you are getting could happen if you decreased the version of the .DLL in the upgraded version package. For example:
  • package with version 1.4.6 contains ssce5532.dll with version 5.17
  • package with version 1.4.7 contains ssce5532.dll with version 5.15
If you installed 1.4.6 first and then 1.4.7, ssce5532.dll 5.17 would get deleted from the target machine without being replaced by ssce5532.dll 5.15.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sabarnett
Posts: 12
Joined: Wed Nov 23, 2011 9:53 pm

Re: File deleted during install

Ok, I think I get that, thank you.

It does seem strange behaviour though. If the old version of the app is "uninstalled" first, then I can see how the dll is removed. But surely the upgrade would then come along and install the version in the "upgrade" package, so I would end up with an older version of the file installed.

Perhaps I need to look at the options for the uninstall to make sure this file is not deleted on uninstall.

It's also a little confusing in that I only have one version of this dll so would have always installed the same one.

Thanks
Steve
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: File deleted during install

FYI: If the .DLL has a lower version than the one previously installed on the target machine, it will be excluded from the installation of the upgrade package.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sabarnett
Posts: 12
Joined: Wed Nov 23, 2011 9:53 pm

Re: File deleted during install

All sorted out.

I went to the component definition that corresponded to tge DLL and marked it as Permanent. The uninstalled and re-installed the app.

I've now run several upgrade installs and the file is no longer being lost.

Steve

Return to “Common Problems”