Help needed on Licensing Option. - 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!

RichardHCH
Posts: 5
Joined: Wed Jan 13, 2010 7:51 am

Help needed on Licensing Option.

Our company is using Advanced Installer 7.2.1 Enterprise, and I'm not a programmer or software developer but I'm given the task to create the .msi files after our developer submit his files to me.

This week we have integrated the Trial and Registration feature of Adv. Installer with our executables & it works well where on install it is runs as a 30 days trial.
After 30 days, the user can request for trial extension or upon registration, it will remove the trial interface screen.


So everything is working like a conventional software, but now the problem is we planned to deploy our software as a time subscription based software.

The requirement is :

a) Anyone is allowed to freely download the software from our website & upon installing it will run as a 30 days trial. (No problems here & already achieved this)
b) If the user likes it, then he can pay for monthly subscription where he is allowed to install software updates or newer versions for that month.
c) If the user stop subscribing, then he is not eligible to install newer versions and he will be locked out from using the software like an expired trial.

Some questions :

1) How can I use Advanced Installer 7.2.1 Enterprise to do this?

2) Is it possible for the auto updater to retrieve & post information for registration / license info such as key, name, company, etc to the web server?

The example in here :

http://www.advancedinstaller.com/user-g ... -info.html

is only for the GUI of the installer, but can the Auto Updater command line options or any settings in the updater.ini do the [HttpPostUrl] & [HttpPostCollectData] function?

I have read :

http://www.advancedinstaller.com/user-g ... ality.html
http://www.advancedinstaller.com/user-g ... ality.html

but without any example, I'm not exactly sure about the correct syntax to use.

4)Is it possible to have the trial.dll to check against a URL for extension? Assuming there is a serial number or trial key?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Help needed on Licensing Option.

Hello,

Currently, Advanced Installer does not support this feature. However Advanced Installer 7.4 will include a feature that will enable you to set expiration dates on a license. This will help you distribute your software with a per-month license like you described.

The Advanced Updater only sends the license and the language id, as described in the updater license check article. The rest of the data associated with the license (name, company and so on) should already be existing on the server, in your database, as they were probably given to you by your customer when the license was sold.

Automatically extending trial is not supported. Trial can only be extended by requesting a trial extension in one of the ways specified on the Licensing Page.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
dms
Posts: 164
Joined: Tue Aug 28, 2007 7:11 am
Location: UK

Re: Help needed on Licensing Option.

Gabriel

It just so happens that I am waiting on this new feature that your are including in the next version. Do you happen to have a release date for it?

It would also be nice to see a sort of roadmap for future enhancements .

Dom
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Help needed on Licensing Option.

Hello,

We do not have a fixed date for the release, however keep an eye out as it is due to come out soon.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
RichardHCH
Posts: 5
Joined: Wed Jan 13, 2010 7:51 am

Re: Help needed on Licensing Option.

Thank you for the clarification but I'm still in the dark with the auto updater command line.
GabrielBarbu wrote:The Advanced Updater only sends the license and the language id, as described in the updater license check article.
http://www.advancedinstaller.com/user-guide/updater-advanced-functionality.html wrote:The command could be something like: "updater.exe /silent HKLM\Software\MyEditor\LicenseValue".

The updater will do a POST with a string in the following format:
licenseid=%s&languageid=%u

This is what the registry entry looks like after installing & registering our software:

[HKEY_LOCAL_MACHINE\SOFTWARE\My Company\My Software]
"Registration Key"="ABC123"

I have tried these commands :

1) "C:\Program Files\My Company\My Software\Updater.exe" /checknow "HKLM\SOFTWARE\My Company\My Software\Registration Key"

2) "C:\Program Files\My Company\My Software\Updater.exe" /checknow "HKEY_LOCAL_MACHINE\SOFTWARE\My Company\My Software\Registration Key"

3) "C:\Program Files\My Company\My Software\Updater.exe" /checknow -licenseid ABC123

