Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Running a system executable


2 replies to this topic

anthonyh

anthonyh
  • Full Members
  • 93 posts

Posted 25 June 2002 - 21:39

Is it possible to run copy or even xcopy from a custom action?

  I've created one that has the following properties:
Type: 50
Source: SystemFolder
Target: xcopy.exe /y "[PROPERTY1]" "[PROPERTY2]"

Manually the command runs without any problems, but from the install, it causes an error.

I'm trying to avoid having to write custom code just to copy 1 file.


Anthony
Product Availability Developer
Avantis
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project

Irina

Irina
  • Members
  • 227 posts

Posted 27 June 2002 - 21:16

Hi,
Try this:
Target: cmd /c "xcopy.exe /y "[PROPERTY1]" "[PROPERTY2]""
Best regards,
Irina Shirinsky
Software Engineer, Heroix Corporation
http://www.heroix.com

anthonyh

anthonyh
  • Full Members
  • 93 posts

Posted 27 June 2002 - 21:35

It actually turned out to be the type I was using.  It should be 34 instead of 50.



Thanks,
Anthony
Product Availability Developer
Avantis
Invensys Process Systems

Using InstallShield Developer 7.04 - Basic Project