Revenera Documentation site will be unavailable on July 2nd due to scheduled maintenance. For more information see the status dashboard.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
renzzz
Level 2

Is there a way to copy a file from the installation folder (where setup.exe is) to the installation directory on the customer computer?

Is there a way to copy a file from the installation folder (where setup.exe is) to the installation directory on the customer computer?

My customer sell his software on a usb key, and each new installation comes with an updates database. My goal is to create one installation build, and be able to just replace one file when upload the installation to the usb key.

This is my current build:

(folder) ISSetupPrerequisites

(file) Autorun.inf

(file) database.accdb (I need this file to be copied to the InstallDir on the customer pc)

(file) setup.exe

 

What I tried:

Install script to copy the file from the directory where setup.exe is, but I can't manage to get that path.

Support files: Looking in different temporary folder provide by my debug, the file does not seems to get copied.

MessageBox(SRCDIR, INFORMATION);
MessageBox(TARGETDIR, INFORMATION);
MessageBox(INSTALLDIR, INFORMATION);
MessageBox(PACKAGE_LOCATION, INFORMATION);
MessageBox(SourceDir, INFORMATION);
MessageBox(SUPPORTDIR, INFORMATION);

I attached a picture of the build folder and my support file. I'm new to this and there is probably something i'm doing wrong.

Thank you!

 

 

 

 

Labels (1)
0 Kudos
0 Replies