Problems with automatic updates

Got a problem you cannot solve? Try here.
WarwickAdams
Posts: 2
Joined: Sun Aug 06, 2017 7:21 pm

Problems with automatic updates

Postby WarwickAdams » Sun Aug 06, 2017 8:01 pm

Hi support,

Apologies in advance if these have been answered before. Have set up my first install using InstallAware and having some problems with the automatic update process. A copy of the project file is at http://www.pdlab.co/downloads/tappytest.zip (this is the version which applies the V1.0.10 updates to the V1.0.9 base release)

1. When an update is applied, even though I have set the parameter as 'silent' it still shows all the the dialogues

2. The install file tappyinstall.exe is digitally signed. When running the setup, Windows recognises that, however when subsequently calling it from the check for updates menu, the cached file always comes up as unsigned and shows the 'Do you want to allow this app from an unknown publisher to make changes to your PC'. Why is that. as it should be signed?

3. In the project's 'updates' script I have told it to restart the application when finished updating, but this does not seem to be recognised (i.e. the app does not restart) -
Terminate Installation
Comment: Start Tappy again after installing update
Run Program $TARGETDIR$\Tappy.exe
Display Dialog: Tappy will only restart at the next system reboot, use as progress dialog (non-modal) (Actually this doesn't appear either)
label: End of Updates

Does it need to be in a different part of the script?

4. When testing, the flow is to (a) Uninstall using the tappyinstall.exe, then (b) install the base version, then (c) check for updates and (d) install the updated version. The issue is that the previous update details seem to have been cached and not automatically removed when uninstalling - after reinstalling it always says ' No updates available at this time'. I seem to be able to solve that by manually removing everything in the folder that the 'Check for updates' menu uses (ProgramData\xxxxGUIDxxxxxx), but surely there is a simple way of removing the cached folder (and all registry keys) during the uninstall.

Thanks for your help,

WA

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems with automatic updates

Postby FrancescoT » Mon Aug 07, 2017 1:25 pm

Dear WA,

let me check your project and I'll be back on this and all the rest as soon as possible.

Which IA version are you using?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

WarwickAdams
Posts: 2
Joined: Sun Aug 06, 2017 7:21 pm

Re: Problems with automatic updates

Postby WarwickAdams » Mon Aug 07, 2017 5:43 pm

It is Studio X4

Also please ignore my point (1), I now think 'silent' just hides the normal setup dialogue screens, whereas I was thinking it did a completely hidden update.

And in point(3) the 'updates' script the 'Display Dialog: Tappy will only restart at the next system reboot, use as progress dialog (non-modal)' is obviously wrong - I should have used a messagebox

FrancescoT
Site Admin
Posts: 5360
Joined: Sun Aug 22, 2010 4:28 am

Re: Problems with automatic updates

Postby FrancescoT » Tue Aug 08, 2017 9:36 am

Dear WA,

#2 - when the setup gets digitally signed, also the internal setup sources files are signed as well. You can check the effective signature of the setup.exe file that gets stored along the other setup source files. With a PER-MACHINE installation, this files gets stored under "ProgramData\<GUID> and you can right click the file (file properties) to check its signature.

Starting from version X4, InstallAware full complies with the new "Windows Enforcement of Authenticode Code Signing and Timestamping”.

This new policy basically mandates the deprecation of SHA-1 code signing certificates, time stamps, and file hashes for Code Signing. The new Microsoft Policy involves SHA-2 code signing certificates, time stamps, and file hashes as part of the updated policy.

# you may have a look at the following thread where this was already discussed.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10984

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 30 guests