Wix: Is there any wix command to create database user?

Is they any wix command I can use to create database and to also add a user to the database? If yes, is there any example on how to do this?


I would recommend you try the following:

  • Create your sql database using techniques mentioned here: Wix: create a sql server database at a specified location

  • Create a user via SQL: http://msdn.microsoft.com/en-us/library/ms173463.aspx

  • Run your sql via wix using: http://nicholas.piasecki.name/blog/2009/09/running-update-sql-scripts-during-minor-upgrades-with-wix/

  • Check out the SQL extension here.

    You'll need to add a reference to it in your installer project, an example of this can be found here.

    链接地址: http://www.djcxy.com/p/57190.html

    上一篇: shell脚本对编码和行尾是否敏感?

    下一篇: Wix:是否有任何wix命令来创建数据库用户?