Re: [WiX-users] Command line installation?
I have WiX code like: Property Id=PREVIOUSVERSIONSINSTALLED Secure=yes / Upgrade Id='529189FE-FD0E-44ff-8DA6-B4FB5CC7A78B' UpgradeVersion Minimum=2.0.0.0 Maximum=2.0.5.0 Property=PREVIOUSVERSIONSINSTALLED IncludeMinimum=yes IncludeMaximum=no / /Upgrade . . . . . InstallExecuteSequence RemoveExistingProducts After=InstallFinalize/RemoveExistingProducts /InstallExecuteSequence I am trying to automatically uninstall any previous versions of the package before this installation proceeds. But even with this code when I run the .msi I get a prompt indicating that I must go to the Control Panel and uninstall a previous version. What am I doing wrong? Kevin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Command line installation?
In another area of your code look for the Product/ element and make sure you change the Id= guid there as one necessary step. But, leave the UpgradeCode unchanged in that same element. Also make sure you increment your version number to something higher than that one you have already installed. Then in your UpgradeVersion element that you show below don't forget to add OnlyDetect=no This is what causes it to not just check for your other version, but also remove it. Hope that helps Chad -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Thursday, February 24, 2011 3:21 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Command line installation? I have WiX code like: Property Id=PREVIOUSVERSIONSINSTALLED Secure=yes / Upgrade Id='529189FE-FD0E-44ff-8DA6-B4FB5CC7A78B' UpgradeVersion Minimum=2.0.0.0 Maximum=2.0.5.0 Property=PREVIOUSVERSIONSINSTALLED IncludeMinimum=yes IncludeMaximum=no / /Upgrade . . . . . InstallExecuteSequence RemoveExistingProducts After=InstallFinalize/RemoveExistingProducts /InstallExecuteSequence I am trying to automatically uninstall any previous versions of the package before this installation proceeds. But even with this code when I run the .msi I get a prompt indicating that I must go to the Control Panel and uninstall a previous version. What am I doing wrong? Kevin -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Free Software Download: Index, Search Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Command line installation?
I can offer some help. For the command line you append your PROPERTYNAME followed by an equal sign and then the value you want to assign to that property. Like this. msiexec /L*v c:\log.txt /i my.msi PROPERTYNAME1=value1 PROPERTYNAME2=value2 In my experience it seemed like if you gave it all required properties that correspond to your UI then it breezes through without a hitch. But, if you forget a property it either starts popping up dialog boxes for you to fill in or some other behavior, I can't remember which. I'm not sure if you only give it one or two properties that it's going to know what to do for the remainder. A command line that works for my installer is 623 characters long, but it can install in a test environment where all properties are known quantities without any dialogs showing. Really helps with automation. -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Wednesday, February 23, 2011 7:08 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Command line installation? I would like to know what strategies are best to use if I optionally don't want a UI. Right now I have a custom dialog that appears and it sets a number of properties. If any of these properties are set on the command line I would like to skip the dialog. That is one question. The second question is how do I set the properties on the command line? If it helps the dialog is defined as ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Property Id=FULLYQUALIFIEDCOMPUTERNAME Hidden=yesdevbrain03/Property Property Id=SERVICEUSER Hidden=yesuser/Property Property Id=SERVICEPASSWORD Hidden=yestesting/Property Property Id=SQLSERVER Hidden=yescomputer/Property Property Id=TRANSACTIONSSQLSERVER Hidden=yescomputer/Property Property Id=REPLICATEDTRANSACTIONSERVER Hidden=yescomputer/Property Property Id=INVENTORYSERVER Hidden=yescomputer/Property Property Id=SHIPPINGSERVER Hidden=yescomputer/Property Property Id=COMMERCESERVERSITENAME Hidden=yessite/Property Property Id=SMTPSERVERNAME Hidden=yesmail.company.com/Property Property Id=LYRISSQLSERVER Hidden=yesserver/Property Property Id=LYRISUSER Hidden=yesuser/Property Property Id=LYRISPASSWORD Hidden=yestesting/Property Property Id=CYBERSOURCEURL Hidden=yeshttps://myco.ic3.com/ /Property Dialog Id=PropertiesDlg Width=290 Height=390 Title=[ProductName] [ProductVersion] $(var.Configuration) NoMinimize=yes Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text=Ready to Install / Control Id=ComputerNameLabel Type=Text X=15 Y=26 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Computer Name / Control Id=ComputerNameEdit Type=Edit X=114 Y=22 Width=150 Height=18 Property=FULLYQUALIFIEDCOMPUTERNAME / Control Id=UserLabel Type=Text X=15 Y=46 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=User / Control Id=UserEdit Type=Edit X=114 Y=42 Width=150 Height=18 Property=SERVICEUSER / Control Id=PasswordLabel Type=Text X=15 Y=66 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Password / Control Id=PasswordEdit Type=Edit X=114 Y=62 Width=150 Height=18 Property=SERVICEPASSWORD Password=yes / Control Id=SqlServerLabel Type=Text X=15 Y=86 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=BuySeasons Sql Server / Control Id=SqlServerEdit Type=Edit X=114 Y=82 Width=150 Height=18 Property=SQLSERVER / Control Id=TransactionsSqlServerLabel Type=Text X=15 Y=106 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Transactions Sql Server / Control Id=TransactionsSqlServerEdit Type=Edit X=114 Y=102 Width=150 Height=18 Property=TRANSACTIONSSQLSERVER / Control Id=ShippingSqlServerLabel Type=Text X=15 Y=126 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Shipping Sql Server / Control Id=ShippingSqlServerEdit Type=Edit X=114 Y=122 Width=150 Height=18 Property=SHIPPINGSERVER / Control Id=ReplicatedTransactionsSqlServerLabel Type=Text X=15 Y=146 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Replicated Sql Server / Control Id=ReplicatedTransactionsSqlServerEdit Type=Edit X=114 Y=142 Width=150 Height=18 Property=REPLICATEDTRANSACTIONSERVER / Control Id=InventoryServerLabel Type=Text X=15 Y=166 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Inventory Server / Control Id=InventoryServerEdit Type=Edit X=114 Y=162 Width=150 Height=18 Property=INVENTORYSERVER / Control Id=LyrisDatabaseSqlServerLabel Type=Text X=15 Y=186 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Lyris Sql Server / Control Id=LyrisDatabaseSqlServerEdit Type=Edit X=114 Y=182 Width=150 Height=18 Property=LYRISSQLSERVER / Control Id=LyrisDatabaseUserLabel Type=Text X=15 Y=206 Width=100 Height=15 Transparent=yes
Re: [WiX-users] Command line installation?
Hi, To set a property from the command line you simply just set the property to be equal to the required value. e.g. Msiexec /i installer.msi FULLYQUALIFIEDCOMPUTERNAME=Kevinspc.buyseasons.com SERVICEUSER=bob etc. Remember to make all your properties public my making them all CAPS to and you may need to set them to be secure, set any password properties to hidden to remove them from logs. You should be able to condition the display of your dialogue based on the properties that you have stated but it is also possible to run the msi without any ui at all by altering the command line with /qn. dave -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: 23 February 2011 15:08 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Command line installation? I would like to know what strategies are best to use if I optionally don't want a UI. Right now I have a custom dialog that appears and it sets a number of properties. If any of these properties are set on the command line I would like to skip the dialog. That is one question. The second question is how do I set the properties on the command line? If it helps the dialog is defined as ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Property Id=FULLYQUALIFIEDCOMPUTERNAME Hidden=yesdevbrain03/Property Property Id=SERVICEUSER Hidden=yesuser/Property Property Id=SERVICEPASSWORD Hidden=yestesting/Property Property Id=SQLSERVER Hidden=yescomputer/Property Property Id=TRANSACTIONSSQLSERVER Hidden=yescomputer/Property Property Id=REPLICATEDTRANSACTIONSERVER Hidden=yescomputer/Property Property Id=INVENTORYSERVER Hidden=yescomputer/Property Property Id=SHIPPINGSERVER Hidden=yescomputer/Property Property Id=COMMERCESERVERSITENAME Hidden=yessite/Property Property Id=SMTPSERVERNAME Hidden=yesmail.company.com/Property Property Id=LYRISSQLSERVER Hidden=yesserver/Property Property Id=LYRISUSER Hidden=yesuser/Property Property Id=LYRISPASSWORD Hidden=yestesting/Property Property Id=CYBERSOURCEURL Hidden=yeshttps://myco.ic3.com/ /Property Dialog Id=PropertiesDlg Width=290 Height=390 Title=[ProductName] [ProductVersion] $(var.Configuration) NoMinimize=yes Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text=Ready to Install / Control Id=ComputerNameLabel Type=Text X=15 Y=26 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Computer Name / Control Id=ComputerNameEdit Type=Edit X=114 Y=22 Width=150 Height=18 Property=FULLYQUALIFIEDCOMPUTERNAME / Control Id=UserLabel Type=Text X=15 Y=46 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=User / Control Id=UserEdit Type=Edit X=114 Y=42 Width=150 Height=18 Property=SERVICEUSER / Control Id=PasswordLabel Type=Text X=15 Y=66 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Password / Control Id=PasswordEdit Type=Edit X=114 Y=62 Width=150 Height=18 Property=SERVICEPASSWORD Password=yes / Control Id=SqlServerLabel Type=Text X=15 Y=86 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=BuySeasons Sql Server / Control Id=SqlServerEdit Type=Edit X=114 Y=82 Width=150 Height=18 Property=SQLSERVER / Control Id=TransactionsSqlServerLabel Type=Text X=15 Y=106 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Transactions Sql Server / Control Id=TransactionsSqlServerEdit Type=Edit X=114 Y=102 Width=150 Height=18 Property=TRANSACTIONSSQLSERVER / Control Id=ShippingSqlServerLabel Type=Text X=15 Y=126 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Shipping Sql Server / Control Id=ShippingSqlServerEdit Type=Edit X=114 Y=122 Width=150 Height=18 Property=SHIPPINGSERVER / Control Id=ReplicatedTransactionsSqlServerLabel Type=Text X=15 Y=146 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Replicated Sql Server / Control Id=ReplicatedTransactionsSqlServerEdit Type=Edit X=114 Y=142 Width=150 Height=18 Property=REPLICATEDTRANSACTIONSERVER / Control Id=InventoryServerLabel Type=Text X=15 Y=166 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Inventory Server / Control Id=InventoryServerEdit Type=Edit X=114 Y=162 Width=150 Height=18 Property=INVENTORYSERVER / Control Id=LyrisDatabaseSqlServerLabel Type=Text X=15 Y=186 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Lyris Sql Server / Control Id=LyrisDatabaseSqlServerEdit Type=Edit X=114 Y=182 Width=150 Height=18 Property=LYRISSQLSERVER / Control Id=LyrisDatabaseUserLabel Type=Text X=15 Y=206 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Lyris User Name / Control Id=LyrisDatabaseUserEdit Type=Edit X=114 Y=202 Width=150 Height=18 Property=LYRISUSER / Control Id=LyrisDatabasePasswordLabel Type=Text X=15 Y=226 Width=100 Height=15 Transparent=yes
Re: [WiX-users] Command line installation?
Thanks for the tip. -qn will probably solve the problem. What would be the syntax of condition? Kevin Burton Senior Software Engineer BUYSEASONS 262-901-2000 Office 262-901-2312 Fax kev...@buyseasons.com -Original Message- From: David Watson [mailto:dwat...@sdl.com] Sent: Wednesday, February 23, 2011 11:28 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Command line installation? Hi, To set a property from the command line you simply just set the property to be equal to the required value. e.g. Msiexec /i installer.msi FULLYQUALIFIEDCOMPUTERNAME=Kevinspc.buyseasons.com SERVICEUSER=bob etc. Remember to make all your properties public my making them all CAPS to and you may need to set them to be secure, set any password properties to hidden to remove them from logs. You should be able to condition the display of your dialogue based on the properties that you have stated but it is also possible to run the msi without any ui at all by altering the command line with /qn. dave -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: 23 February 2011 15:08 To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Command line installation? I would like to know what strategies are best to use if I optionally don't want a UI. Right now I have a custom dialog that appears and it sets a number of properties. If any of these properties are set on the command line I would like to skip the dialog. That is one question. The second question is how do I set the properties on the command line? If it helps the dialog is defined as ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Property Id=FULLYQUALIFIEDCOMPUTERNAME Hidden=yesdevbrain03/Property Property Id=SERVICEUSER Hidden=yesuser/Property Property Id=SERVICEPASSWORD Hidden=yestesting/Property Property Id=SQLSERVER Hidden=yescomputer/Property Property Id=TRANSACTIONSSQLSERVER Hidden=yescomputer/Property Property Id=REPLICATEDTRANSACTIONSERVER Hidden=yescomputer/Property Property Id=INVENTORYSERVER Hidden=yescomputer/Property Property Id=SHIPPINGSERVER Hidden=yescomputer/Property Property Id=COMMERCESERVERSITENAME Hidden=yessite/Property Property Id=SMTPSERVERNAME Hidden=yesmail.company.com/Property Property Id=LYRISSQLSERVER Hidden=yesserver/Property Property Id=LYRISUSER Hidden=yesuser/Property Property Id=LYRISPASSWORD Hidden=yestesting/Property Property Id=CYBERSOURCEURL Hidden=yeshttps://myco.ic3.com/ /Property Dialog Id=PropertiesDlg Width=290 Height=390 Title=[ProductName] [ProductVersion] $(var.Configuration) NoMinimize=yes Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text=Ready to Install / Control Id=ComputerNameLabel Type=Text X=15 Y=26 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Computer Name / Control Id=ComputerNameEdit Type=Edit X=114 Y=22 Width=150 Height=18 Property=FULLYQUALIFIEDCOMPUTERNAME / Control Id=UserLabel Type=Text X=15 Y=46 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=User / Control Id=UserEdit Type=Edit X=114 Y=42 Width=150 Height=18 Property=SERVICEUSER / Control Id=PasswordLabel Type=Text X=15 Y=66 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Password / Control Id=PasswordEdit Type=Edit X=114 Y=62 Width=150 Height=18 Property=SERVICEPASSWORD Password=yes / Control Id=SqlServerLabel Type=Text X=15 Y=86 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=BuySeasons Sql Server / Control Id=SqlServerEdit Type=Edit X=114 Y=82 Width=150 Height=18 Property=SQLSERVER / Control Id=TransactionsSqlServerLabel Type=Text X=15 Y=106 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Transactions Sql Server / Control Id=TransactionsSqlServerEdit Type=Edit X=114 Y=102 Width=150 Height=18 Property=TRANSACTIONSSQLSERVER / Control Id=ShippingSqlServerLabel Type=Text X=15 Y=126 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Shipping Sql Server / Control Id=ShippingSqlServerEdit Type=Edit X=114 Y=122 Width=150 Height=18 Property=SHIPPINGSERVER / Control Id=ReplicatedTransactionsSqlServerLabel Type=Text X=15 Y=146 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Replicated Sql Server / Control Id=ReplicatedTransactionsSqlServerEdit Type=Edit X=114 Y=142 Width=150 Height=18 Property=REPLICATEDTRANSACTIONSERVER / Control Id=InventoryServerLabel Type=Text X=15 Y=166 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Inventory Server / Control Id=InventoryServerEdit Type=Edit X=114 Y=162 Width=150 Height=18 Property=INVENTORYSERVER / Control Id=LyrisDatabaseSqlServerLabel Type=Text X=15 Y=186 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Lyris Sql Server
Re: [WiX-users] Command line installation?
Since I have set default properties I just need to test BEFORE I set the default to make sure some key required properties are set and if any of these are set then I could safely avoid the dialog UI and take the defaults for the rest. How do I test for the existence of a property and disable the dialog if true? Kevin Burton Senior Software Engineer BUYSEASONS 262-901-2000 Office 262-901-2312 Fax kev...@buyseasons.com -Original Message- From: Chad Petersen [mailto:chad.peter...@harlandfs.com] Sent: Wednesday, February 23, 2011 11:01 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Command line installation? I can offer some help. For the command line you append your PROPERTYNAME followed by an equal sign and then the value you want to assign to that property. Like this. msiexec /L*v c:\log.txt /i my.msi PROPERTYNAME1=value1 PROPERTYNAME2=value2 In my experience it seemed like if you gave it all required properties that correspond to your UI then it breezes through without a hitch. But, if you forget a property it either starts popping up dialog boxes for you to fill in or some other behavior, I can't remember which. I'm not sure if you only give it one or two properties that it's going to know what to do for the remainder. A command line that works for my installer is 623 characters long, but it can install in a test environment where all properties are known quantities without any dialogs showing. Really helps with automation. -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Wednesday, February 23, 2011 7:08 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Command line installation? I would like to know what strategies are best to use if I optionally don't want a UI. Right now I have a custom dialog that appears and it sets a number of properties. If any of these properties are set on the command line I would like to skip the dialog. That is one question. The second question is how do I set the properties on the command line? If it helps the dialog is defined as ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Property Id=FULLYQUALIFIEDCOMPUTERNAME Hidden=yesdevbrain03/Property Property Id=SERVICEUSER Hidden=yesuser/Property Property Id=SERVICEPASSWORD Hidden=yestesting/Property Property Id=SQLSERVER Hidden=yescomputer/Property Property Id=TRANSACTIONSSQLSERVER Hidden=yescomputer/Property Property Id=REPLICATEDTRANSACTIONSERVER Hidden=yescomputer/Property Property Id=INVENTORYSERVER Hidden=yescomputer/Property Property Id=SHIPPINGSERVER Hidden=yescomputer/Property Property Id=COMMERCESERVERSITENAME Hidden=yessite/Property Property Id=SMTPSERVERNAME Hidden=yesmail.company.com/Property Property Id=LYRISSQLSERVER Hidden=yesserver/Property Property Id=LYRISUSER Hidden=yesuser/Property Property Id=LYRISPASSWORD Hidden=yestesting/Property Property Id=CYBERSOURCEURL Hidden=yeshttps://myco.ic3.com/ /Property Dialog Id=PropertiesDlg Width=290 Height=390 Title=[ProductName] [ProductVersion] $(var.Configuration) NoMinimize=yes Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text=Ready to Install / Control Id=ComputerNameLabel Type=Text X=15 Y=26 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Computer Name / Control Id=ComputerNameEdit Type=Edit X=114 Y=22 Width=150 Height=18 Property=FULLYQUALIFIEDCOMPUTERNAME / Control Id=UserLabel Type=Text X=15 Y=46 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=User / Control Id=UserEdit Type=Edit X=114 Y=42 Width=150 Height=18 Property=SERVICEUSER / Control Id=PasswordLabel Type=Text X=15 Y=66 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Password / Control Id=PasswordEdit Type=Edit X=114 Y=62 Width=150 Height=18 Property=SERVICEPASSWORD Password=yes / Control Id=SqlServerLabel Type=Text X=15 Y=86 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=BuySeasons Sql Server / Control Id=SqlServerEdit Type=Edit X=114 Y=82 Width=150 Height=18 Property=SQLSERVER / Control Id=TransactionsSqlServerLabel Type=Text X=15 Y=106 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Transactions Sql Server / Control Id=TransactionsSqlServerEdit Type=Edit X=114 Y=102 Width=150 Height=18 Property=TRANSACTIONSSQLSERVER / Control Id=ShippingSqlServerLabel Type=Text X=15 Y=126 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Shipping Sql Server / Control Id=ShippingSqlServerEdit Type=Edit X=114 Y=122 Width=150 Height=18 Property=SHIPPINGSERVER / Control Id=ReplicatedTransactionsSqlServerLabel Type=Text X=15 Y=146 Width=100 Height=15 Transparent=yes NoPrefix=yes Text=Replicated Sql Server / Control Id
Re: [WiX-users] Command line installation?
Sure. In the previous dialog you can usually put Conditions on the Next pushbutton to display any other dialog based upon the Condition set by the Property Publish Event=NewDialog Value=CustomCompleteDialog![CDATA[Not Installed AND ISVALIDLOGON = true AND (VERSION = ENTREBUILDNUM OR OVERRIDE = true) AND SQLVERSION = 9]]/Publish Publish Event=NewDialog Value=SelectionDialog![CDATA[MaintenanceMode = AddRemove AND ISVALIDLOGON = true AND SQLVERSION = 9]]/Publish Publish Event=NewDialog Value=Reinstall![CDATA[MaintenanceMode = Reinstall AND ISVALIDLOGON = true AND SQLVERSION = 9]]/Publish Something like that is one approach, at least. -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Wednesday, February 23, 2011 11:02 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Command line installation? Since I have set default properties I just need to test BEFORE I set the default to make sure some key required properties are set and if any of these are set then I could safely avoid the dialog UI and take the defaults for the rest. How do I test for the existence of a property and disable the dialog if true? Kevin Burton Senior Software Engineer BUYSEASONS 262-901-2000 Office 262-901-2312 Fax kev...@buyseasons.com -Original Message- From: Chad Petersen [mailto:chad.peter...@harlandfs.com] Sent: Wednesday, February 23, 2011 11:01 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Command line installation? I can offer some help. For the command line you append your PROPERTYNAME followed by an equal sign and then the value you want to assign to that property. Like this. msiexec /L*v c:\log.txt /i my.msi PROPERTYNAME1=value1 PROPERTYNAME2=value2 In my experience it seemed like if you gave it all required properties that correspond to your UI then it breezes through without a hitch. But, if you forget a property it either starts popping up dialog boxes for you to fill in or some other behavior, I can't remember which. I'm not sure if you only give it one or two properties that it's going to know what to do for the remainder. A command line that works for my installer is 623 characters long, but it can install in a test environment where all properties are known quantities without any dialogs showing. Really helps with automation. -Original Message- From: Kevin Burton [mailto:kev...@buyseasons.com] Sent: Wednesday, February 23, 2011 7:08 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Command line installation? I would like to know what strategies are best to use if I optionally don't want a UI. Right now I have a custom dialog that appears and it sets a number of properties. If any of these properties are set on the command line I would like to skip the dialog. That is one question. The second question is how do I set the properties on the command line? If it helps the dialog is defined as ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Property Id=FULLYQUALIFIEDCOMPUTERNAME Hidden=yesdevbrain03/Property Property Id=SERVICEUSER Hidden=yesuser/Property Property Id=SERVICEPASSWORD Hidden=yestesting/Property Property Id=SQLSERVER Hidden=yescomputer/Property Property Id=TRANSACTIONSSQLSERVER Hidden=yescomputer/Property Property Id=REPLICATEDTRANSACTIONSERVER Hidden=yescomputer/Property Property Id=INVENTORYSERVER Hidden=yescomputer/Property Property Id=SHIPPINGSERVER Hidden=yescomputer/Property Property Id=COMMERCESERVERSITENAME Hidden=yessite/Property Property Id=SMTPSERVERNAME Hidden=yesmail.company.com/Property Property Id=LYRISSQLSERVER Hidden=yesserver/Property Property Id=LYRISUSER Hidden=yesuser/Property Property Id=LYRISPASSWORD Hidden=yestesting/Property Property Id=CYBERSOURCEURL Hidden=yeshttps://myco.ic3.com/ /Property Dialog Id=PropertiesDlg Width=290 Height=390 Title=[ProductName] [ProductVersion] $(var.Configuration) NoMinimize=yes Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text=Ready to Install / Control Id=ComputerNameLabel Type=Text X=15 Y=26 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Computer Name / Control Id=ComputerNameEdit Type=Edit X=114 Y=22 Width=150 Height=18 Property=FULLYQUALIFIEDCOMPUTERNAME / Control Id=UserLabel Type=Text X=15 Y=46 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=User / Control Id=UserEdit Type=Edit X=114 Y=42 Width=150 Height=18 Property=SERVICEUSER / Control Id=PasswordLabel Type=Text X=15 Y=66 Width=80 Height=15 Transparent=yes NoPrefix=yes Text=Password / Control Id=PasswordEdit Type=Edit X=114 Y=62 Width=150 Height=18 Property=SERVICEPASSWORD Password=yes / Control Id=SqlServerLabel Type=Text X=15 Y=86 Width=100 Height=15 Transparent=yes