Problem deleting properties from Install Parameters page - Advanced Installer Community

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!

jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Problem deleting properties from Install Parameters page

I have 3 properties I wish to delete which were used in dialogs that I have deleted from my project.

When I try to delete them a message is displayed that they are referenced in the project so I ask to see the resources using them (click ok).

A screen then appears which shows the Type as: AiPropertyAlias ID: Blank Details: blank and Target Item: <Property Name mentioned> e.g. BCD_OFF_HOOK_EXTN.

How can I delete these properties please where is AiPropertAlias ?

Regards,
John
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem deleting properties from Install Parameters page

HI John,

If you deleted the dialogs from the installation then they should be under "Unused dialogs" group in the Dialogs page:
ünunsed dialogs.jpg
ünunsed dialogs.jpg (55.5 KiB) Viewed 7378 times
You can remove the references and delete the properties.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Problem deleting properties from Install Parameters page

Hi Mihai,
I had already deleted the unused dialogues. It will not let me delete them. The properties are all present in the database. Even if I delete from the property table it still complains if I try to delete from the Install parameters page.

I have uploaded the project but obviously you will not have the dialogues.

See if you can see what is wron in the project please.

The property names all begin with BCD_

Regards,
John
Attachments
Costing32.aip
(108.06 KiB) Downloaded 388 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem deleting properties from Install Parameters page

Hi John,

Indeed, unfortunately we cannot open the project because we don't have your dialogs.

However after a quick look in edit mode, I noticed all properties that start with BCD_ are referenced as part of XML file updates. Also, BCD_USE_OPD_1 is used for a checkbox control.
You can try to look for these references and remove them.

Hope this helps,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Problem deleting properties from Install Parameters page

I edited the project file: -
Took out all declarations of BCD_ variables.

<COMPONENT cid="caphyon.advinst.msicomp.AiAI_XmlElementAliasComponent">
I removed all of these. If you remember it was complaing that the reference was an alias if I deleted them from property table.
On that note why, when you dlete an item from the table does it remain marked with a green line through it?

</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.AiCustomActionAliasComponent">
<ROW AliasRowId="GetPrimarySchemaVersion.vbs" AliasRowOperation="2" Target="BTSCAErrorHandler"/>
<ROW AliasRowId="GetSecondarySchemaVersion.vbs" AliasRowOperation="2" Target="BTSCAErrorHandler"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.AiDialogAliasComponent">
<ROW AliasRowId="BTSCustomizeDlg" AliasRowOperation="1"/>
</COMPONENT>
<COMPONENT cid="caphyon.advinst.msicomp.AiPropertyAliasComponent">
Removed AMI_HOST reference from here.
<ROW AliasRowId="SQL_SECONDARY_APP_PASSWORD" AliasRowOperation="1"/>
<ROW AliasRowId="SQL_SECONDARY_APP_USERNAME" AliasRowOperation="1"/>
<ROW AliasRowId="SQL_SECONDARY_DATABASE" AliasRowOperation="1"/>
<ROW AliasRowId="SQL_SECONDARY_PASSWORD" AliasRowOperation="1"/>
<ROW AliasRowId="SQL_SECONDARY_USERNAME" AliasRowOperation="1"/>
</COMPONENT>

Result all the BCD_ properties etc. gone and project now the way I want it. :D

Regards,
John
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem deleting properties from Install Parameters page

Hi John,

Manually editing the .AIP is not recommended because without the proper experience can lead to future, unwanted behavior.
On that note why, when you dlete an item from the table does it remain marked with a green line through it?
The changes made to a predefined table are not reflected in the Advanced Installer user interface. They will be applied when the MSI is built having precedence over changes performed from the UI. The green strikeout line is to outline those changes which can be easily undone.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Problem deleting properties from Install Parameters page

I understand that it is not recommended but if it gets me where I want to be that will do for me.

As for experience, well let's not go there. I don't regard an XML file as being that much of a challenge.

Whilst I value your hekp you have to appreciate that I need to move forward with my project.

I have hundreds of products I need to build using this installer and as I have put /my/ faith in it I will look a bit of a fool if I cannot do what I said it could do when I evaluated it.

What is particualrly irksome is that simple things like this and the fact that saving dialogues to the repository under different names causes problems beyond belief as I have highlighted in one post when you said that I 'shouldn't expect a fix anytime soon'!

Regards,
John
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problem deleting properties from Install Parameters page

Hello John,
As for experience, well let's not go there. I don't regard an XML file as being that much of a challenge.
Sorry about that, I didn't mean to offend. We usually mention it to all our clients more as a disclosure.
If someone is unfamiliar with the .XML structure, misses a reference or even adds an extra blank space can easily break the project.
My initial recommendation was to remove the resources from the GUI. However, if you performed the changes manually without repercussions, all should be fine.
I have hundreds of products I need to build using this installer and as I have put /my/ faith in it I will look a bit of a fool if I cannot do what I said it could do when I evaluated it.
This shouldn't be the case, however please point out anything misleading on our behalf so we can clarify it. Also, if Advanced Installer does not meet your expectations, you can contact us by e-mail for a complete refund.
What is particualrly irksome is that simple things like this
Deleting a property without deleting its references throughout the project cannot be done. This is by design. Also, since the reference search did not find the .XML references we'll improve it in our next versions. If the reference search fails, you could also use Ctrl + F to find them all as a workaround.
and the fact that saving dialogues to the repository under different names causes problems beyond belief as I have highlighted in one post when you said that I 'shouldn't expect a fix anytime soon'!
If you're referring to this thread then unfortunately we cannot implement that improvement anytime sooner for the same mentioned priority and difficulty reasons. Can you please also specify why this functionality is a show-stopper for you? Maybe we can suggest a workaround.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”