TheM
Posts: 19
Joined: Wed Mar 02, 2016 12:46 am

15.6 crashes when building with custom prerequisite

Code: Select all

[SEH_AV_READ_NULLPTR] ACCESS_VIOLATION (0xc0000005) at address [0x0183da5f]

Advanced Installer 15.6 build 0c40bd432e
*** Stack Trace (x86) ***

[0x0183da5f]  -----
[0x0183e5a2]  -----
[0x01b8ebeb]  -----
[0x01b8e3d7]  -----
[0x01b9164a]  -----
[0x0296f7a8]  -----
[0x018dd2a8]  -----
[0x01a01610]  -----
[0x016c20b2]  -----
[0x016c20ba]  -----
[0x01609511]  -----
[0x0161213e]  -----
[0x0221e390]  -----
[0x015f0ef1]  -----
[0x76f9ad8f]  RtlInitializeExceptionChain()
[0x76f9ad5a]  RtlInitializeExceptionChain()
[0x01240000]  MODULE_BASE_ADDRESS
Attempted to add new prerequisite for Windows Management Framework BITS 5.1.

Download links test OK:
https://download.microsoft.com/download ... 64-x64.msu
https://download.microsoft.com/download ... 64-x86.msu

Install condition set on registry value HKLM\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine\PowerShellVersion with required version minimum set to 5.1.0 and maximum not set (tried other values like min 5 / max 6 but still crashes).
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: 15.6 crashes when building with custom prerequisite

Hello,
Install condition set on registry value HKLM\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine\PowerShellVersion with required version minimum set to 5.1.0 and maximum not set (tried other values like min 5 / max 6 but still crashes).
To be fully honest with you, I do not think that this issue is related to the install condition of the prerequisite.

From what I understand, you are using a URL prerequisite, am I right? If that is the case, I have tried to test this and I did not encounter the specified error.

In order for me to further investigate this, could you please give me a more detailed step-by-step which I can follow in order to replicate this behavior?

Also, if possible, could you please create a sample project which reproduces this and forward it by e-mail at support at advancedinstaller dot com?

Looking forward to hearing from you.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TheM
Posts: 19
Joined: Wed Mar 02, 2016 12:46 am

Re: 15.6 crashes when building with custom prerequisite

Hi Catalin,
Catalin wrote: Tue Sep 10, 2019 2:11 pm To be fully honest with you, I do not think that this issue is related to the install condition of the prerequisite.
It seems that it is related to a prerequisite, specifically to 64 bit one. I have created one for 32 bit and one for 64 bit. Deleting 64 bit prerequisite and with 32 bit one remaining there is no issue. If I delete 32 bit one but leave 64 bit one the issue is there. I have also tried re-creating 64 bit from scratch but the issue is still there.
Catalin wrote: Tue Sep 10, 2019 2:11 pm From what I understand, you are using a URL prerequisite, am I right? If that is the case, I have tried to test this and I did not encounter the specified error.
Yes, URL prerequisite. Must be 64 bit one, as above.
Catalin wrote: Tue Sep 10, 2019 2:11 pm In order for me to further investigate this, could you please give me a more detailed step-by-step which I can follow in order to replicate this behavior?
  1. Start New Prerequisite wizard;
  2. I have named it "Windows Management Framework BITS for Windows 8.1/Server 2012R2 x64; left Minimum version and Maximum version fields empty;
  3. For install condition chose Registry value located on the target computer "HKLM\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine\PowerShellVersion" with Contains a version in specified range, start at 5.1.0, end not specified;
  4. For location I chose Download single file from URL "https://download.microsoft.com/download ... 64-x64.msu";
  5. For launch conditions I unticked all 32 bit options and left only the following 64 bit options: Windows 8 x64, Windows Server 2012 x64, Windows 8.1 x64 and Windows Server 2012R2 x64;
  6. On the options page I left defaults ticked without changes: only "Continue with main installation even if prerequisite is not installed" and "Feature-based prerequisite which will be installed during main MSI installation" ticked, remaining three checkboxes left unticked;
  7. Saved the project and clicked Build (F7) -- build stops immediately with the error;
  8. If I delete the prerequisite I just created, save the project and click Build again it runs without any issues.
Catalin wrote: Tue Sep 10, 2019 2:11 pm Also, if possible, could you please create a sample project which reproduces this and forward it by e-mail at support at advancedinstaller dot com?
Let me know if the above does not help and I'll give it a go.

Thanks,
Harvey
TheM
Posts: 19
Joined: Wed Mar 02, 2016 12:46 am

Re: 15.6 crashes when building with custom prerequisite

Hi Catalin,

Was the information above sufficient to reproduce the issue or do you need more?

Regards,
Harvey
Catalin
Posts: 7492
Joined: Wed Jun 13, 2018 7:49 am

Re: 15.6 crashes when building with custom prerequisite

Hello Harvey,

First of all, please accept my apologies for the delayed reply.

Thank you for the detailed step-by-step.

Unfortunately, I was not able to reproduce the issue. I have tested this using both AI 15.6 and AI 16.3 (the latest version).

To be fully honest with you, this issue seems to be really strange and I can not say for sure why it occurs.

However, one thing is for sure - it has nothing to do with the conditions (you have mentioned something about conditions in your first thread). These conditions are evaluated at install time and your setup fails at build time.

In order for me to further investigate this, please forward me the .AIP file by e-mail at support at advancedinstaller dot com. If possible, please strip down the project from all its resources (I guess the resources do not have anything to do with this) and send it like that.

Looking forward to hearing from you.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”