Zhorn Software
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Go down
avatar
drbenak
Posts : 3
Join date : 2020-04-16

Enable networking Empty Enable networking

on Mon Jun 29, 2020 5:19 pm
I am migrating from Sticky Notes to Stickies, I have created a script that can copy the contents of the Sticky Notes to Stickies.

I use Sticky.exe to send the content of the Sticky Note to Stickies, but the process needs networking enabled in stickies (I could not get it to work otherwise, even locally). I have a lot of users to convert and I am trying to avoid manual steps.

I there a way to enable Networking and set the port either during install, from the command line, or by editing a config file?

Thanks
Derek
avatar
Sooyke
Posts : 168
Join date : 2018-04-28

Enable networking Empty Re: Enable networking

on Tue Jun 30, 2020 1:48 pm
You said config file , are you using V9 ? Unfortunately in V10 the options are integrated in the database and the only way is to use sql commands to change them.
I took a quick look and it is rather messy when you have a clean default installation because keys seem to be only created when you manually enable options in the Settings dialog.

Enable networking Db11


An option would be to " KB00002 - Using Stickies as a portable application  "
https://www.zhornsoftware.co.uk/support/kb.pl?q=00002

and set the parameters for networking , then just copy the files to the client PC and create a startup shortcut .

V9 is easy the options.ini is a plain text file , a simple regexreplace would do the trick.

There is a contact page    https://www.zhornsoftware.co.uk/contact.html if you want to ask directly for advice .
Admin
Admin
Admin
Posts : 229
Join date : 2018-03-30
Location : London
http://www.zhornsoftware.co.uk

Enable networking Empty Re: Enable networking

on Wed Jul 01, 2020 8:16 pm
You could use the API.  There's a command "set option" which you'd combine with the above, to be something like:

set option network.enabled=1

However ... that option won't come into effect until you restart Stickies.  Again, you can get that done from the command line:

stickies.exe -close

That will contact the running instance and close it.

So, using api.exe could set the option, then close Stickies, then re-open it, and networking would be on.  That might be simpler than writing code to edit the stickies.db

However ... if you're migrating everyone to a new instance of Stickies, why not drop a pre-populated stickies.db into place for them.  You could set it up with the options you like, remove all content, and put it into place.  When Stickies first runs, it will read it and networking will be set on.

Finally, there's a GPO to switch networking on, but that might ott for what you're doing.

Does that help?

Tom
avatar
drbenak
Posts : 3
Join date : 2020-04-16

Enable networking Empty Re: Enable networking

on Wed Jul 01, 2020 9:07 pm
Thanks for your replies, I opted to just copy a pre-populated DB file
Sponsored content

Enable networking Empty Re: Enable networking

Back to top
Permissions in this forum:
You can reply to topics in this forum