I have a VB 2008 application using the updater to detect updates and download them from a website. When I put out a new version of my app, the download and install usually work fine. I am changing the product version each time and telling AI to generate a new product code. However, some times my app detects a new version, invokes AI, but AI does not download the new MSI file from the website. When it runs the MSI, it bring up the Modify,Repair,Remove window. I looked on my hard drive at the directory where the download is to placed (in this case C:\ProgramData\Custer County\Planning and Zoning Permits\updates\PZ Permits using Windows 7) and an old version of the MSI is there, not the new version indicating that AI did not download it. I did notice that the older MSI and the new MSI have the same filesize (sometimes my modifications to my app are very small like correcting misspelled words so the size of the modules do not change). Could it be that AI sees the same sized module on my hard drive so does not bother downloading the website version? Should I code my application to delete the downloaded MSI once I no longer need it so that AI is forced to download the newest version the next time? Thanks.
In your updates configuration project make sure under Installed Detection section you are using Version as the method of detection in your updates, so that the updater's check is not based upon the installer's file size.
I am using version in Installed Detection. The MSI is 4.7mb is size and it seems that AI does not even attempt to download it because the installation program opened up almost immediately, that is, there was no delay while AI downloaded the MSI. It does appear that it downloaded updates.txt and saved it as updates.aiu which would only take a second or two since it's so small. I have not been saving the updates.txt generated by the update package for each version release but I will start so I can see if something in the updates.txt is causing AI not to download.
FOLLOW US
Get the latest news in Application Packaging