Qlik Community

QlikView Deployment

Discussion Board for collaboration related to QlikView Deployment.

jerrysvensson
Valued Contributor II

Add default values to settings.ini plugin install

Is it possible to add entries in settings.ini when doing a silent install?
The customer would like to use logon scripts to install plugin.
More than 100 users.

The most important issue is :
[Settings for QlikView Servers]
Module Script System\qvserver=

We have a macro that has to have system access.
It is a logging function that writes a database.

When the user opens that app he/she will see the macro security dialog.
That is not an option for them, because if you don't chose correct the logging will fail.

Labels (1)
9 Replies
Not applicable

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:

Dim WshShell

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"

WScript.Echo "(: Plugin Macros are now enabled Smiley Happy"

Regards,

Gordon

jerrysvensson
Valued Contributor II

Add default values to settings.ini plugin install

Ok.

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

Not applicable

Add default values to settings.ini plugin install

Hi Jerry,

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,

Graeme

jerrysvensson
Valued Contributor II

Add default values to settings.ini plugin install

We didn't find a solution.

The customer had to send a global email to all end users with instructions on how to handle the macrodialog.

Not applicable

Add default values to settings.ini plugin install

That's not really a practical solution for us, but thanks for the response.

jerrysvensson
Valued Contributor II

Add default values to settings.ini plugin install

The only solution I can see is a logon script that will add this key first in the settings.ini if not present.

C:\Users\<user>\AppData\Roaming\QlikTech\QlikView\settings.ini

[Settings for QlikView Servers]

Module Script System\<QVS>=

If you add it last and you have :

[Settings for QlikView Servers]

Module Safe System\<QVS>=

already in the ini file, the Safe entry will override System....

Not applicable

Add default values to settings.ini plugin install

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).

Thanks

danielrozental
Honored Contributor II

Add default values to settings.ini plugin install

I have created an "idea" http://community.qlik.com/ideas/2197/ideas/http://community.qlik.com/ideas/2197 on this, hopefully QT will take it into account for future versions...

Not applicable

Add default values to settings.ini plugin install

Beat me to it - thanks. Have voted on it.

Community Browser