mav, I have another question regarding passing in Property values from the command line. The dialog has two properties. One is normally blank and the method you describe works perfectly to set it from the command line during a silent install. The second property has a default value that one might wish to set to a non-default value from the command line during a silent install. Now, it seems that one must somehow use the MsiSetProperty method in a custom action that checks to see if the passed in value of the property is a null string, and if so, sets it to the default value. It also seems that one would have to write a custom dll to do this, and link it properly in the custom actions editor in the deployment project. Is this the correct way to accomplish this or is there something simpler?
StormShearon
Posts
-
Passing command line options to msi installer created as .NET deployment project -
Passing command line options to msi installer created as .NET deployment projectmav, Thanks a bunch. The missing piece of the puzzle (which I found nowhere in the docs I read) is this: 'Then set Edit1Property to TEST1 and Edit1Value to [TEST1]' A most critical bit of information and much appreciated!
-
Passing command line options to msi installer created as .NET deployment projectmav, Thanks a bunch. The missing piece of the puzzle (which I found nowhere in the docs I read) is this: 'Then set Edit1Property to TEST1 and Edit1Value to [TEST1]' A most critical bit of information and much appreciated!
-
Passing command line options to msi installer created as .NET deployment projectmav, I have found the particular documentation you have referenced, and have spent several hours reading it and trying the above syntax. However, it appears that there is no way to link the properties on the UI dialogs and the Property table in the msi database. I have used Orca to look at the database and none of the properties from the UI dialogs are present except for one entry for the each of the edit controls (EDITB1 through EDITB4). Each of these entries are global (all upper case), but do not seem to be connected to anything that actually displays on the UI. They all have a value of 1, but changing that using the above syntax does not do anything - at least that I can determine. I know the syntax works, because I can set things like TARGETDIR and see the change in the dialog when it is displayed.
-
Passing command line options to msi installer created as .NET deployment projectI could not find any specifc info on the site for the issue I am trying to solve, so I hope someone here has some ideas. I am working with some code created to run test suites and setup scripts. One part of the system installs an agent onto a client PC. I need to find a way to pass command line options to the msi installer UI so that the installation can be run silently. MSI installers have the necessary options to run silently, but so far I have not found a way to pass options from the command line to the UI so that several dialog boxes can be filled without having to get input from a user. Has anyone here run into this and managed to come up with a solution?