bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Updater Silent Mode

Hi,

I am using Advanced Installer Version 9.7 for creating an installer for my product.

I created the installer, and everything went great. Now, I want to update the installer and so I am using the Auto Updater functionality.

For updating my product, I run the updater.exe from command prompt as

>updater /silent

When I do this for the first time, it pop-up the screen and tells me I have new updates. Now if I click "Next" and install the update everything works great.

BUT, instead of clicking "Next", if I click "Cancel" and try to run the updater again from command prompt as:

>updater /silent

The updating screen does not pop up saying I have a new update as it did before? Why is that? Is this a bug where on click "Cancel" /silent feature does not work again?

I tried doing the same using:

>updater /checknow

and when I use /checknow option everything works great...if I click "Cancel" and again run updater with /checknow option, it again pops up the window and tells me that I have a new update. The same does not happen when I use the /silent option.

Can someone please help me out in this regards. It would be much appreciated. Hope to hear from you guys soon.

and also as it is tearmed silent whey does it pops up ? Is as any way that i can read the return type so that when it trurns true, ill popup my coustem message which come in sysytem tray
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello,
For updating my product, I run the updater.exe from command prompt as

>updater /silent

When I do this for the first time, it pop-up the screen and tells me I have new updates. Now if I click "Next" and install the update everything works great.

BUT, instead of clicking "Next", if I click "Cancel" and try to run the updater again from command prompt as:

>updater /silent

The updating screen does not pop up saying I have a new update as it did before? Why is that? Is this a bug where on click "Cancel" /silent feature does not work again?
Please keep in mind this is the normal behavior. When run the updater (second time) using /silent parameter the updater will exit if the check frequency, specified in the "Updater" page, has not passed.
and also as it is tearmed silent whey does it pops up ? Is as any way that i can read the return type so that when it trurns true, ill popup my coustem message which come in sysytem tray
In order to achieve this you can call the updater from your application and then verify the updater return codes.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Updater Silent Mode

Hi Thnq for the reply.

Ya I got it.. ThnQ...

Also I c that, update.exe can be runed as windows service. If we configure so,

1. At what frequency does the services check for the updats?
2. How to enable "Install update without elevation" option in updater project ? by default it is disabled... even my project is configured as "Per machine only (fails if user is not administrator)"
3. Does the updater services prompts about updates even for normal user (NON Admin) ?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello,
1. At what frequency does the services check for the updats?
The updater service is used only to install the updates without elevation. The updater will use the check frequency set in the "Updater" page.
2. How to enable "Install update without elevation" option in updater project ? by default it is disabled... even my project is configured as "Per machine only (fails if user is not administrator)"
Unfortunately, this option is not available for EXE packages type. So, you should have an MSI package type in order to handle updates without elevation.
3. Does the updater services prompts about updates even for normal user (NON Admin) ?
Yes, it does.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Updater Silent Mode

ThnQ Daniel for ur help...

My project is EXE package which supports 32/64 bit.

But only when Install update without elevation is enabled, non admin can recive updates ???

Can you plz provide a sample project on update.exe used as windows service , so that it intimates about the updates even for the non admin user .
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello,
But only when Install update without elevation is enabled, non admin can recive updates ???
No, if your installation type is per user, then non admin users can receive updates. They can't install updates when the installation type requires administrator right.
Can you plz provide a sample project on update.exe used as windows service , so that it intimates about the updates even for the non admin user .
Here's attached a sample, created using version 9.8 of Advanced Installer, which implements this scenario.
sample.zip
(7.89 KiB) Downloaded 1368 times
All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

Re: Updater Silent Mode

ThnQ Daniel for the sample...

But My package type is Mixed 32/64 bit machine and Installation type is Per-machine only(fails if useris not administrator) ..

SO I can not use the my project as the sample u have give.

Can yu please suggest the best mathod for auto upgrads for my project type ?? I aslo tryed using the Automatiatic: using a windows scheduled task which has two different configurations for XP and WIN7. as a result i need to build two different pakages which is not a good idea...

So I feel the only way is to configure the auto upgrads is by Code (application) .
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello,
But My package type is Mixed 32/64 bit machine and Installation type is Per-machine only(fails if useris not administrator) ..

SO I can not use the my project as the sample u have give.
Please keep in mind that the related sample should work as well if you change the package type, from "Install Parameters" page, to "Mixed 32/64-bit matching the platform" option.
Can yu please suggest the best mathod for auto upgrads for my project type ?? I aslo tryed using the Automatiatic: using a windows scheduled task which has two different configurations for XP and WIN7. as a result i need to build two different pakages which is not a good idea...
In order to achieve this you can add two windows scheduled tasks for updater.exe file using our "Scheduled Tasks" page.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Re: Updater Silent Mode

Hi Daniel,

I also tried your sample on W2K8 R2. I only edited the ini files because dropbox was not working.

At the end of install it wants adminrights. (maybe it wants to replace the updater service?)

I do not get it running as a normal user.

Regards

Gary
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello Gary,

I'm afraid I don't fully understand what you mean. Can you give us more details about the behavior (maybe exemplify)?

Here's attached a sample, created using version 9.9 of Advanced Installer, which implements a similar scenario.
sample.zip
(877.87 KiB) Downloaded 1065 times
Let us know if this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Re: Updater Silent Mode

Hello ,

I installed Version 1 as administrator. Then I logged off and logged in as a "normal" User.

I press update shortcut, then the update is downloaded and installs begins. At some point I am requested for admin credentials.

Please see the attached doc with screenshots. Testcomputer W2K8 R2. recent Fixpacks and Servicepacks.

Regards

Gary
Attachments
sampledoc.zip
(63.1 KiB) Downloaded 1118 times
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello Gary,

I'm not sure why this happens. Can you please make sure that the updater service is running when you launch the updater? You can start services.msc (e.g. type it in run window) in order to check the updater service state. Also, can you confirm that you've used the original "sample1.msi" package from the above sample attached by me without editing the .AIPs (project files) archived in the attached sample?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Re: Updater Silent Mode

Hi Daniel,

I can confirm that the updater service is running and that I used the original files from the sample.

The only thing is that I edited the Updater.ini on client and server bacause I can not reach dropbox from our company network because the access to dropbox is denied. So I put the second msi on my http server and edited the url in the ini files.

I even do not understand how the updater service will run the update and gives the adminrights from system account to the msi file when I launch the updater shortcut.

Regards


Gary
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Updater Silent Mode

Hello Gary,

Can you please send us the related edited ini files to support at advancedinstaller dot com so we can investigate them?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Maverick
Posts: 54
Joined: Mon Aug 18, 2008 12:11 pm

Re: Updater Silent Mode

Hello Daniel,

attached the edited files.

Regards

Gary
Attachments
updater.ini
client
(375 Bytes) Downloaded 1040 times
Up_Config.txt
server
(303 Bytes) Downloaded 1207 times

Return to “Building Installers”