Trial.dll cannot be read on one Windows 7 System - 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!

jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Trial.dll cannot be read on one Windows 7 System

I have a c# program developed with Visual Studio 2005. I'm using Advanced Installer 8.0.2. The program works fine in an XP SP3 system and in a Windows 7 Pro system. However in a Windows 7 Home system, Windows 7 will crash the program at the exact point where it reads the trial.dll (the import is always successful). I see no difference in permissions between the two Windows 7 systems and I don't think it has to do with my installer setup, but I'm running out of options. If anyone can think of something to try, it would be much appreciated.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Trial.dll cannot be read on one Windows 7 System

Hi,

I am not sure what is the cause of this behavior. Have you tested the package and on other machines? Maybe there is something wrong with this one.

There should be no changes required for different OSes to use the trial support from Advanced Installer.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Re: Trial.dll cannot be read on one Windows 7 System

It has run on several machines, one other being a Windows 7 box. I didn't think there should be a difference using the trial dll with different os's, but just wasn't sure. I did have a response on a c# forum suggesting there might be a difference between Windows 7 Home edition and Windows 7 Pro edition causing the problem, but I think that is unlikely. I will be testing on more systems in the near future, but the failure on this particular Windows 7 Home system had me worried. But I won't know if it is just this particular system until I test will more systems similar to it.
jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Re: Trial.dll cannot be read on one Windows 7 System

I think I may have been wrong about the Windows 7 machine. That was the last machine I did an install on. Now, I just did another install on an XP box and got the same error. My program is catching the exception now on both machines (Win 7 and XP) and the error message is the same - "System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at program.form1.InitTrial(string aKeyCode, IntPtr aHWnd)" Now I am wondering if my trialware.dll has been corrupted in some way. Is there a way to restore that? Do I have to reinstall v8.02 to do it? If you think there is another problem, please let me know. This has just stopped my beta release in it's tracks.
jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Re: Trial.dll cannot be read on one Windows 7 System

Another followup that seems to confirm the corruption. I moved a trial.dll file from my development machine (which has always been working) to that last XP machine that I loaded. When I did that, my program worked properly.
jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Re: Trial.dll cannot be read on one Windows 7 System

Ok, I'm really sorry for some of this. The XP problem was my mistake and it is corrected now. That problem with the Windows 7 Home system is still occuring, but that may still be that particular machine. I'm new to Advanced Installer and it seems the learning curve is steep. I am proceeding with my beta release.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Trial.dll cannot be read on one Windows 7 System

Hello,

Can you please try to move the trialware.dll file from a machine on which your app works, to the Windows 7 machine and see the result?( same approach as on the XP machine )

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Re: Trial.dll cannot be read on one Windows 7 System

I finally got the one Windows 7 machine working, sort of. I'm not sure exactly what corrected it. I put in a post event in the Visual Studio project to disable the DEP for that program. I also set a project property to allow unmanged code.

But when it 'sort of ' works, the dialog coming out of the trial on that machine seems to be missing buttons. It has 'back' and 'next' buttons on the bottom, but no 'Try', 'Register' or 'Buy' buttons showing. I can click in the general open area on the dialog and have clicked the buttons. In other words, the click events are there on the dialog, I just cannot see the buttons. What could I have done to cause this?

Here's how the dialog appears:
Trial Dialog.JPG
Trial Dialog.JPG (24.62 KiB) Viewed 8526 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Trial.dll cannot be read on one Windows 7 System

Hello,

Here is similar thread that can help you.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jdcarwill
Posts: 7
Joined: Mon Jan 10, 2011 4:53 am
Location: Northern California, USA
Contact: Yahoo Messenger

Re: Trial.dll cannot be read on one Windows 7 System

Mihai,

Thanks for the link to that thread. It did require a lot of additional research on my part, so I will share some other links that may help someone else. I want to reiterate that my application works fine in a Windows 7 enviroment, but the licensing part from your installer requires that tighter adhererence to Vista rules be implemented.

Anyway, for help with embeding a Vista required manifest using Visual Studio 2005, see this link http://msdn.microsoft.com/en-us/library/bb756929.aspx

And here's the link to the entire article http://msdn.microsoft.com/en-us/library/bb756973.aspx

Hope this helps someone else.
JohnHyde365
Posts: 7
Joined: Thu Nov 15, 2012 8:34 pm

Re: Trial.dll cannot be read on one Windows 7 System

Hi thanks for you help I have just had a similar issue and you threads helped

http://www.advancedinstaller.com/forums ... 665#p57665

Thanks
John

Return to “Common Problems”