Problem getting updater to work using install support service - Advanced Installer Community
wingers
Posts: 24
Joined: Sat Jan 21, 2017 5:37 pm

Problem getting updater to work using install support service

Hi

Trying to get an updater to work so can install updates without needing admin rights under a standard user by using your "install support service"

Have followed all instructions on website, but just can't get it working. Problem with silent updates is not log file or clue to why not working

Issues I have encountered - if I try and run the update command line manually from a standard command prompt I get message about "download file doesn’t match file size specified in updates configuration file", this is definitely incorrect as size is correct

If I run the update command line from an admin command prompt it then works but obviously this defeats the point of using "install support service" to do this without admin rights. And also shows above error message about file size is completely misleading

Could someone please tell me where I am going wrong, as have checked settings in Advanced Installer so many times now I just can't see cause of problem

screenshot of settings in AI attached

My updates.txt file is below (url changed for security)

Code: Select all

;aiu;

[Update]
Name = Desktop Monitoring Service
NoGUICommandLineSwitch = /exenoui /qn
ProductVersion = 2.0.0.0
URL = http://www.gffgfgfgfgfgfgfgfgfgf.com/downloads/LB/PCA_DESKMON/update.exe
Size = 5431600 
ServerFileName = update.exe
Flags = SilentInstall|NoCache|Advertises
RegistryKey = HKUD\Software\PC Assist Software\Desktop Monitoring Service\Version
Version = 2.0.0.0
AutoCloseApplication = [APPDIR]GUI\Desktop Monitoring GUI.exe|;;AlwaysRestart
updater.ini below

Code: Select all

[General]
AppDir=C:\Program Files (x86)\PC Assist Software\Desktop Monitoring Service\
SupportServiceName=updater
ID={2B648104-9BCC-4DFD-96A8-E320D2D19AAA}
ApplicationName=Desktop Monitoring Service
CompanyName=PC Assist Software
ApplicationVersion=1.0.0
DefaultCommandLine=/checknow
DownloadsFolder=C:\ProgramData\PC Assist Software\Desktop Monitoring Service\updates\
Flags=PerMachine|NoUpdaterInstallGUI
URL=http://www.gffgfgfgfgfgfgfgfgfgf.com/downloads/LB/PCA_DESKMON/updates.txt
Using latest version of AI
Attachments
ai.png
ai.png (76.09 KiB) Viewed 5066 times
wingers
Posts: 24
Joined: Sat Jan 21, 2017 5:37 pm

Re: Problem getting updater to work using install support service

update: even from admin I am getting error about file being wrong size despite it clearly being the same size as it says in update.txt
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem getting updater to work using install support service

Hello and welcome to Advanced Installer forums,

This is currently under investigation. We will notify you as soon as we have a conclusive answer.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wingers
Posts: 24
Joined: Sat Jan 21, 2017 5:37 pm

Re: Problem getting updater to work using install support service

Update - this problem is now solved - putting details from my email to support below so thread is complete

Turns out that the company whose computers I was installing on use a product to control website access for normal users (WebSense) – this blocks the download of EXE files for standard users and redirects them to an error page.

So when updater.exe was running it could successfully see the updates.txt file and read it to tell me an update was available, but then when it tried to download the update.exe it failed and gave misleading error about file size (rather than telling me file couldn't be downloaded) which confused tracking down the problem.

If run as admin it worked as admin users are not blocked from downloading EXE files.


As per my email to support I would like to suggest though that perhaps you add in some kind of logging for updater.exe so that it creates a log file somewhere to make it quicker and easier to diagnose problems like this, or at least improve it so that the error message it gives is actually correct i.e. file cannot be downloaded rather than telling me file size is wrong which was clearly misleading and incorrect and had me (and your support) looking for a problem in the wrong place completely!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Problem getting updater to work using install support service

Hello,

Thank you for your follow up. I'm sure this feedback will be useful for future users facing similar scenarios.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”