Updates Configuration file from Command Line - 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!

lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Updates Configuration file from Command Line

Regarding the Updates Configuration file,
I need equivalent commands to the UI options.
For example: /Set Version is equivalent UI option to "Product Version"
What are the equivalent UI option for:
Size=
ReleaseDate=
MD5=


Thanks!
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updates Configuration file from Command Line

Hi,

I'm afraid that there are no commands for setting these options. However, you can use the GUI version of Advanced Installer to configure them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Updates Configuration file from Command Line

Thanks Cosmin.
In Fact I have found the solution since SetVersion doesn't work for the Updates Configuration file:
I run build from command line and after that I use Search And Replcae utility to search for the relevant string in the TXT file (that the build outputs) and replace to the correct version.

Thanks,
Lekfir
aleholder
Posts: 6
Joined: Thu Dec 09, 2010 8:22 pm

Re: Updates Configuration file from Command Line

Hi Folks,

I have an automated build system and I want to push the .msi files out through the automatic updater. To be fully automated, I need to update the config file that sits on the web server that describes the updates. I've written a small utility to update the file for me that can be automated but the one thing I'm having trouble with is the format of the release date. I've pulled the relevant part out of my config file for illustration.

<COMPONENT cid="caphyon.advinst.msicomp.UpdaterEditorComponent">
<ROW Section="0.1.5 Update" Key="ReleaseDate" Value="15773" />
</COMPONENT>

I'm looking for the format of the above value which is set to "15773" above. From my searches through the advanced installer forums, it looked like the format was a UNIX timestamp. I'm programming in .Net and found some code snippets to do the conversion. If I use that and take the total seconds from the UNIX epoch of 1/1/1970, I can get close. However, it is not correct. For today's date, I compute something in 2009. So that is not the answer. So my question is, what is the format for above so I can fix my code to update the .aip file for the configuration properly.

Thanks!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Updates Configuration file from Command Line

Hello,

Actually, the format is not Epoch UNIX Timestamp.
Here is the conversion code for the date value:

Code: Select all

aDateSt.wYear = ((aDate & YEAR_MASK) >> YEAR_OFFSET) + 1980;
aDateSt.wMonth = ((aDate & MONTH_MASK) >> MONTH_OFFSET);
aDateSt.wDay = (aDate & DAY_MASK);
#define YEAR_MASK 0xFE00
#define YEAR_OFFSET 9
#define MONTH_MASK 0x01E0
#define MONTH_OFFSET 5
#define DAY_MASK 0x001F
Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aleholder
Posts: 6
Joined: Thu Dec 09, 2010 8:22 pm

Re: Updates Configuration file from Command Line

Thanks Mihai! :D

Return to “Common Problems”