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!

pitti
Posts: 1
Joined: Wed Aug 16, 2006 2:10 pm

CreateFolder/RemoveFiles components

I'm currently evaluating Advanced Installer 4.2 trial and found a bug:

1. Create new enterprise project, click finish
2. Go to "Files and Folders", add some file to "Application Folder"
3. Go To "Organization", verify that a component for this file has been created.
4. Go to "Files and Folders", open properties of "Application Folder"
5. Go to "Remove" tab, enable "Remove Folder"
6. Go to "Organization". A new component named "APPDIR" has been created, containing one CreateFolder action (why?) and one RemoveFile action for this folder. The remove action HAS AN EMPTY NAME and cannot be renamed to something meaningful either.
7. Go to "Files and Folders", open properties of "Application Folder"
5. Go to "Remove" tab, DISABLE "Remove Folder" again.
8. Go to "Organization". The "APPDIR" component is still there and CANNOT BE DELETED.

This works with any folder, not just APPDIR.
The empty name of the RemoveFile actions manifest themselves as FileKey names like "_" and "__1", "__2" etc. in the RemoveFile table of the database, with no way to change that.

Why can't components be renamed?

Next issue: Registry keys.
If you add a registry key that consists of a full path, like
"SYSTEM\CurrentControlSet\xyz\...." instead of creating each key seperately, this key seems to work, but the path cannot be edited. You have to delete it and create a new one, plus add all values again. (I first did it this way because another installer tool we tried before would create multiple entries in the MSI database instead of one, if you don't create one key with the full path. Later I found out this is not necessary with Advanced Installer, but it is a bug nonetheless...)

Also, the trial version doesn't let me add new dialogs. I can only edit predefined dialogs. There isn't even a predefined LicenseAgreementDlg.
We are seriously considering purchasing a few licenses for Advanced Installer if we find that it meets our requirements, but we cannot test all aspects of our project without adding dialogs...

regards,
Peter
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
The "APPDIR" component is still there and CANNOT BE DELETED.
This does not affect the package behavior but we will investigate and fix this issue in a future version.
This works with any folder, not just APPDIR.
The empty name of the RemoveFile actions manifest themselves as FileKey names like "_" and "__1", "__2" etc. in the RemoveFile table of the database, with no way to change that.
The empty name for the RemoveFile component in the organization page does not have any connection with "FileKey" (this is the table key used to identify a particular entry). The "RemoveFile" table is also used to remove a folder. To remove a folder the "FileName" must be null and thats why the associated component in the organization page has an empty name. Platform SDK Documentation states:
"This column contains the localizable name of the file to be removed. If this column is null, then the specified folder will be removed if it is empty. All of the files that match the wildcard will be removed from the specified directory."
Why can't components be renamed?
We have this on our TODO list and will be available in a future release.
If you add a registry key that consists of a full path, like
"SYSTEM\CurrentControlSet\xyz\...." instead of creating each key seperately, this key seems to work, but the path cannot be edited.
Actually this is a known limitation of Advanced Installer and we hope to solve it ASAP.
Also, the trial version doesn't let me add new dialogs. I can only edit predefined dialogs. There isn't even a predefined LicenseAgreementDlg.
In order to use the "Dialog Editor" you need to create a "Enterprise" project (an "Enterprise" project needs an "Enterprise" license). To add an predefined dialog use "Add Dialog" toolbar option. Also to create a new dialog use "New Dialog" toolbar option.

If you have any other questions i'll be glad to answer them.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”