How to make Standalone Desktop Widget start on windows startup

Hi,

I've developed a stand-alone widget. I need it to always startup when windows starts.

I've seen that in the widget preferences there is the "Run automatically when Windows starts", but the user needs to click this option to activate it. Is there a way to make this option on by default when creating or exporting a widget?

Thanks

Mark

8,319 views 9 replies
Reply #1 Top

You would need an installer for that

Reply #2 Top

Widget.Autorun (See DevGuide -- HERE)

Sub Object_OnScriptEnter
 widget.autorun = True
End Sub

Once the user loads the app, it will be permanently set to run on startup (even if they uncheck it in properties.)

If you want to have an option to turn it off, I'd recommend a custom r-click menu. Here's a sample r-click replacement widget by RomanDA -- LINK   And the tutorial -- LINK   And here's the less complicated r-click menu tutorial -- LINK

Reply #3 Top

But you still have to run it once.

Reply #4 Top

Thanks for the info sViz.

I think Zubaz is right about my needing a custom installer.

The project this is all part of involves installing applications on a user's PC. This is done through a windows service that downloads applications from a web service. The applications are installed silently.

Currently I download and run widget executable through the windows service. I've hit a snag in that the windows service runs under LOCAL SYSTEM so as the logged in user you don't get to see the widget. So I think I'll have to create an installer to put a shortcut to my widget in the All Users Startup Folder.

 

I also have another question about Object Bar which may not be appropriate to ask here.

Is it possible to install the ObjectBar runtime silently without having to enter the licence key?

Originally my widget ran in the ObjectBar. I exported my ObjectBar theme with the widget as an exe, butyou have install the ObjectBar runtime on each target PC. The installation requires a licence key to be entered.. so it wont' silently install.

We're not going with ObjectBar, but I have to explain why and I just want to make sure my reason is valid, ie. it requires a registered version of ObjectBar to be installed on each destination PC and the installation cannot be silent because the licence key has to be entered.

Thanks

Mark

Reply #5 Top

I think Zubaz is right about my needing a custom installer.
End of quote

Just buy DesktopX Professional to save your widgets as a stand-alone gadgets...

it requires a registered version of ObjectBar to be installed on each destination PC and the installation cannot be silent because the licence key has to be entered.
End of quote

Hmmm... Do you want ask us on how to hack ObjectBar?  #:(  Seems you must go to some another site in this case... :waaaa:

The installation requires a licence key to be entered.. so it wont' silently install.
End of quote

Yes. Because you must pay for each license! Or contact to Stardock Sales (mailto) for multicomputer (or corporate) license...  

Reply #6 Top

Just buy DesktopX Professional to save your widgets as a stand-alone gadgets...

Yes, already got a registered copy. I've changed my widget from being in the ObjectBar to being a standalone widget.

My client found ObjectBar and DesktopX and thought it would be good to use.

 

Hmmm... Do you want ask us on how to hack ObjectBar?

No. My client wants to silently install applications from a server onto potentially hundreds of PCs. So even if they get an ObjectBar multicomputer/corporate licence, someone will still need go to each PC and manually install and enter the licence key???.

I just want to be sure before I tell the client silent installs of ObjectBar cannot done.

Reply #7 Top

My client wants to silently install applications from a server onto potentially hundreds of PCs.
End of quote

I just want to be sure before I tell the client silent installs of ObjectBar cannot done.
End of quote

No doubt you (or your client) must contact to Stardock Sales: sales@stadock.com 

or at least to Stadock Support: support@stardock.com

Just do it and you'll get answers to all of your questions.

Reply #8 Top

the word "Silently" scares the CRAP out of me.. sounds like someone wants to "INFECT" people's machines..

Reply #9 Top

the word "Silently" scares the CRAP out of me.. sounds like someone wants to "INFECT" people's machines..
End of quote

THIS IS REALLY FUNNY! :thumbsup: