msiexec /i mypackage.msi TRANSFORMS=instance.mst MSINEWINSTANCE=1
And It didn't work.
Could somebody help me please.
Thanks.
"Dan" <lora...@yahoo.com> wrote in message
news:9909aa96.05011...@posting.google.com...
"Dan" <lora...@yahoo.com> wrote in message
news:9909aa96.05011...@posting.google.com...
I have been using Visual C++ to circumvent this before, but now MSI is
a requirement. I'm using WfWI6.0, and have created Transforms as
discussed above. So, in WfWI I create Instance Transforms (.mst) and
execute them as said above, namely
msiexec /i mypackage.msi TRANSFORMS=instance.mst MSINEWINSTANCE=1
But I had to create this physically. I cannot live with this option.
There should be a way to create Instance Transforms dynamically and
apply them.
Questions,
(1) Big Question - HOW DO I DO IT ?
(2) How can I fix the Add/Remove item to reflect the SQL Server
instance for which the application was installed?
for example: (Add/remove items would be)
XXX YYY (SQL Server Instance 1)
XXX YYY (SQL Server Instance 2)
XXX YYY (SQL Server Instance 3)
If however, you are installing multiple instances using multiple packages, then
Phil is correct. You'll need to change the package code as well.
- Carolyn Napier
Microsoft Windows Installer Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>
"Phil Wilson" <pdjw...@nospam.cox.net> wrote in message
news:euYzCh1%23EHA...@TK2MSFTNGP15.phx.gbl...
Creating an instance transform is fairly simple. Start with the original
package MSI file and then make a copy of it. Open the copy up in your favorite
editor (i.e. Orca) and then change the ProductCode and the ProductName. The
InstanceId is not a real property. It's whatever you're using in your registry
key/folders to isolate the instances. Of course, for all non-file data the
components should have different GUIDs (per the component rules). Save the copy.
The MSINEWINSTANCE property should not be set in the transform. The property is
set on the command line.
Then create a transform between the two: msitran -g original.msi copy.msi
instance1.mst
You can then install both instances:
msiexec /i package.msi /qb
msiexec /i package.msi TRANSFORMS=instance1.mst MSINEWINSTANCE=1 /qb
If you're having issues with the scenario, in particular with the instance
transform command line, then generate a verbose log file. If you're having
trouble figuring out what's wrong from the log file, then provide the details to
the newsgroup...
Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>
<lora...@yahoo.com> wrote in message
news:1106074612.9...@z14g2000cwz.googlegroups.com...
As for installation, the MSI API has programmatic access for that as well via
MsiInstallProduct and the documentation on multiple instance w/ instance
transforms gives an example.
(2) The display name in ARP comes from the ProductName property in the Property
table. You could always use a type 51 custom action to set the ProductName
property to a formatted value specification (XXX YYY [SQLINSTANCE]) where you
specify either on the command line or some other method the value of the
SQLINSTANCE property prior to the type 51 custom action execution.
Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.
MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>
"Ashmann" <a2p...@hotmail.com> wrote in message
news:1106255316.9...@z14g2000cwz.googlegroups.com...