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!

HadleyHope
Posts: 16
Joined: Fri Oct 11, 2013 3:22 pm

Advanced Licensing - Debugging in Visual Studio

If we are integrating the Trial.dll into our .NET project how do we debug the application, from what I see we have to:

1 Build the installer
2 Install the product on the development machine
3 Copy the Trial.dll from the product install directory to the appropriate bin/debug directory under the VS project.

It also seems that once this is done, we cannot then uninstall the product otherwise the Trial.dll appears to think the trial period has expired.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Advanced Licensing - Debugging in Visual Studio

Hello,

I'm not sure why you encounter this behavior, can you please give us more details (maybe exemplify)?
Also you can send us a small test project which replicate this behavior to support at advancedinstaller dot com so we can investigate it.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
HadleyHope
Posts: 16
Joined: Fri Oct 11, 2013 3:22 pm

Re: Advanced Licensing - Debugging in Visual Studio

I was using the TrialTestExample.NET

I built and ran the installer and then copied the Trial.dll into the /bin/Debug directory of the project. Did a little bit of debugging and then uninstalled the sample leaving the Trial.dll in the projects bin directory.

I guess one of the questions is do I have to build and run the installer on my own project before being able to retrieve the Trial.dll that I can then copy to the project?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Advanced Licensing - Debugging in Visual Studio

Hello,

To avoid this time consumer for the manual copy operation of the Trial.dll, please note that you can use
a copy file event in a Post-build event to copy the related .DLL to the destination path.

In order to achieve that you can go in the Media page and in the Configuration tab you should enable the Place files unpacked in folder next to the MSI database option from the Archive pane. This way the “Trial.dll” will be right next to the .MSI.

Then you can add the Post-Build copy file event. You can have the “Build Event” something like:
Command: field: cmd.exe
Arguments: field: /c copy "[|AI_BUILD_OUTPUT_FOLDER]\trial.dll" "E:\NewLocation"

Also to clean your system during tests you should go in the “Licensing” page and from the right-click context option for the Trial you can activate the “Testing” >> “Remove Trial Info” option.

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”