We think we found a bug in Advanced Installer. We were able to reproduce it on an installer created with Advanced Installer 13.1 but not with Advanced Installer 12.8.
OS: Windows 7 Professional with Service Pack 1 (x64)
Steps to reproduce it:
- Open Advanced Installer 12.8.
- Create a Professional project (under Generic Templates).
- Go to Resources -> Files and Folders.
- Add "C:\Windows\notepad.exe" under Application Folder. This will create a component called notepad.exe.
- Go to Resources -> Registry.
- Create a new key under Current user/Local machine -> Software called "Test" (without quotes).
- Create a new key called "Test" (without quotes) under the "Test" key created above. The full registry path is HK_UM\Software\Test\Test.
- Create a new value removal under HK_UM\Software\Test\Test with the following values:
- Name: "YourValue" (without quotes)
- Component: notepad.exe.
- Remove On: Component install
- Condition: 1=2
- Save the project with a name of "Your Application.aip".
- Build.
- Open Registry Editor (regedit.exe).
- Go to HKEY_LOCAL_MACHINE\SOFTWARE and create a new key called "Test" (without quotes).
- Create a new key called "Test" (without quotes) under the "Test" key created above. The key name is HKEY_LOCAL_MACHINE\SOFTWARE\Test\Test.
- Create a new string value called "YourValue" (without quotes) with a value data of "aaa" (without quotes).
- Run the installer built on 10. You will see that the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Test\Test and the value "YourValue" was not removed which is expected because the condition should evaluate to false.
- Uninstall Your Application.
- Open "Your Application.aip" created with Advanced Installer 12.8 in Advanced Installer 13.1. Advanced Installer will show "Project converted from a previous version (12.8)".
- Rebuild All.
- Run the installer built on 18). You will see that the whole registry key HKEY_LOCAL_MACHINE\SOFTWARE\Test\Test was removed which is incorrect.
Thanks,
Nicolás.
FOLLOW US
Get the latest news in Application Packaging