我想設置一個自定義操作來初始化我的SQLite數據庫使用sqlite3.exe命令行工具。在命令提示符下鍵入以下內容:c:\sqlite3.exe database.db < sqlscript.sql
如何重定向輸入爲customaction execommand
我的Wix自定義操作在ExeCommand屬性中分開,因爲我似乎無法脫出<。
<CustomAction Id="InitializeDatabase" FileKey="SQLiteEXE" ExeCommand="database.db < sqlscript.sql" Execute.../>
我試過「& lt」。
我知道我可以只安裝一個空的初始化數據庫,但我很好奇如何重定向輸入。
謝謝。
我已經讓CAQuiets運行得更糟了。 http://stackoverflow.com/questions/5045727/caquietexec-command-string-must-begin-with-quoted-application-name – John 2011-03-14 16:54:22