Yeah, another question about Auto Updater - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

Yeah, another question about Auto Updater

I am evaluating AI and probably purchase a license late next week.
So far, we are happy with the installer created by AI. But users are complaining about the seperate icon of updater. Now I integrate the updater into my app. program (java swing). The updater looks working but not really. Here is what I did:
1. I create a patch and update config file.
2. put the patch onto a host in internal network
3. run my program and an install window pops up
4. it detects my running program and I select Ignore
5. install process continues and gets finshed
6. I am asked to restart my machine. That's not a good idea since I want to update a couple of jar files. I select No

I saw several files ending with .tmp are copied into my install directory. Those files look like backup of other existing jar files (but don't need to update). I am not sure what those files for. However, the same process repeated when I run my app. and another files ending with .tmp generated again.

If I close my app and hit retry on step 4, then those .tmp files are gone. However I am asked to install the patch again when I run app. That's annoying and make me frustrated. I don't know if I missed something.
Please help me out.
Thanks and have a great weekend.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
But users are complaining about the seperate icon of updater
Please give more details about this.

The .tmp files are not created by the updater. Probably those are created because you hit Ignore when msiexec detect that your application is still running.
However I am asked to install the patch again when I run app
This is probably you don't use a correct criteria to determine if the updater is already installed or not. Or your patch don't update the version of your program. In this case i suggest you to use "Registry Key" as detection method and note that your path must update this registry value.

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

Thanks for your reply.
You are right. Those .tmp files are genereated because I hit the "Ignore" button as I said in my previous post.
The update crieria I use is a file size. I am trying to integrate updater with my java swing app (I use java runtime to invoke updater with arguments of "updater.exe /silentall -nofreqcheck"). However it doesn't work as expected. Actually the file needs to be updated is downloaded and installed from the patch but the update is installed again if I run my app.
Amazingly updater (integrated with a program) works without any problem in my small test java program (console) in which the runtime.exec() is called. It seems not working good in my swing program. I notice the difference here is my test program is a separate one (not a part of a package whose size is used as a criterion). So is this a bug?
Many thanks
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

OK. Updater (integrated with my app) works pretty good if I change to use Version instead of FileSize. Please investigate why FileSize doesn't work here. I prefer to use FileSize because I don't need to modify aip if I go with FileSize.
However the installer window still pops up when update is intalled. I thougt installer window shouldn't pop up since I use "updater.exe /silentall".
Is there any way to not show this window? Is it possible to let Updater shut down current running app? Thanks
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

For both detection methods you need to specify the version of your update (Version key in the ini file). The "Version" tells if the update is installed or not. If you use "FilePath" as detection method then the current version is get form the file specified in that file path (and probably the version of your file is not changed with the new update).

If you use "RegistryKey" as detection method then the version is get from that registry value and it's compared with the one specified in the "Version" key. Note that your new update must change this registry value with the new version. If you don't change this value then the update is installed again on the next check.

Yes the updater can shut down an application, check the "AutoCoseApplication" in the following link:
http://www.advancedinstaller.com/user-g ... ation.html

Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
javaguy
Posts: 9
Joined: Thu Jun 15, 2006 3:02 pm

OK now I can make it happen
1. able to close my app (java swing based) by adding AutoCloseApplication = [APPDIR]myApp.exe in my ini file
2. able to silently install update by putting tag CommandLine = /qn in my ini file.

Thanks

Return to “Common Problems”