Dynamic Folder in Updater .ini - 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!

joesnuffie
Posts: 4
Joined: Fri Oct 10, 2008 5:40 pm

Dynamic Folder in Updater .ini

I need to be able to specify the DownloadsFolder and AppDir using a dynamic command like App.Path. We would like for the client to be able to run update.exe /checknow without having to install the updater on each client.

This DOES NOT work, but is there a method I can use?
[General]
ApplicationName=ExecuTech Systems
DownloadsFolder=[APPDIR]\updates\
ID={38F619D3-93DC-4E5F-AE4E-B412D177D72F}
URL=http://www.xxxxxxxxxx.com/downloads/upd ... pdates.txt
AppDir=[APPDIR]
CheckFrequency=0
CompanyName=ExecuTech Systems

***************

I've just discovered that I can set the DownLoadsFolder option to \updates\ and it puts my updates in the app folder\updates. If I set theAppDir option to \, the update is applied to the app folder but the updater reports that the update has failed.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dynamic Folder in Updater .ini

Hi,

I'm afraid that the Updater was not designed for this kind of usage, therefore I'm not sure if what you need can be done.
I've just discovered that I can set the DownLoadsFolder option to \updates\ and it puts my updates in the app folder\updates. If I set theAppDir option to \, the update is applied to the app folder but the updater reports that the update has failed.
This usually happens when using an incorrect detection criteria for the update. This criteria is set in the Installed Detection section of the Update Properties page in the Updates Configuration project.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
joesnuffie
Posts: 4
Joined: Fri Oct 10, 2008 5:40 pm

Re: Dynamic Folder in Updater .ini

cosmin wrote:Hi,

I'm afraid that the Updater was not designed for this kind of usage, therefore I'm not sure if what you need can be done.

Regards,
Cosmin
Would it be possible to disable the verification process so that an error is not displayed? Maybe an option to force a success message.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dynamic Folder in Updater .ini

Hi,

Can you please give me more details about why you need this? Please note that each update uses a detection criteria to determine if it needs to be installed. After the update is installed, the same detection criteria is used to determine if the installation was performed without a problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
joesnuffie
Posts: 4
Joined: Fri Oct 10, 2008 5:40 pm

Re: Dynamic Folder in Updater .ini

cosmin wrote:Hi,

Can you please give me more details about why you need this? Please note that each update uses a detection criteria to determine if it needs to be installed. After the update is installed, the same detection criteria is used to determine if the installation was performed without a problem.

Regards,
Cosmin
Our software is installed on a file server. The clients have a shortcut on their desktop that points to our software installation and they run the software using that shortcut, so nothing is actually installed on the client computer. Often, the customer doesn't know where the server is, or even what a server is, so asking them to update the software form the server is not usually an option.

We would like to be able to place update.exe on the file server in our software directory and call it with command line options from any client. To do this, there would need to be some sort of option to tell the updater that it should look in its application directory for the files. Something similar to when you are in the Updater setup and specify something like [AppDataFolder]\updates\ for the downloads folder.

Thank you,
Jeff
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Dynamic Folder in Updater .ini

Hi,

I have added an improvement on our TODO list which will allow you to use dynamic folders for the Updater. This improvement will be available in a future version of Advanced Installer. Thank you for your suggestion. You can try using a custom registry entry as a detection criteria for the update, but I'm not sure if it will work.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
joesnuffie
Posts: 4
Joined: Fri Oct 10, 2008 5:40 pm

Re: Dynamic Folder in Updater .ini

Thank you for your response to this. For now, I will create a small application that will generate updater.ini before calling updater.exe. I have also written an application that creates the update.txt file and we are really loving the updater.

Return to “Common Problems”