File copying and editing on the target computer - 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!

robertq@gwava.com
Posts: 4
Joined: Thu Jul 21, 2011 5:45 pm

File copying and editing on the target computer

First, let me start by saying I'm new to the advanced features of Advanced Installer. I used Advanced Installer Pro to make a very basic installation and found it easy and straightforward. Now I am evaluating the Enterprise product because I have some pretty specific requirements for an installer. I have been looking over the forums and through documentation and haven't found anything clear cut that answered my questions.

Here are some of the specific things I need to do in this installer. Please let me know if Advanced Installer can do it and/or point me to where I can learn how to. This is actually an installer for a plugin to another product so the install is somewhat complicated.

1) Check for existence of a file on the target computer and then copy a template file from the target computer to a destination directory with the original name I was searching for.
2) Once this file is in place I need to edit it. This file is an XML file. I know the Enterprise version provides options to edit XML files, but what do you do if the file is on the target computer and not part of the installation package?
3) There are also some aspx files that I need to modify in the installer. I would assume I would use the text file editor, but again this has to be done on files that are on the target computer.

I hope that is detailed enough.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: File copying and editing on the target computer

Hi,
Check for existence of a file on the target computer
This can be done through a file search in Search page.
copy a template file from the target computer to a destination directory with the original name I was searching for
For this you can use a file copy operation in Files and Folders page.
Once this file is in place I need to edit it. This file is an XML file. I know the Enterprise version provides options to edit XML files, but what do you do if the file is on the target computer and not part of the installation package?
Our XML editor can update existing XML files. Simply create the XML file in the location your file copy operation places it and set installation options for each element.
There are also some aspx files that I need to modify in the installer. I would assume I would use the text file editor, but again this has to be done on files that are on the target computer.
For this you can use our text file editor.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
robertq@gwava.com
Posts: 4
Joined: Thu Jul 21, 2011 5:45 pm

Re: File copying and editing on the target computer

cosmin wrote:Hi,
There are also some aspx files that I need to modify in the installer. I would assume I would use the text file editor, but again this has to be done on files that are on the target computer.
For this you can use our text file editor.

Regards,
Cosmin
Thank you very much for the detailed help and steps. I have everything in working order except one item. I need to replace the text found with multiple lines. I tried using \r\n and it just put it in as raw text. Is there a way to specify a line break?

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

Re: File copying and editing on the target computer

Hi Robert,

Unfortunately there is no functionality for new line in a Windows Installer formatted field. However, I discussed the issue with the development team and we will include an improvement for a future release of Advanced Installer.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
robertq@gwava.com
Posts: 4
Joined: Thu Jul 21, 2011 5:45 pm

Re: File copying and editing on the target computer

Well that's unfortunate, but not a deal breaker. Thanks again for the quick reply.

Return to “Common Problems”