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!

BenKell
Posts: 11
Joined: Tue Aug 07, 2012 11:07 pm

Adding Files to Converted EXE Installer

Hey Guys -

Quick Question - I'm creating a new installer which is based from a "Convert from EXE" project. One key thing I need to do, though, is add & replace files after the EXE finishes. Below is what the installer needs to do and where I'm at currently:

What it Needs to Do
1. Run setup.exe /S
2. Copy key.file to program directory
3. Copy config.ini to program directory

What I've Done So Far
1. Started a new "Convert from EXE" project
2. Filled out wizard options including silent command lines
3. Currently, the wizard has finished and I have the project open

Will This Work?
In the project, I went to "Files / Folders" from the left side bar, added a folder which has the same name as the one the installer creates, and added the two files. What I don't know is if the 2 files will be placed first and overwritten by the installer or if they will be added after the EXE silently runs.

Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Adding Files to Converted EXE Installer

Hi,

If the main installer runs with Full UI, the EXE installer will be installed first and then your files will be installed and overwrite the existing files. If the main installer is installed with Basic UI or in silent mode, then your files will be installed first and the EXE installer will be installed later and it may overwrite your files (it depends if the files from the EXE installer are set to overwrite the existing files or not).

As a workaround, you can create another simple MSI which contains only the files that you want to overwrite and add that MSI as a prerequisite after the EXE installer. Also, you need to make sure that the files will be installed to the same path as the EXE installer does.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”