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!

yaniv
Posts: 1
Joined: Mon Sep 19, 2005 11:09 am

How to run a "Copy" command

I have 2 Q:

1. I need to Mack a backup to a file before I install an update of my software.
How can I run a simple dos command: "copy File.dat File.bak"?

2.Can i use VBS on win 98 , 2000?
Mike
Posts: 292
Joined: Wed Jun 01, 2005 10:50 am
Location: Craiova, Romania
Contact: Website

Hi,

1.
You cannot run a DOS command directly. Only EXEs, DLLs and scripts can be used as custom actions.

In order to do a copying you could use an executable that copies a file to a location. Both would be received as parameters.

2.
You can run a script on those systems, provided that Windows Scripting Host is installed on them.

Regards,
Mihai
Mihai Bobaru
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”