4) "C:\Program Files\My Company\My Software\Updater.exe" /checknow -licenseid "ABC123"

on the command prompt as well as the updater's Windows shortcut properties, but the our server side did not get any POST data, as reported by our server's collect_file.php script below; which did not execute at all.
There is no problem running our server's collect_file.php in the Internet browser, it does execute and the page will show "Array ()" message.

Which is the correct syntax to use since I can't find any practical example anywhere in the documentation or forum, or is this feature broken?

I have included these files which I used below.

Updater.ini :

[General]
URL=http://my.company.com/softwareupdates.ini
ApplicationName=My Software
ID={BC4320A4-1A06-4FF8-AC39-6112A6012784}
DownloadsFolder=C:\Documents and Settings\User\Local Settings\Application Data\\My Company\My Software\updates\
AppDir=C:\Program Files\My Company\My Software\
CheckFrequency=1
CompanyName=My Company


http://my.company.com/softwareupdates.ini :

;aiu;

[General]
LicenseIdCheckURL=http://my.company.com/collect_file.php

[Update]
Name=My Software 2.0
URL=http://my.company.com/MySoftware2.0.msi
Size=2712576
ReleaseDate=14/01/2010
MD5=101b72b1dbd3a39a1bd27b62a98f1bbf
ServerFileName=MySoftware2.0.msi
Flags=SilentInstall
FilePath=[{E7BE0CF1-15DC-444E-8115-9167B928564F}{32C0AEA5-A921-4662-9017-6BDBC9218A46}]
Version=2.0

http://my.company.com/collect_file.php :


<?php

// test if there is any information to collect
if(!isset($_POST))
die();

$serverAppDir = @dirname(__FILE__) . '/';
$installLog = $serverAppDir . 'installs/users.log';

// create directory, if not present
@mkdir(@dirname($installLog));

// open file in "append" mode (create if not exists)
if(!$handle = @fopen($installLog, 'a'))
{
//echo "Cannot open file ($installLog)";
die();
}

// create install information record
$content = print_r($_POST, true) . "\n";

// log collected information
if(!@fwrite($handle, $content))
{
//echo "Cannot write to file ($installLog)";
}

// close file handle
@fclose($handle);

// optionally, emit a server response
echo $content;

?>
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Help needed on Licensing Option.

Hello,

There was a bug with specifying the license check url from the updates configuration file on the server (the LicenseIdCheckURL= <url> section).
This has been fixed in the upcoming release of Advanced Installer ( AI 7.4). In the meantime, try specifying the license check url for the updater using the -licensecheckurl <license_check_url> command line line option as described in our guide.

Please let me know how this turned out.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
RichardHCH
Posts: 5
Joined: Wed Jan 13, 2010 7:51 am

Re: Help needed on Licensing Option.

Hello Gabriel,

I ran the command :

"C:\Program Files\My Company\My Software\Updater.exe" /checknow -licensecheckurl http://my.company.com/collect_file.php

Unfortunately, the PHP script is still not executed at all, but I do get the respond dialog "Your software is up to date".



Okay, something just came up in my mind.
The Auto Updater are suppose to pass the license or check the license expiration by DD/MM/YYYY.
Then it will inform the user whether or not he can proceed to download the updates.

What if the user opens up the updater.ini on his PC & manually download the updates .msi file as indicated in the URL link?
The user can just install the .msi without any checks or warning on his PC.

I noticed the the Advanced Installer own advinst.msi will run a check on the "UpgradeDlg" on the "Yes, remove older version" radio button option & tells me that if this version falls outside the license expiration date.

How do I script my Advanced Installer project for this kind of check?
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Help needed on Licensing Option.

Hello,
Unfortunately, the PHP script is still not executed at all, but I do get the respond dialog "Your software is up to date".
Did you add new updates to the updates configuration file on your server?

Regarding the license check,this should only be done by your software, not its installer, as it provides the best security.
How do I script my Advanced Installer project for this kind of check?[/url]
This can only be achieved using custom actions.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”