I am using AI version 14.7. I have been trying to make an update for my program and have been running into an interesting issue. When I run the updater to check for an update, it sees that I have an update on the server and does the download, then I see a quick flash of text that says "Checking Integrity (MD5)". After that, I see no more text in the status above the percentage bar. The percentage bar stays at full, then after 10-15 seconds the updater just quit with no message of any kind.
The new updated .exe that got downloaded in the updates folder in ProgramData then gets deleted and it's as if nothing ever happened. No update is performed and it fails silently. I have read in other forum replies that the updater doesn't have a logging mechanism built in, is this true? There are command line options for it that I can't seem to get working listed here: https://www.advancedinstaller.com/user- ... dater.html
Question: Is there a way to get some kind of log info from updater.exe during the install process on why it is failing?
I know there is a way to view MSI logs, but I'm not sure how to do that when the updater.exe is calling the new updated installer for my program (which is an exe) by iteself.
There is also another piece of info that may help diagnose the issue. While doing some testing to try to find the cause of the issue, I watched the updates downloads folder in ProgramData. Once the updater had downloaded the new installer (but before it quit out and deleted the updated downloaded installer) I tried to run the installer directly from it's location in program data. This brought up the installation menu which I then quit. This also seemed to have prevented updater.exe from deleting it since it was open at the time updater.exe quit.
The next time I ran the updater to check for an update, it didn't download the file since it was already in the local ProgramData folder, but it worked without issue. It ran through the installer and performed the update flawlessly like I have seen it do in the past.
I know that the error isn't related to the MD5 hashes mismatching because I have verified that they are the same, and in the past I have seen an actual error come up from updater.exe when the hashes don't match. In this case it is failing silently.
I have tried enabling the registry setting here: https://www.advancedinstaller.com/user- ... a-log.html
However, it doesn't seem that the updater.exe is actually calling the MSI. Because no update log is created unless I manually click on the downloaded installer.
This seems to be related to the computer that the install has happened on. On 2 machines, a dev and a tester machine (that have done a lot of installs/uninstalls of different versions), the steps above were observed. However, on a "fresh" machine, I installed the previous version and was able to upgrade without issues. Are there any suggestions you have or resources that could be used to debug what is causing the error on 2 machines an not the other?
Interestingly, when I run this command:
$new = Start-Process -FilePath ".\updater.exe" -ArgumentList "/silent",/MIR -Wait -PassThru
$new.ExitCode is displayed as 0 indicating it completed successfully. These are the same arguments that my program calls when checking for updates on startup.
Thanks for the help