Copy file from installation source

Got a problem you cannot solve? Try here.
Post Reply
noebby
Posts: 1
Joined: Mon Jun 04, 2007 7:10 am

Copy file from installation source

Post by noebby »

We must copy one licence file to the destination directory which is not included in the install package because it is individual. How to? "Copy Local Files" does not work.

Regards,

Norbert
SteveDude
Posts: 253
Joined: Wed Apr 11, 2007 6:07 pm

Copy Files

Post by SteveDude »

I would also like to know a good way to do this. Don't have the time or experience at this point to creat a plugin to handle it. I need a way to copy multiple files from a CD to the local machine. I know this is a Windows Installer limitation, but would be a great addition to IA.
jimo
Posts: 342
Joined: Fri Aug 19, 2005 10:59 am
Location: Atlanta, GA
Contact:

Post by jimo »

Use call dll.

Here is an example;
~InstallAware Clipboard Data~
~Call DLL Function~
~{89412589-2864-4C5B-B221-63150F855CE7}~
~kernel32.dll,CopyFile,bool,LASTERROR,"pointer to string",$TARGETDIR$\\MDDMBackup,"pointer to string",$TARGETDIR$\\MDDM,$~
~mIDEFunc.dll\\mEXEFunc.dll~

In Engrish;

Call DLL Function kernel32.dll->CopyFile (get result into variable LASTERROR)
Jim Oswell
Software Engineering Manager, Dental
Greenway Health, LLC
http://greenwaymedical.com
Bo Andersen
Posts: 33
Joined: Mon Jul 16, 2007 5:07 am
Location: Denmark

Cant get it to work on win203

Post by Bo Andersen »

Can get the DLL call to work on windows 2003 - Error messages come up saying I need to install the plugin - I call the dll after the apply install.

What I need to do is to create a copy of a file that is installed.. I know I can include the file twice and just install both, but that would bloat my setup-file - are there any other ways?

Thanks

Bo

ADDED:
Exact error message is
Unable to load plug-in library. Please rebuild your project and make sure all required plug-ins are installed.

Action skipped

ADDED.
Heres the offending command
~InstallAware Clipboard Data~
~Call DLL Function~
~{E4E9FE45-CDED-447C-BA1C-8DC27369C406}~
~$WINSYSDIR$\\kernel32.dll,CopyFile,bool,LASTERROR,"pointer to string",$TARGETDIR$\\DAT\\dnmc.dai,"pointer to string",$TARGETDIR$\\DAT\\emptydnmc.dai,$~
~~mIDEFunc.dll\\mEXEFunc.dll~ ~


and in english
Call DLL Function $WINSYSDIR$\\kernel32.dll->CopyFile (get result into variable LASTERROR)


also tried without the winsysdir...
Post Reply