Windows Installer conditions
I'm having a small issue here.
I've set up two conditional components. The command line will determine which .ini file is installed to C:\winnt\myinifile. So I've setup two folders in my wisesourcepath:
When I install the software with a commandline of, "inifile1", it's failing because it can't find ".\windows\inifile.ini (this wont exist because I'm not pulling the file from "windows\inifile.ini".
If the commandline contains inifile1 then it should pull the ini file from .\windows\1\myinifile and install to C:\winnt\myinifile.ini
If the commandline contains inifile2 then it should pull the ini file from .\windows\2\myinifile and install to c:\winnt\myinifile.ini.
I've done this before but it's not working now.
Component 1 is "myinifile1" with a condition of, "inifile="inifile1""
Component 2 is "myinifile2" with a condition of, "inifile="inifile2""
I'm going nuts. The contents of the 2 inifiles are different and need to be installed pending the commandline.
Community Chosen Answer
Essentially what you are trying to do is setup 2 files with the same name, installed fromdifferent Source directories. Most commonly used for drivers where you see x86 and x64 folders...
Most of this has to do with the directory table entries... Here is a site that greatly helped when I had to do something similar.
That being said... there could be an easier way. Since the files are INI, you can create your conditioned ini edits using that method instead. No issues with file sources, cause there isn't any.
Another way to do something similar would be to install both INI files to your INSTALLDIR, in different folders obviously... Then use conditioned components and the duplicatefiles table to copy one or the other to the proper location.