Wildcard for command line edit - 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!

MikeMurnane
Posts: 30
Joined: Wed Dec 08, 2010 5:46 pm

Wildcard for command line edit

Is there a way to have the command line edit command AddFile work for all files in a directory. (e.g. AddFile APPDIR \\testbuild\\dist\\*.*). I want to place all of the files in the APPDIR but not under the directory named dist.
MikeMurnane
Posts: 30
Joined: Wed Dec 08, 2010 5:46 pm

Re: Wildcard for command line edit

I think I figured it out -- use NewSync .. will this command delete files from target that are no longer in source? as well as update ones with newer Date-Time stamps?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Wildcard for command line edit

Hello Mike,
will this command delete files from target that are no longer in source?
Yes, it will. The content will be identical with the one on the target machine, including the version and time stamp.

This command line option is the equivalent of its GUI counterpart. Please follow this link for more related information.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MikeMurnane
Posts: 30
Joined: Wed Dec 08, 2010 5:46 pm

Re: Wildcard for command line edit

Thanks, that does work but the results are not exactly as I would like. My problem is that I have a source directory structure that may or may not be populated entirely. I want to perform a sync on some of the directories / sub-directories if the source exists and has files. Can I use a command line commands to accomplish this? Or is there a way to ignore certain types of errors (file/directory does not exist) returned during a command line edit?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Wildcard for command line edit

Hi Mike,
Can I use a command line commands to accomplish this?
Unfortunately we have no predefined functionality to achieve this.
Or is there a way to ignore certain types of errors (file/directory does not exist) returned during a command line edit?
You can try to execute a file of commands with a " -nofail " switch. For more information please read this article's "Executing a file of commands" section. However the build is most likely to fail if an error is encountered.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”