Trial License Error - 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!

JohnHyde365
Posts: 7
Joined: Thu Nov 15, 2012 8:34 pm

Trial License Error

Hi there. I downloaded your trial license project and ran it and it all worked.

I then tried to follow the tutorial here: http://www.advancedinstaller.com/user-g ... nsing.html to create my own but it never worked properly and now just crashes everytime I run it in debug or installed version.

I also tried to integrate it into my main app where I want to use it and I keep getting this error:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Also I did get before 'BadImageException' but now the app just crashes.

Am I missing something, ..? when my app starts it runs in modmain, and then tries to load the licence information using the mainwindow handle..

Any help would be greatly appreciated.

Thanks
John
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Trial License Error

Hello John,

I'm not sure why you are encountering this behavior. Please take a look on our "Trial.dll cannot be read on one Windows 7 System" thread which may be helpful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
JohnHyde365
Posts: 7
Joined: Thu Nov 15, 2012 8:34 pm

Re: Trial License Error

Hi, thanks for the topic link.
Managed to resolve in the end.
So I am using VS2012 on Win7 Professional.

In order to resolve I had to add a post build event as follows:
call "$(DevEnvDir)..\tools\vsvars32.bat"
editbin.exe /NXCOMPAT:NO $(TargetPath)


Then I had to edit the app manifest by clicking view window settings on the project properties window - > Application tab and add the following xml code:

<!-- Enable themes for Windows common controls and dialogs (Windows XP and later) -->
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="*"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>

And hey presto it all now works.

Thanks
John
JohnHyde365
Posts: 7
Joined: Thu Nov 15, 2012 8:34 pm

Re: Trial License Error

However I still have an issue when running via the IDE and still get the exception with regards to protected memory.... :(
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Trial License Error

Hi John,

Can you please try to change the "Platform" combo from "Options" tab to "32-bit Library (DEP aware)", rebuild and try this package?

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”