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!

SteveW
Posts: 6
Joined: Mon Nov 04, 2013 3:58 pm

Building an installer that copies files and runs an exe

Hi all

I'm new to this deployment game and have a specific requirement that I think Advanced Installer may be able to help me with, but I'm not sure how to go about getting it set up right!

Hopefully I'll explain this well enough for you to understand what I am trying to do.

I have a very old piece of software that is just a couple of folders and an exe that requires no actual installation (it's a temperature logger that we use in my business). We've recently upgraded everything to Windows 7 and we have pretty much automated everything now with regards to installing software, using deployment via Group Policies.

What I need to do now is to create a package that will basically copy the folders onto the target PC and create a shortcut to the exe, but on top of that I need to run another exe that I have that will install the driver for the USB to Serial adaptor that connects the logger to the PC. Ideally I'd like to do this with one package and have it fully unatended too.

Can anyone give me any pointers as to the best way to achieve this?

Thanks

Steve
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Building an installer that copies files and runs an exe

Hello Steve and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.
What I need to do now is to create a package that will basically copy the folders onto the target PC
In order to achieve that you can go in the Files and Folders page and use the [ Add Folder ] toolbar button to select the folder where your application is. You can also take a look on the add files article which may be useful.
create a shortcut to the exe
In order to create a shortcut to the related .EXE, you can select it and then click on the [ New Shortcut ] toolbar button. The “New Shortcut” dialog will appear, allowing you to customize the new shortcut.
I need to run another exe that I have that will install the driver for the USB to Serial adaptor that connects the logger to the PC.
In order to achieve that you can go in the Prerequisite page and use the [ New Package Prerequisite ] toolbar button to select your .EXE. You can also take a look on the Add Prerequisites article which may be useful to you.
Also, you can launch the related .EXE through a custom action. In order to achieve that you can go in the “Custom Actions” page and add a predefined Launch attached file custom action with sequence. This type of custom action can execute an application (EXE or DLL) or run a script (VBScript or Java script). Also, the source file will be embedded in the MSI file but will not be deployed at install time with the other application files.

If you need any help, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”