Skip to content

Instantly share code, notes, and snippets.

Created December 27, 2008 21:33
Show Gist options
  • Save anonymous/40315 to your computer and use it in GitHub Desktop.
Save anonymous/40315 to your computer and use it in GitHub Desktop.
if autostart == "ja"
if system("REG QUERY HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Bibel-Box")
else
system("REG ADD HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Bibel-Box /d #{RUBYSCRIPT2EXE.executable.gsub("/","\\")}")
end
elsif autostart == "nein"
if system("REG QUERY HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Bibel-Box")
system("REG DELETE HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run /v Bibel-Box /f")
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment