cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
AJungen
Level 6

I have a problem with multiple instance

Hello,

i am using Basic MSI Project, and try to install multiple instances of my installation,
but the Installation does not do anything.
Can somebody give me a hint please ?

added InstanceId in the Property table
also added some entries in the ISProductConfigurationInstance table:
ISProductConfiguration_1 1 ProductCode {12345678-1234-1234-1234-123456789001}
ISProductConfiguration_2 2 ProductCode {12345678-1234-1234-1234-123456789002}
ISProductConfiguration_3 1 ProductName Product name (2)
ISProductConfiguration_4 2 ProductName Product name (3)

i generated a compressed setup.exe with all files included,
and try to start the installation of Instance 1

setup.exe /V"MSINEWINSTANCE=1 TRANSFORMS=:InstanceId1.mst REINSTALL=ALL REINSTALLMODE=vamus /l* setup.log"

I got no Error while installing, except he does nothing ...
(All Dialogs were shown without error.)

some lines from the logfile:
Action start 13:18:35: RemoveFolders.
Action ended 13:18:35: RemoveFolders. Return value 1.
Action 13:18:35: CreateFolders. Creating folders
Action start 13:18:35: CreateFolders.
Action ended 13:18:35: CreateFolders. Return value 1.
Action 13:18:35: MoveFiles. Moving files
Action start 13:18:35: MoveFiles.
Action ended 13:18:35: MoveFiles. Return value 1.
Action 13:18:35: InstallFiles. Copying new files
Action start 13:18:35: InstallFiles.
InstallFiles: File: Copying new files, Directory: , Size:
Action ended 13:18:35: InstallFiles. Return value 1.
Action 13:18:35: PatchFiles. Patching files
Action start 13:18:35: PatchFiles.
Action ended 13:18:35: PatchFiles. Return value 1.

??? what happens ?
no icons were created, no files moved ...

Calling setup.exe without any parameter works, and he installs the product.
But when i try to install an instance it does not install anything.

any help would be wellcome.

Thx

Andreas
Labels (1)
0 Kudos
(5) Replies
hidenori
Level 17

The value of the ISProductConfiguration_ column has to be an actual product configuration specified in the ISProductConfiguration table so that instance transforms will be built into your msi pacakge. Please check your build log to see if you have messages stating "Building instance transform xxx...".
0 Kudos
AJungen
Level 6

Hello,

both instances are transformed
Building instance transform 1...
Building instance transform 2...

But i am missing the line where the components are processed
Action 12:34:56: ProcessComponents. Updating component registration

Is there any switch in the settings, wich i have to enable.
Or any table where i have to add the components to my Instances ?

I added the two log files, maybe they contain something wich helps

Andreas
0 Kudos
hidenori
Level 17

What if you remove the REINSTALL and REINSTALLMODE switches from the command line? Note that even if REINSTALL is set to ALL, only those features that were already installed previously are reinstalled. Thus, if REINSTALL is set for a product that is yet to be installed, no installation action will take place at all.
0 Kudos
AJungen
Level 6

Many thanks, the installation seems to work. 🙂

For the installation i use now:
setup.exe /V"MSINEWINSTANCE=2 TRANSFORMS=:InstanceId2.mst REINSTALLMODE=vamus"


and for update/repair/remove i use the following command line:

setup.exe /V"/n {12345678-1234-1234-1234-123456789002} TRANSFORMS=:InstanceId2.mst REINSTALLMODE=vamus"


Andreas
0 Kudos
Not applicable

As an aside:

logs created with /l* miss all the helpful information that would've allowed you to diagnose this issue I would expect.

You may want to try using /l*v instead to get a verbose installation log.

For patches, you can get more information using /l*vx for a debug installation log.
0 Kudos