Re: Add default values to settings.ini plugin install
We have the user run a .vbs after install to change registry setting to trust the server and allow macros:
Set WshShell = WScript.CreateObject("WScript.Shell")
' It does not matter if this is run more than once as it will just overwrite existing values WshShell.RegWrite "HKCU\Software\QlikTech\QlikOcx\Settings for Qlikview Servers\", 1, "REG_SZ" WshShell.RegWrite "HKCU\Software\QlikTech\QlikOcx\Settings for Qlikview Servers\Module Script System\", 1, "REG_SZ" WshShell.RegWrite "HKCU\Software\QlikTech\QlikOcx\Settings for Qlikview Servers\Module Script System\YOURSERVERID", "", "REG_SZ"
Do you do that in a logon script? In version 10 Registry is not used for this (as far as I have tested), instead a settings.ini is used. C:\Users\<userxxxx>\AppData\Roaming\QlikTech\QlikView\settings.ini
Did you ever get a workable solution to this? According to QV Support there is no API for updating the settings files. I would rather not write custom code to manipulate settings files (there should really be an API), but it's looking like there might not be any other options. Interested to hear how you tackled this in the end.
Thanks - yes, that's what I'm thinking. Will perhaps take a look at using a generic library like nini to do the ini file updates.
It's a shame there isn't a QV API for updating the settings, or a mechanism for deploying default config via the core product set so that we're not tightly coupled to the QV code base (i.e. so that the next time QV decide to move the settings, we don't have to update anything on our side).