Access Violation in bootstrapper - 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!

Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Access Violation in bootstrapper

Hi all
My customer has a problem installing the solution built using Advanced Installer (v 7.2)
Bootstrapper throws an Access Violation error immediately after it has been run, without showing any progress bars or dialogs.

Exception - [READ OPERATION] ACCESS_VIOLATION (0xc0000005) at address 0xe92f0b4500d55baf.
*** Stack Trace ***
[0x00d55baf]


It's reproduced both on XP and Vista on his side, but it's NOT reproduced on my side (XP SP3 and Vista SP1).
As I understand, the bootstrapper only performs some checks like free space and prerequisites?
Setup has the following prerequites:
- Windows installer 3.1
- .NET Framework 3.5 SP1
- SQL Server 2005 express
- Visual C++ 2008 redistributable package
- ffdshow codec

Could you please advice on how to locate the error?
Thank you

Alexander
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

I've attached to this post an archive, "stubs.zip". It contains three folders, each of them with certain files. You will have to go to "stubs" subfolder from the installation folder of Advanced Installer
and replace the files from the three folders with the one you find in the archive. Please note that you should replace only the files that exist in the folders I've sent, not all the files from that folders.

Now, after replacing the files rebuild your application and send it to the user. When the user will run the bootstrapper it should create a log file next to it.
Please send us the log file created to support at advancedinstaller dot com so we can investigate the problem.

Regards,
Bogdan
Attachments
stubs.zip
(1.75 MiB) Downloaded 313 times
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

Hi Bogdan, thank you for the archive. I replaced the files on my machine, but the setup.exe doesn't log anything if I run it on my computer. Should I hope that it will log the errors on the customer's machine?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

No, the log file should have been created on your computer too. Please make sure that you have replaced all the files from the three folders as I said before.
If the log is not created I suggest you should recopy the files in the three folders or reinstall Advanced Installer and copy the files.

I've tested the files on my computer and the log is created normally.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

I've updated the files in subfolders of
C:\Program Files\Caphyon\Advanced Installer 7.2\stubs
with the files you've shared to me, but it appears that the Advanced Installer doesn't use these new stubs... If I run the setup.exe stub you've sent to me, it creates a log file, but the setup.exe which is built with Advanced Installer is a couple of kilobytes less than the stub and doesn't log anything...
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

Please make sure that you are also using Advanced Installer 7.2 to create the package. It is possible that you have installed side by side multiple versions of Advanced Installer
and you create the package with another version. Try to check the target of the shortcut you are using to see what version of Advanced Installer are you using.

Please let me know if the problem persists.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

Yes, Bogdan, I have two versions of Advanced Installer - 7.2 and 7.2.1. I'm building the package with the 7.2 one. Just in case I also replaced the stubs for 7.2.1 too :)
I tried to build the package both with 7.2 and 7.2.1 - none of them builds a setup.exe which logs anything
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

Could you please delete the cache files of the project created when you've first build the package?

Please let me know if the problem persists.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

I tried to delete the cache and turn off caching in project options, neither helped..
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

Could you please try to install Advanced Installer on a clean machine, a virtual machine for example. After that replace the new files with the one from me and try building the package.

Please let me know if the problem persists.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

Bogdan, I've just tried to build a package on a virtual machine with version 7.2.1 with replaced stubs and the resulted setup.exe still doesn't log anything.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

Can you please try creating a simple .exe package(it simply installs a file), not your product, to see if the log is created?
Please let me know how that works for you.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

Thank you Bogdan, I'll try and post the result. For now I have an update - if I check radiobutton "include install files in EXE" and build the installer into single file, that setup.exe works fine...
Zubenator
Posts: 13
Joined: Mon Oct 05, 2009 7:45 am

Re: Access Violation in bootstrapper

Hi Bogdan
I created a test empty package and built it, and its bootstrapper writes log fine. What things can cause my package to use other stub or not to write log?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Access Violation in bootstrapper

Hi Alexander,

Please follow these steps carefully:
-- create the test package with Advanced Installer, do not close Advanced Installer
-- test the package, if the log is created go to Advanced Installer and open your project using the [Open] button from the toolbar (not double click on the .aip file directly)
-- rebuild the package
-- when the build finishes, in the Build Project dialog it will appear a link towards the folder in which your package resides
-- use that link to go to the folder
-- now you can test the new EXE created, this should create the debug log when installing the package

Please let me know if the problem persists.

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

Return to “Common Problems”