Solved

Windows installer: how to replace a file in install package without recompile it?

Posted on 2013-11-29
5
499 Views
Last Modified: 2013-12-21
Dear experts,

I need to create a windows installation program based on Windows installer that allows me to change 2 files in installation WITHOUT recompile. Every one of my customers used a specific version of this file. So I need a fast way to compile installation once time, but to make 20 copies to 20 customers with their own specific files. And if it is possible, I prefer to hide this from customers /the file that is different to not be easy seen/

What is the name of this option? If you know InstallAware – how is done with it?
0
Comment
Question by:dvplayltd
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 3

Expert Comment

by:cyborgrd
ID: 39684813
Create a customer specific transforms. This transforms should include the 2 files. If you need to make changes on the msi, you must only recompile the msi and not the transforms.
0
 

Author Comment

by:dvplayltd
ID: 39684828
customer specific transforms - what is this? Could you give more info?
0
 
LVL 3

Expert Comment

by:cyborgrd
ID: 39684832
Transform is a MST File.
Read this

http://www.klaus-hartnegg.de/gpo/mst.html

I don't know which authoring tool you use to create MSI. I use Wise Package Studio. I can create TRANSFORMS on this way. Open the MSI, make the changes (Like File Property changes or file replacements) and Save as Transform (MST). That's all.
0
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 500 total points
ID: 39687622
The installation file consists, basically, of two parts. One is the database that describes the installation; another is usually a cabinet with the files inside.

There's usually one cabinet with all files packed inside, but can be also the combination of several cabs, as well as uncompressed files.

Here's a trivial sample installation that has two files, file1.txt and file2.txt. File1.txt is packed inside the installation, while file2 is external. That's how you can include your customer-specific file.

In Wise editor this is configured on the tab "Media", where we specify which file (more technically, which component) goes where by allocating the components with these files to the different media. Maybe Installaware has similar feature.

However, since you want the file not to be easily seen, the transform is probably a better way.
0
 

Author Closing Comment

by:dvplayltd
ID: 39733598
I have been using WIse, but as you know it is not supported anymore. For sorry InstallAware can't do it in this style .. or it can, but will NOT compress any file, so I should do an additinal step like to complie all with .rar ...
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with error in Query 2 39
Name Space error VS2015 1 37
C#.net split string and then check appropriate checkboxlist 4 44
Data organization issue 7 37
Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question