add file to particular Feature after creation of installer - 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!

TELIGAURAV
Posts: 7
Joined: Wed Jun 17, 2009 5:57 am

add file to particular Feature after creation of installer

i have one file with my installation package. (*.config)

when we were testing installer , one change come along

i have to change one .config file ( which it in APPServer Feature ) so that user can enter its value at installation time and installer assign entered value dynamically ( to one of configuration element "port number" ).

but for that i have to remove and add it as a xml import.

but doing that the .config file take wrong Feature. it has taken "ReportDesigner" Feature instead of APPServer.

can you suggest a way to add file to particular Feature.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: add file to particular Feature after creation of installer

Hi,

You can try using the "Feature" combo in the toolbar of the "Files and Folders" page to change the current feature. Any files which are added to the project are automatically placed in the current feature. Another solution is to move the resources to the feature you want in the Organization page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TELIGAURAV
Posts: 7
Joined: Wed Jun 17, 2009 5:57 am

Re: add file to particular Feature after creation of installer

my problem is different

i.e.

i have three feature
Feature1
File1
File2.config => non xml file.
Feature2
File3
File4
Feature3
File3
File4

and i have success fully developed installer.

but after that requirement changed

so i have to edit File2.Config at run time. So i have to make it of XML type so that i can assign some property value from user.

for that AI has one option Import Xml

i have imported while selecting Feature1 in header feature selection combo box

so it will be

Feature1
File1
File2.config => xml type file. ( from non .xml)
Feature2
File3
File4
Feature3
File3
File4

it will be physically added in Feature1

but logically it belongs to the last Feature that is Feature3


so if i will select Feature1 , not selecting feature Feature3

than at that time Installer Package will not install my File2.config file.

please help me.


thank you.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: add file to particular Feature after creation of installer

Hi,
it will be physically added in Feature1
but logically it belongs to the last Feature that is Feature3
so if i will select Feature1 , not selecting feature Feature3
than at that time Installer Package will not install my File2.config file.
I'm not sure I understand what you mean. Can you please give me more details about this? Which feature do you want to install the XML file?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TELIGAURAV
Posts: 7
Joined: Wed Jun 17, 2009 5:57 am

Re: add file to particular Feature after creation of installer

let me explain again
all i want to say is i added one file , now i want it to be edited with Edit XML Editor.
when i remove it and add it again (by importing it as XML file.)
it belongs to some other feature. ( i have used top feature selection combo box ).

it should belongs to Feature1 but it belongs to Feature3.

Thank you

Regards
Garuav Teli
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: add file to particular Feature after creation of installer

Hi,

Unfortunately we are unable to reproduce this behavior on our test machines. Any files added to the project should automatically go into the current feature (the one in the "Feature" combo on the toolbar). Can you please send us the .AIP (project) file you are using to support at advancedinstaller dot com so we can investigate it? Also, please specify the exact steps you are taking.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TELIGAURAV
Posts: 7
Joined: Wed Jun 17, 2009 5:57 am

Re: add file to particular Feature after creation of installer

sending you .aip file please investigate it.

taking about

file
XpedeonAppService.config

if i add by Right click on "Xpedeon Enterprise .NET Application Server " => "Add Files... " => add file "XpedeonAppService.config"
with Feature Selected "Application Server" it works as expected but i want to edit this file with "Edit XML Edit ". As it is non xml file i am not able to edit it.
( i want to assign [NEWDIALOG_APPSERVER_PORT] property value to "port" attribute.

So i have removed it and add it by by Right click on "Xpedeon Enterprise .NET Application Server " = > Import => XML Files..
so this way i can edit and assign property value to "port" attribute ( in side XpedeonAppService.config file)

but doing this file belongs to some other feature "Report Designer"
in File And Folders i can see file "XpedeonAppService.config" in "Xpedeon Enterprise .NET Application Server " but if you access by right click on "XpedeonAppService.config" from File and Folders "Go To Components " you can see it will be added inside "Xpedeon Enterprise Report Designer"

i want it to be added in Feature "Application Server" and when installed it should be installed in "Xpedeon Enterprise .NET Application Server" Folder.

thank you
please reply me.
waiting for your reply.
Attachments
XpedeonEnterprise.NETSetup.rar
(39.27 KiB) Downloaded 324 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: add file to particular Feature after creation of installer

Hi,

After investigating the project you provided we found that this behavior is caused by a bug in Advanced Installer. Thank you for bringing this to our attention. A bugfix will be included in the next release. Until then, you can use the Organization page to move the resource manually into a component from the feature you want.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”