function self.ready() { centerize(scaleIt(800), scaleIt(600)); } var install_path = ""; class Install: Reactor.Component { function render() { return
{translate('Installation')}
{translate('Installation Path')} {": "}
{translate('Create start menu shortcuts')}
{translate('Create desktop icon')}
{translate('End-user license agreement')}
{translate('agreement_tip')}
{handler.show_run_without_install() && }
; } event click $(#cancel) { view.close(); } event click $(#run-without-install) { handler.run_without_install(); } event click $(#path) { install_path = view.selectFolder() || ""; if (install_path) { install_path = install_path.urlUnescape(); install_path = install_path.replace("file://", "").replace("/", "\\"); if (install_path[install_path.length - 1] != "\\") install_path += "\\"; install_path += handler.get_app_name(); $(#path_input).value = install_path; } } event click $(#aggrement) { view.open_url("http://rustdesk.com/privacy"); } event click $(#submit) { for (var el in $$(button)) el.state.disabled = true; $(progress).style.set{ display: "inline-block" }; var args = ""; if ($(#startmenu).value) { args += "startmenu "; } if ($(#desktopicon).value) { args += "desktopicon "; } view.install_me(args, install_path); } } $(body).content();