After installing on drive E app always prompts to update - Advanced Installer Community
rjh
Posts: 5
Joined: Fri Jul 19, 2013 3:19 pm

After installing on drive E app always prompts to update

I am using the updater feature in the installer and launch the updater to check for updates when my application starts. This works fine if I install my app on drive C. If I install on an external drive (drive E in this case), my app always prompts the user that a new version is available when this is not true. I suspect that the updater cannot get the version from my installed app for some reason. Is there a debug mode that I can enable? Any ideas what is wrong?

Thanks,

-Rich
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: After installing on drive E app always prompts to update

Hello Rick and welcome to our forums,

I'm not sure why you encountered this behavior. I've tested your scenario but I can not reproduce it.

Can you please show us how your "update" file is configured?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rjh
Posts: 5
Joined: Fri Jul 19, 2013 3:19 pm

Re: After installing on drive E app always prompts to update

Thanks for the reply, here is my update file:

;aiu;

[HS3]
Name = HS3 3.0.0.13
URL = http://www.homeseer.com/updates3/SetupHS3_3_0_0_13.exe
Size = 19107373
Description = This is the latest version of HS3
Feature =
Feature1 =
BugFix = Reported bugs fixed
BugFix1 = See bugzilla at homeseer.com for what changed, search on version # in comments
FilePath = %ProgramFiles%\HomeSeer HS3\HS3.exe
Version = 3.0.0.13
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: After installing on drive E app always prompts to update

Hello,

Please notice that you have the FilePath set to ProgramFiles, so if the operating system is installed on C -drive then %ProgramFiles% will have the value C:\Program Files.

Can you please try to use the APPDIR property in the “File Path” field, from your updates configuration project -> Updates page -> Update Properties tab to and see if the behavior persist?

If the behavior still persist then can you please send us the .AIPs (projects file from the old .msi the new .msi and the updates configuration project) to support at advancedinstaller dot com so we can investigate them? If contain confidential information you can send us a small test project which reproduce this behavior.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rjh
Posts: 5
Joined: Fri Jul 19, 2013 3:19 pm

Re: After installing on drive E app always prompts to update

I tried changing the path to:

FilePath = %APPDIR%\HS3.exe

But this change cause the app to always think a new version is available, even when installed on drive C. Is the syntax correct?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: After installing on drive E app always prompts to update

Hi Rick,

The updater may not run as expected when it is part of an application installed on a removable drive. And more exactly when the external driver is plugged in to another target machine with the application already installed. We have this improvement on our TODO list and it will be available in a future version of Advanced Installer.
FilePath = %APPDIR%\HS3.exe
You should use the [APPDIR]HS3.exe because the user can change the application install folder at run time.

You can also take a look on our Formatted Type article which may be useful to you.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rjh
Posts: 5
Joined: Fri Jul 19, 2013 3:19 pm

Re: After installing on drive E app always prompts to update

I tried [APPDIR] and with that change, the updater always prompts the user to update, even if the app is installed on the C drive.

Note that the issue we are having is an issue with the app installed on a drive other than drive C, not a removable drive.

The updater file I tried is below.

This is easy to reproduce, you can install version 13 of our app from here, install to a drive other than drive C:

http://homeseer.com/updates3/SetupHS3_3_0_0_13.exe

When you run this app it will prompt to update to 3.0.0.14, let it update. Then when the app is restarted, it prompts to update again even though the update is already installed.

Also, if the app is installed on a drive other than drive C, it displays an error that says it could not install all the files.

I can move this issue to a ticket if you like.

Here is the last updater file I tried:

;aiu;

[HS3]
Name=HS3 3.0.0.14
URL=http://www.homeseer.com/updates3/SetupHS3_3_0_0_14.exe
Size=19108009
ServerFileName=SetupHS3_3_0_0_14.exe
FilePath=[APPDIR]\HomeSeer HS3\HS3.exe
Version=3.0.0.14
Description=This is the latest version of HS3
BugFix=Reported bugs fixed
BugFix1=See bugzilla at homeseer.com for what changed, search on version # in comments
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: After installing on drive E app always prompts to update

Hello,

This is caused by the .INI configuration file from your server. Please note that I get the following updates configuration for the updater file:

Code: Select all

;aiu;

[HS3]
Name=HS3 3.0.0.14
URL=http://www.homeseer.com/updates3/SetupHS3_3_0_0_14.exe
Size=19108009
ServerFileName=SetupHS3_3_0_0_14.exe
FilePath=%ProgramFiles%\HomeSeer HS3\HS3.exe
Version=3.0.0.14
Description=This is the latest version of HS3
BugFix=Reported bugs fixed
BugFix1=See bugzilla at homeseer.com for what changed, search on version # in comments
I can see that the FilePath=%ProgramFiles%\HomeSeer HS3\HS3.exe still prompts to the Program Files. Can you please update your server configuration file and try to use the [APPDIR] instead of %ProgramFiles%. In order to achieve that, you can go in the .AIP of the updated installation project, and in the “Properties” tab , you can use in the “File Path” filed something like:
[APPDIR]HS3.exe.


So, the configuration file should look something like:
;aiu;

[HS3]
Name=HS3 3.0.0.14
URL=http://www.homeseer.com/updates3/SetupHS3_3_0_0_14.exe
Size=19108009
ServerFileName=SetupHS3_3_0_0_14.exe
FilePath=[APPDIR]HS3.exe
Version=3.0.0.14
Description=This is the latest version of HS3
BugFix=Reported bugs fixed
BugFix1=See bugzilla at homeseer.com for what changed, search on version # in comments


If the behavior still persist can you please send us the AIP of the target installation project, the AIP of the updated installation project and the AIP of the updates configuration project to support at advancedinstaller dot com so we can investigate them?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
rjh
Posts: 5
Joined: Fri Jul 19, 2013 3:19 pm

Re: After installing on drive E app always prompts to update

I did have the [APPDIR] in there but since it did not work, I had to fall back to "programfiles" as this works for all installs on the C drive (which most of our users currently have.

I will send you the AIP files.

Return to “Common Problems”