Bug: Deleting registry key from command line - Advanced Installer Community
hovedsjef
Posts: 14
Joined: Wed Dec 14, 2011 2:22 pm

Bug: Deleting registry key from command line

I am using Advanced Installer version 8.6 to create a software package that makes use of the registry key HKLM\Software\KS&T. As part of a build script, I am trying to delete this key from my .AIP file, before importing pontentially new/changed values from a .REG file. Importing works fine, but deleting the key does not. I suspected the & sign, so I simplified the key for testing purposes to KST and created an empty test project to make sure nothing else was causing my problem, but the problem remained.

This is the command I am running and the response I am getting:
  • C:\VJ>"%ProgramFiles(x86)%\Caphyon\Advanced Installer 8.6\bin\x86\AdvancedInstaller.com" /edit installer.aip /DelReg -RegKey HKLM\Software\KST

    [SEH_AV_DEP_BADPTR] ACCESS_VIOLATION (0xc0000005) at address [0x6f636973]

    *** Stack Trace (x86) ***

    [0x6f636973] -----
    [0x007d6f74] -----
    [0x77b832f2] RtlImageNtHeader()
    [0x00855bcc] -----
    [0x6f17016a] free()
    [0x0085c626] -----

    C:\VJ>
The error only seems to occur when the regkey is actually found in the .aip file. I have attached the test .aip file as well.
Attachments
installer.aip
(8.61 KiB) Downloaded 368 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Bug: Deleting registry key from command line

Hello and welcome to Advanced Installer forums,

Indeed I can confirm this behavior, thank you for bringing it to our attention.
I have added the fix on our TODO list and it should be included in a future version.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Bug: Deleting registry key from command line

This has been fixed in version 8.9 of Advanced Installer, released on January 26, 2011.

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

Return to “Common Problems”