specific installations per customer - Advanced Installer Community

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!

IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

specific installations per customer

Hi,

We have a few customer sites where we do quite a lot of installations of our software. However there are some specific configurations that need to be put on each site and installed on the application folder on each workstation. I cannot therefore put these config files in MSI. I also dont want to create multiple MSI for each site.

Usually I configure a site and put the specific config files on a network share and copy down once I have installed the software on each machine. This is obviously time consuming if there are a lot of machines to install. I can use active directory to auto deploy the MSI but not the specifc files.

Is there a way to create a customised action that will copy these files to the application directory once the installation has taken place ?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: specific installations per customer

Hi,
Is there a way to create a customised action that will copy these files to the application directory once the installation has taken place ?
You can use "New File Operation-> File Copy/Move" option in "Files and Folders" page. Read more about this here:
http://www.advancedinstaller.com/user-g ... ialog.html

If this is not what you are looking for then please give me more details.

Kind Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
IFS-Dragon
Posts: 19
Joined: Thu Apr 17, 2008 11:26 am

Re: specific installations per customer

Hi Gigi,

thanks for your reply.

Using the file copy/move dialog is a very useful tool but I dont think it works in my situation unless I have misunderstood it.

the source folder will be a on a network share drive and as far I can see is not an option when you select the [...] button. Even if it was it will be different on each installation site.

So for example, say we have a component called site-specific.dll which has certain security information eg licencing etc ... that is specific to the customer and is require for the main software to work. The contents of this dll is therefore by definition unique for each of our customers.

Once the dll is set up (we have a separate program to do this), we want to store it on a network share. When we install our software onto a workstation we want to copy the site-specific.dll to the application folder automatically. When you build the msi you dont know what the source folder will be.

I trust the above is clear.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: specific installations per customer

Hi,

What you need can be done by using a property-based folder in the Files and Folders page:
- go to the Install Parameters page and create the property SOURCEDIR
- set it's value to "C:\" (it will be resolved at runtime to the folder which contains the MSI file)
- go to the "Files and Folders" page and create a property-based folder using the SOURCEDIR property
- go to the "Install Parameters" page and create a custom property ("MY_DIR") and set it to a valid path ("C:\")
- go to the "Files and Folders" page and create a property-based folder using the custom property
- in this folder create the File Copy/Move operation which will copy the config file
- in the "New File Copy/Move" dialog use these settings:

Source File
Name: site-specific.dll (you will replace this with your actual file)
Folder: SOURCEDIR (you can select it using the "..." button)
Destination File
Name: site-specific.dll
Folder: MY_DIR
Properties
Component: application.exe (you will choose from the combo box a component that is always installed)
Operation: Copy

- the path in the MY_DIR property can be set by using a custom action or a custom dialog (for example a Path Edit control which will be set by the user to the network drive)

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

Re: specific installations per customer

This does not work for me. I cannot get the file copy action to actually copy a file into my appdir.
How can I debug this?

Also, in the example above I do not see how the c:\ path is changed, nor do I understand how the file is copied twice, once to the property-based folder and once to the appdir.

thank you for any help!
AnneTheAgile
Posts: 61
Joined: Wed Jun 08, 2011 9:53 pm

Re: specific installations per customer

OK, I was very confused by the user interface, but I got something working!
Instructions (please reply if I did it right!)

Make a new install property with a null/empty value, eg SOURCEFOLDER.

Make a GUI combo box form with at least one choice, eg
name = LOCN1
value = C:\PathToSharedStuff\LOCN1\

Then set that GUI element's PROPERTY info: set the property name to refer to the install property created at first, ie SOURCEFOLDER. One must click either browse and/or "[" to get a pop up appropriately to see this choice.

Now so far that means the user's selection will populate our install property variable.

Then under files/folders, first add a property-based folder for that variable, ie
new folder / property-based / browse to SOURCEFOLDER, the property made above.
Do not worry, this folder remains 'empty' but its folder value is changed by the combo box. Thus its content files will be selectable.

Finally make sure to paste the proper file you wish. Under the files/folders, appdir node, add a new file operation. Set;
src = theFileThatWillExistInSourceFolder.filetype ; folder= property= SOURCEFOLDER
dest= yourChoiceOfOutputName.filetype ; folder= appdir
properties= component= yourEXE ; operation= copy

//edit; 10629Wed08:01:30; See also; http://www.advancedinstaller.com/forums ... 245#p44245
Last edited by AnneTheAgile on Wed Jun 29, 2011 1:01 pm, edited 1 time in total.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: specific installations per customer

Hello,

My colleague Cosmin underlined every step of the required settings. If you follow them accordingly everything should work fine.

Please let us know what step is unclear by quoting it and we will provide guidance from that point onward.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”