nskris
Posts: 21
Joined: Fri Oct 26, 2018 3:32 pm

Files are not copied by the MSI

Hi,
In one of the customers machine when we installed the MSI, we found that the files were not copied. I analysed the logs but did not see any issues. I am herewith attaching the logs. Can you please let me know if there was a rollback, if so what is the cause for it.

regards,
Krishna
Attachments
PharmaservGR8220_Executable.zip
(299.36 KiB) Downloaded 430 times
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Files are not copied by the MSI

Hello Krishna,

Honestly, this is a quite strange log file. I think it's the first time I see one like this :)

Judging by the log file, it looks like a rollback has been performed, indeed.

Running a transacted installation.

Beginning the Install phase of the installation.
See the contents of the log file for the C:\Pharmsuite\MPSITSCHService.exe assembly's progress.
The file is located at C:\Pharmsuite\MPSITSCHService.InstallLog.
Installing assembly 'C:\Pharmsuite\MPSITSCHService.exe'.
Affected parameters are:
logtoconsole =
logfile = C:\Pharmsuite\MPSITSCHService.InstallLog
assemblypath = C:\Pharmsuite\MPSITSCHService.exe
Installing service MPSITSCHService...
Creating EventLog source MPSITSCHService in log Application...

An exception occurred during the Install phase.
System.ComponentModel.Win32Exception: The specified service already exists


The Rollback phase of the installation is beginning.
See the contents of the log file for the C:\Pharmsuite\MPSITSCHService.exe assembly's progress.
The file is located at C:\Pharmsuite\MPSITSCHService.InstallLog.
Rolling back assembly 'C:\Pharmsuite\MPSITSCHService.exe'.
Affected parameters are:
logtoconsole =
logfile = C:\Pharmsuite\MPSITSCHService.InstallLog
assemblypath = C:\Pharmsuite\MPSITSCHService.exe
Restoring event log to previous state for source MPSITSCHService.

The Rollback phase completed successfully.

The transacted install has completed.
The installation failed, and the rollback has been performed.
The above does not seem like a log created by the Windows Installer. Upon further research, it looks like that log portion is generated by the "InstallUtil.exe" executable.

It looks like the installation of the service fails.

Since I do not have the .AIP file, I am not quite sure how you are trying to install the service. Is it through a custom action that calls InstallUtil.exe?

I am not really experienced in using the InstallUtil tool, but here is how I would try to debug this:

- although most of the times the error message is not directly related to the error itself, please make sure that the service indeed does not already exist on the system

Additional info: you can try to run the following before installing the service:

Code: Select all

sc delete <your_service_name>
(please be aware that you should provide the service name, not the Display Name)

- please make sure that you run the setup elevated, as working with services requires elevated privileges

- try to install the service outside of the setup created by Advanced Installer by using the InstallUtil tool. If the installation of the service still fails, then this most probably is something related either to the service itself or to the target machine

This is pretty much all I can think about as for this moment.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nskris
Posts: 21
Joined: Fri Oct 26, 2018 3:32 pm

Re: Files are not copied by the MSI

Thankyou Catalin,
But the exception in the log is just the output of the installutil.exe. The custom action has not failed due to that exception and the rollback is only for the service. The MSI with same exception logged has worked else where.

- Krishna
nskris
Posts: 21
Joined: Fri Oct 26, 2018 3:32 pm

Re: Files are not copied by the MSI

Hi,
Also there are statements in the log that says - "Restart required. The installation or update for the product required a restart for all changes to take effect. The restart was deferred to a later time." Not sure why this statement is coming even though there is no auto restart set in the aip file.

-Krishna
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Files are not copied by the MSI

Hello Krishna,
The custom action has not failed due to that exception
This might happen if you have unchecked the "Fail installation if custom action returns an error" option for your custom action.
and the rollback is only for the service.
Indeed, this does look like a rollback made by the service itself.
The MSI with same exception logged has worked else where.
Unfortunately, I can not say why this happens. This most likely sounds like an issue machine-related.
Also there are statements in the log that says - "Restart required. The installation or update for the product required a restart for all changes to take effect. The restart was deferred to a later time."
Not sure why this statement is coming even though there is no auto restart set in the aip file.
This might happen if your setup tries to update a service/any other file that is in use.

However, judging by the log file, it does not seem like the setup is performing an upgrade.

This check is usually done during the "InstallValidate" standard action.

InstallValidate - verifies that all volumes to which cost has been attributed have sufficient space for the installation. It also notifies the user if one or more files to be overwritten or removed are currently in use by an active process

Additionally, upon further investigating the log file, I have found the following:
MSI (s) (4C:F0) [23:16:23:878]: PROPERTY CHANGE: Adding MsiRestartManagerSessionKey property. Its value is '47165f5adcc8e9438f66c296eb641778'.
MSI (s) (4C:F0) [23:16:23:878]: RESTART MANAGER: Session opened.
MSI (s) (4C:F0) [23:16:23:894]: PROPERTY CHANGE: Adding MsiSystemRebootPending property. Its value is '1'.
MsiSystemRebootPending property is set to "1" when there is an operation pending to rename a file.

Hope this helps somehow.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
nskris
Posts: 21
Joined: Fri Oct 26, 2018 3:32 pm

Re: Files are not copied by the MSI

Hi Catalin,

Thank you for providing the clarification. Does it mention which file it was trying to rename/replace?

-Krishna
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Files are not copied by the MSI

You are always welcome, Krishna!
Does it mention which file it was trying to rename/replace?
Unfortunately, it does not.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”