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!

chandrabhushan
Posts: 76
Joined: Thu Jul 02, 2015 10:58 am

offline installer validation through machine details

Hi Team,
Created an installer and i appreciate the help and support provided by support team.
As per my requirement i want to setup a n offline installer validation through machine details like
Before installing the installer is able to collect the machine information like username,Machine id(hostname), and send it to me by some mail client like outlook .
and then I can provide the key by replying that mail . The key should be different per machine
Please help me to implement the full process flow .
* how to implement it to installer
* what is the key (which key ) i have to send the user after getting details
Thanks
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: offline installer validation through machine details

Hello,
Before installing the installer is able to collect the machine information like username,Machine id(hostname), and send it to me
Please note that you can use the predefined Send install information to your web server custom action when you want to collect installation data and send it to your web server for processing. Install information can only be collected through Windows Installer properties (their values). For details please see: Collect installation data and send it to a web server.

However, I don't think this is what you need. As I can see, you can use the predefined Licensing support from Advanced Installer. The Advanced Licensing feature allows your users to evaluate your product before purchasing. It also enables users to register after they have received a valid key. After the trial period expired the user will be able to run your application only after registration. In the License Format section from the Licensing Registration Tab you can use the Computer Specific option. Using this option, license will be valid only on the system from which it has been requested. Your user will be able to request the license via email from the Registration page using the Request License link. You will receive the request in the Contact email address specified in the Licensing Settings page.

Please take a look on the Advanced Licensing article with related information for hints and guidance. Depending your application, you can easily integrate the trial support.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dpaskov
Posts: 2
Joined: Tue Feb 23, 2016 7:20 pm

Re: offline installer validation through machine details

Hi Team,

I am trying to create trial licensing for an offline c# mvc web application. I went through these user guide pages http://www.advancedinstaller.com/user-g ... naged.html, and tried the trial licensing, but when I call the OnInit method I receive an unexpected error.

System.BadImageFormatException: An attempt was made to load a program with an incorrect format. (Exception from HRESULT: 0x8007000B)
at NotificationManager.Helpers.License.InitTrial(String aKeyCode, IntPtr aHWnd)
at NotificationManager.Helpers.License.OnInit() in ...\License.cs:line 35

Is this the correct method for web application licensing? (probably not the best way for a web application.. I know, but some of the client servers are offline)
Is there another method in advanced installer I should try.

Best Regards,
Dobrin
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: offline installer validation through machine details

Hello Dobrin and welcome to our forums,

I'm not sure why this happens. Basically all what you have to do is to call the "ReadSettingsRetStr" and "DisplayRegistrationStr" functions of our "trial.dll" C++ native dll within your C# web application code. Also, you should make sure the "trial.dll" is copied in the same folder with your web app files and that it is installed by your setup package. Even when you want to test/troubleshoot your web application you should still first install the setup package before calling the trial.dll function.

Unfortunately, we don't have any example about how to call our trial module functions within a C# web app. I've added this request on our todo list and as soon as we build a working example we'll add it in our help files and update this thread. Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dpaskov
Posts: 2
Joined: Tue Feb 23, 2016 7:20 pm

Re: offline installer validation through machine details

Hi again,

I have those extern methods in my application, but when calling OnInit I recieve the described error.
It is in the correct folder otherwise the example code for C# desktop app would be raising DllNotFoundException exception.
Edit: due to some documentation of when this error occurs, it is when "The exception that is thrown when the file image of a dynamic link library (DLL) or an executable program is invalid.", so I guess the dll created from AdvancedInstaller is not compatible with my web application.

Best Regards,
Dobrin

Return to “Building Installers”