Update question - 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!

meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Update question

Hello,

I am new to advanced installer and I was wondering how the update part of the program works.
I understand it works as an automatic update which checks your website for updates every few days or so.

However the example shows it pointing at a txt file on the website, if I were to create an automatic update for my program would I need to create a txt file, and if so what would be on it?

Thanks.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update question

Hi,

The .txt file is a file generated by the updates configuration project. In this file Advanced Installer will write some values
(download location, size, etc...) depending on the settings that you are making in the updates configuration project.

The .txt file must also be available on the server in order to be automatically downloaded and analyzed by the updater.

In order to understand how the updater works I suggest you try our three tutorials created especially to explain its usage.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

Ok thanks,
I will check that out now.
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

The .txt file is a file generated by the updates configuration project. In this file Advanced Installer will write some values
(download location, size, etc...) depending on the settings that you are making in the updates configuration project.
Where does it create this file?

The second part of the tutorial says to edit the updates.txt file, but I don't know where it is.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update question

Hi,

This tutorial shows how you can create the updates configuration project that will generate for you the "updates.txt" file.

The .txt file should be generated next to the new aip file you are creating for the updates configuration project.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

Hey,

I understand that I need to AIP's one being the professional and one being an update.
how are these linked?

At the moment my updater.exe says "Invalid command link" so I am obviously doing something wrong.

Sorry for being a pain!

Thanks in advance.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Update question

Hello,

The relation between the professional project and the updates configuration project is the following:
- the updates configuration project will generate a txt file. This txt file should be placed on the server for the updater to read. It contains various informations on what updates are available, where they are stored and so on
- in the professional project you will enable the updater as explained in the guide given by Bogdan and you will specify the location where the generated txt file mentioned earlier was placed at, so the updater knows where to look for it.
- the updater is launched via command line using various parameters as specified in this guide

I hope this helped.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

Hey,

I assume the commands such as "/checknow" goes in the command line on the update.aip, I have created a command based on an example on the guide and I still get the error message "Invalid Command Line"

Thanks for all your help.
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Update question

Hello,

"/checknow" is the parameter with which updater.exe is called. The command line is usually specified in shortcuts to updater.exe so the updater is called with that parameter when the user clicks on a shortcut.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

I don't suppose you could rephrase that, I am probably tired but I am finding that sentence hard to understand.

Sorry to be a pain.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Update question

Hi,

What Gabriel wanted to say is that the command line option "/checknow" is applied to the updater.exe file, not to the .aip file.

So in the Files and Folders page you must have a shortcut with the target set to "updater.exe" file. Set the Arguments field
of that shortcut to "/checknow", as in screen-shots of the first step from this tutorial.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

That makes more sense, for some reason when I install my program it doesn't install the shortcut.

However in file and folders under App shortcuts there is the short cut I created called 'Check for Updates'.

What could I be doing wrong?
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

I am almost there now, the message box comes up and finds the download and downloads it but after it downloads it shows this message:
Windows Æ Installer. V 4.00.6001.0

msiexec /Option <Required Parameter> [Optional Parameter]

Install Options
</package | /i> <Product.msi>
Installs or configures a product
/a <Product.msi>
Administrative install - Installs a product on the network
/j<u|m> <Product.msi> [/t <Transform List>] [/g <Language ID>]
Advertises a product - m to all users, u to current user
</uninstall | /x> <Product.msi | ProductCode>
Uninstalls the product
Display Options
/quiet
Quiet mode, no user interaction
/passive
Unattended mode - progress bar only
/q[n|b|r|f]
Sets user interface level
n - No UI
b - Basic UI
r - Reduced UI
f - Full UI (default)
/help
Help information
Restart Options
/norestart
Do not restart after the installation is complete
/promptrestart
Prompts the user for restart if necessary
/forcerestart
Always restart the computer after installation
Logging Options
/l[i|w|e|a|r|u|c|m|o|p|v|x|+|!|*] <LogFile>
i - Status messages
w - Nonfatal warnings
e - All error messages
a - Start up of actions
r - Action-specific records
u - User requests
c - Initial UI parameters
m - Out-of-memory or fatal exit information
o - Out-of-disk-space messages
p - Terminal properties
v - Verbose output
x - Extra debugging information
+ - Append to existing log file
! - Flush each line to the log
* - Log all information, except for v and x options
/log <LogFile>
Equivalent of /l* <LogFile>
Update Options
/update <Update1.msp>[;Update2.msp]
Applies update(s)
/uninstall <PatchCodeGuid>[;Update2.msp] /package <Product.msi | ProductCode>
Remove update(s) for a product
Repair Options
/f[p|e|c|m|s|o|d|a|u|v] <Product.msi | ProductCode>
Repairs a product
p - only if file is missing
o - if file is missing or an older version is installed (default)
e - if file is missing or an equal or older version is installed
d - if file is missing or a different version is installed
c - if file is missing or checksum does not match the calculated value
a - forces all files to be reinstalled
u - all required user-specific registry entries (default)
m - all required computer-specific registry entries (default)
s - all existing shortcuts (default)
v - runs from source and recaches local package
Setting Public Properties
[PROPERTY=PropertyValue]

Consult the Windows Æ Installer SDK for additional documentation on the
command line syntax.

Copyright © Microsoft Corporation. All rights reserved.
Portions of this software are based in part on the work of the Independent JPEG Group.

What am I missing?

Thanks for all your help!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Update question

Hello,

Please make sure you did not accidentally set the /checknow parameter somewhere else than in the shortcut. Check both your .aip project files.
If you still can not troubleshoot this issue, please send us the two aip project files (the update's and the installer's) to support at advancedinstaller dot com so we can further investigate.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
meecat
Posts: 13
Joined: Wed Apr 14, 2010 11:55 pm

Re: Update question

Yer you were correct, I forgot to delete the /checknow from the update.aip

It now goes to install it and says "Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Pannel."

Return to “Common Problems”