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!

gopaul
Posts: 3
Joined: Mon Nov 06, 2017 11:47 am

setUpdatesUrl command

Hello, i have a SecureChat.aip file and i want to change the Updates URL in that file. To do that, i ran AdvancedInstaller from the windows command line with these options "/edit %cd%SecureChat.aip /setUpdatesUrl MY_NEW_URL"

The command executed successfully and also i was able to confirm that MY_NEW_URL had indeed changed in the SecureChat.aip file
"<ROW IniFile="URL" FileName="updater.ini" DirProperty="APPDIR" Section="General" Key="URL" Value=MY_NEW_URL Action="0" Component_="updater.exe/>"

Then i created a new MSI with this new SecureChat.aip and installed the MSI. However when i look into the updater.ini file in the installed app directory path, i see that the updater.ini has the old URL and not MY_NEW_URL.

Please can someone suggest if i should be using a different command to change the Updates URL in the SecureChat.aip file or if i have missed a step? My windows machine is using Advanced Installer 12.5.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: setUpdatesUrl command

Hello,

This sounds like a strange behavior, indeed.

The URL should be updated correctly in the INI file.

I have tested this scenario and everything worked as expected using Advanced Installer 16.1.

Could you please give me a more detailed step-by-step which I can follow in order to reproduce this issue? Here are the steps I took:

1. Create a new project and enable the updates by checking the "Check for updates using Advanced Updater" option ("Updater" page)

2. saved the .AIP file

3. edited the .AIP file by using the following command:

AdvancedInstaller.com /edit MyApp.aip /SetUpdatesUrl https://somelink.com

4. then I built the MSI and installed it

5. i checked, in the installation folder, the .INI file and the URL was set correctly

Please let me know if I missed something in my test case.

Looking forward to hearing from you.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
gopaul
Posts: 3
Joined: Mon Nov 06, 2017 11:47 am

Re: setUpdatesUrl command

Thank you for your response. It showed that i was doing everything correct. Which was my original doubt. I went back to my windows build and installer machine and cleaned both environments and i am having no issues with the updater.ini file, the setUpdatesUrl command on 12.5 is making the correct update to the updater.ini now. Thanks.
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: setUpdatesUrl command

Hello,

You are always welcome.

I am glad you got this working.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”