Inno setup 具有用户特定设置的全局安装?

发布于 2024-09-10 07:16:34 字数 248 浏览 1 评论 0原文

这里没有设置问题...

我正在制作一个程序,应该为所有用户全局安装,但每个用户都有自己的程序特定设置,绝对不应该共享这些设置。为了以在 Windows 7 中运行良好的方式实现这一点,我让程序本身在 {userappdata} 下创建一个文件夹来存储其设置。但是,我希望安装程序能够进行彻底卸载,这意味着我的卸载程序(当然以管理员身份运行)需要删除每个拥有该文件夹的用户的文件夹。

有谁知道我该怎么做?我很困惑...

Inno setup question here...

I'm making a program which should be installed globally for all users, but where each user has his own specific settings for the program, which should definitely not be shared. To pull this off in a way which works well in Windows 7, I made the program itself create a folder under {userappdata} to store its settings in. However, I would like the setup to be able to do a clean uninstall, which would mean that my uninstaller (ran as admin, of course) needs to delete the folder for each user that has it.

Does anyone have any idea how I could do this? I'm stumped...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光无声 2024-09-17 07:16:34

您可以让应用程序记录为其创建配置文件的用户,然后将删除逻辑放入主程序或实用程序应用程序中,并在卸载时通过 inno 的 [UninstallRun] 文件名运行它:“{应用程序}\WHATEVER.EXE";参数:“/uninstall”

另一种方法是让您的主应用程序动态地将详细信息附加到安装在应用程序目录中的卸载 bat/vbs 并运行它。

我能想到的唯一其他方法是在卸载事件中使用 Pascal 脚本。

You could have the application record the users for which it has created a configuration file, then put the deletion logic in either your main program or a utility application and run it at uninstall-time via inno's [UninstallRun] Filename: "{app}\WHATEVER.EXE"; Parameters: "/uninstall".

Another approach would be to have your main app dynamically append details to an uninstall bat/vbs installed in the application dir and run that.

The only other way I can think of to do this is to use Pascal scripting in the uninstall event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文