Copy a file after install?
Posted: 28 Jan 2016, 17:14
Hello, I am giving your installer a whirl (very easy product to use!) but I have 1 issue I am having with it and I was hoping you could tell me if it possible and if so point me in the right direction.
If this is not the right place to get assistance with that, can you please direct me to where I might find help?
I would like the installer to take a pre-configured file (provided by the end user) that is placed in the same directory as the installer, to copy to the install path after the install is complete.
This file is the configuration file our the app, that has connection strings to Databases and servers etc.. Other computers on their network will already be configured so I was hoping they could just take a copy of that file from the working box, place it in the same directory as the installer and when it runs, it will overwrite the blank config file that the installer places in the install path.
I think I can accomplish this via Shell command option.. I placed the following command in there but it does not appear to work..
Xcopy properties.txt <InstallPath>
where properties.txt is the config file.
I though this would execute Xcopy from the directory the installer was in and copy it to the install path (default C:\Program Files (x86)\APPNAME;
XCOPY Medproperties.txt C:\Program Files (x86)\APPNAME
is this not what the shell command is for? Is this possible?
Thanks so much for any assistance you can offer!
Aron
If this is not the right place to get assistance with that, can you please direct me to where I might find help?
I would like the installer to take a pre-configured file (provided by the end user) that is placed in the same directory as the installer, to copy to the install path after the install is complete.
This file is the configuration file our the app, that has connection strings to Databases and servers etc.. Other computers on their network will already be configured so I was hoping they could just take a copy of that file from the working box, place it in the same directory as the installer and when it runs, it will overwrite the blank config file that the installer places in the install path.
I think I can accomplish this via Shell command option.. I placed the following command in there but it does not appear to work..
Xcopy properties.txt <InstallPath>
where properties.txt is the config file.
I though this would execute Xcopy from the directory the installer was in and copy it to the install path (default C:\Program Files (x86)\APPNAME;
XCOPY Medproperties.txt C:\Program Files (x86)\APPNAME
is this not what the shell command is for? Is this possible?
Thanks so much for any assistance you can offer!
Aron