use %appdata% with ZmCustomizeMsi.js option --zdb-folder

Ask your questions and get help with Zimbra's Outlook Connector.
Post Reply
g.wehrli
Posts: 2
Joined: Fri Sep 21, 2018 12:39 pm

use %appdata% with ZmCustomizeMsi.js option --zdb-folder

Post by g.wehrli »

we want customize the ZCO 8.8.9 unsigned msi installer with the customization script "ZmCustomizeMsi.js". With this script there is an option to set the default zdb location (--zdb-folder). Does someone know how to embed a relative path with windows environment variable into the installer? I was able to use this option with absolute paths like C:\Users\test\appdata\roaming\zimbra so far but I was not able to use a dynamic path like %appdata%\zimbra
I haven't found anything on this guide: https://files.zimbra.com/website/docs/8 ... _8.7.0.pdf
g.wehrli
Posts: 2
Joined: Fri Sep 21, 2018 12:39 pm

Re: use %appdata% with ZmCustomizeMsi.js option --zdb-folder

Post by g.wehrli »

Finally got it to run. My bad, I didn't use the right escape char. The Command now looks like this:

Code: Select all

 cscript ZmCustomizeMsi.js ZimbraConnectorOLK_8.8.9.1775_x86-UNSIGNED.msi --server-name <servername> --zdb-folder ^%appdata^%
Post Reply