miked
Posts: 18
Joined: Mon Jun 05, 2006 6:50 pm
Location: Maine, USA
Contact: Website

Manually Renaming Components

Hi, I'm trying to organize our install and give the Components more meaningful names than simply the first object found in the directory, which may or may not always be there. I understand we cannot rename Components through the UI, so I planned on editing the AIP file.

I also understand that each folder is a different Component. With this in mind, I created an empty directory structure. Then, on the Files and Folders page, I made the "Application Folder" "Synchronized" and pointed it to the root of the directory structure I created. This adds the folders to the Files and Folders page under the "Application Folder" and also creates the Components on the Organization page.

Next, I edited the AIP file to make each directory and sub-directory its own Component with a more meaningful name. For example: "[APPDIR]\bin", "[APPDIR]\lib\com" and "[APPDIR]\lib\util" were edited to make Components named: "APPDIR", "bin", "lib", "lib_com", and "lib_util".

I reopened the AIP file with AI and this all looked fine on the Organization page. Good so far.

Then, I added 4 OS files under the "bin" directory on the disk, expecting them to be picked up on the Files and Folders page, which they were.

Back to the Organization page. What I was expecting at this point, is that AI would automatically add each file as a Resource under the Component which I created above.

Instead, a NEW component was automatically added using the first file found as the name just as though I had never manually added the Components myself AND my Component named after the directory disappeared...

I can again reedit the AIP and "fix" everything, but I was really hoping I wouldn't have to do this every time programs were added to the various directories (Resources).

Also, some of the directories are currently empty, and I would have to reedit the AIP file every time an empty Component had a Resource added to it.

Is there a way to do this?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I understand we cannot rename Components through the UI
We have this on our TODO list an will be available in a future release (I have increase its priority). Until then if you really want to rename the components you need to manually edit the AIP file.
Instead, a NEW component was automatically added using the first file found as the name
You can Drag and drop resources to change the component they belong to.

Regards,
Gigi
________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
miked
Posts: 18
Joined: Mon Jun 05, 2006 6:50 pm
Location: Maine, USA
Contact: Website

Re: Manually Renaming Components

Gigi,

Thanks for the reply. I did edit the file, but I quoted the real problem below:
miked wrote:Instead, a NEW component was automatically added using the first file found as the name just as though I had never manually added the Components myself AND my Component named after the directory disappeared...
Why isn't AI using the Components I created for the directories? Many of the directories are currently empty, but when they get populated with files, AI creates its own Component and I have to edit the AIP file again...
miked
Posts: 18
Joined: Mon Jun 05, 2006 6:50 pm
Location: Maine, USA
Contact: Website

Just wondering if there is an answer to this? Can I create my own Component for each directory and have AI place the Resources into that Component without RE-editing the AIP file?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

No, I'm afraid not. The component organization is transparent and can not be seen by the user. However you can move resources between components. To see what operation are currently supported in the "Organization" page please see:
http://www.advancedinstaller.com/user-g ... ation.html

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
miked
Posts: 18
Joined: Mon Jun 05, 2006 6:50 pm
Location: Maine, USA
Contact: Website

gigi wrote:
I understand we cannot rename Components through the UI
We have this on our TODO list an will be available in a future release (I have increase its priority). Until then if you really want to rename the components you need to manually edit the AIP file.

Regards,
Gigi
Just received Version 4.5 last week, and we can now rename components!

Thanks for being so responsive!

Best Regards,
Mike

Return to “Common Problems”