Run your application on Startup
Use this board to post your code snippets - tips and tricks
my windows 7 alerts me a registry changes
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that
Well Zachman thats what it is doingm changing registery to make it startup strait away.
i know im just commenting on what he said before me
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that
Thx for this lil snip cuz i can use this for software installer and uninstaller.
CodenStuff or anyone:
I have a settings window with a checkbox saying Run at startup and by default it is unchecked. If the user doesn't have the key in his registry and it attempts to remove the key, will it throw an error? Because I don't want an error saying something like:
"Registry key does not exist."
I especially don't want it to screw up there registry. So please help?
I have a settings window with a checkbox saying Run at startup and by default it is unchecked. If the user doesn't have the key in his registry and it attempts to remove the key, will it throw an error? Because I don't want an error saying something like:
"Registry key does not exist."
I especially don't want it to screw up there registry. So please help?
I think it will error because it is removing something that isnt there but check if it is there somehow? Also it wouldnt bugger the registry up
Hello Reboh,
Quick solution is to just put the delete code into a try...catch event like:
Quick solution is to just put the delete code into a try...catch event like:
Code: Select all
That way if it doesnt exist it wont do anything or show an error.Try
'Delete registry code here
Catch ex As Exception
End Try
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
Copyright Information
Copyright © Codenstuff.com 2020 - 2023