密码保护的安装程序.net

时间:2018-06-16 15:15:37

标签: c# wpf sqlite windows-services installer

我正在使用具有WPF窗口的解决方案,该窗口正在使用SQLLite数据库和使用数据库数据的Windows服务。此外,WPF窗口使用了Windows服务的安装程序和卸载程序。

该程序的主要思想是控制对所有程序的访问/拒绝。我已完成所有脚本,但我必须为此解决方案创建安装程序和卸载程序,并且卸载程序必须受密码保护(此程序与父控制程序具有相同的想法,因此某些用户不必能够使用/删除程序)也许还有其他解决方案来保护它而不创建安装程序和卸载程序?

我认为use能够删除所有文件,但是Windows服务仍然可以工作,因为它之前是由WPF窗口安装的。它似乎是一个很好的解决方案,但在这种情况下,将删除SQLLite数据库。

1 个答案:

答案 0 :(得分:0)

让Windows服务和/或wpf应用程序在运行时创建/复制数据库并将其放在另一个目录中(例如jQuery(function($){ $('.misha_loadmore').click(function(){ var button = $(this), data = { 'action': 'loadmore', 'query': misha_loadmore_params.posts, // that's how we get params from wp_localize_script() function 'page' : misha_loadmore_params.current_page }; $.ajax({ url : misha_loadmore_params.ajaxurl, // AJAX handler data : data, type : 'POST', beforeSend : function ( xhr ) { button.text('Loading...'); // change the button text, you can also add a preloader image }, success : function( data ){ if( data ) { button.text( 'More posts' ).prev().before(data); // insert new posts $('.home-grid').masonry('reloadItems'); misha_loadmore_params.current_page++; if ( misha_loadmore_params.current_page == misha_loadmore_params.max_page ) button.remove(); // if last page, remove the button // you can also fire the "post-load" event here if you use a plugin that requires it // $( document.body ).trigger( 'post-load' ); } else { button.remove(); // if no data, remove the button as well } } }); }); )。这样,当用户决定卸载程序时,他们的本地数据库将不会从他们的计算机中删除。

相关问题