extract values from exist files in the target computer - Advanced Installer Community
apachemaven
Posts: 10
Joined: Wed Jul 11, 2012 10:29 am

extract values from exist files in the target computer

Hi:

I am creating an ASP.NET application installer, and I meet some problems:

1) I need to read some configurations from an exist web.config at the target computer, and then put these values to the new installed applcation.

2) we need to read the service name of oracle net-service-names.


I wonder if that is possible?
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: extract values from exist files in the target computer

Hello,

Indeed, this can be accomplished with the Advanced Installer.
1) I need to read some configurations from an exist web.config at the target computer, and then put these values to the new installed applcation.

In order to achieve that you can go in the “Search” page and use the [XML Search] toolbar button. You can take a look on our “XML Search” tutorial.
2) we need to read the service name of oracle net-service-names.
In order to detect a service on the target machine, you can go in the “Custom Actions” page and add a predefined Detect service custom action. This custom action will fill AI_SERVICE_STATE public property with:
  • Started - the service is installed and it is started
    Stopped - the service is installed, but it is stopped
    Not Found - the service is not installed
Let us know if this is what you need otherwise give us more details.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”