简体   繁体   English

NSIS卸载程序删除保存文件

[英]NSIS Uninstaller to remove save files

I am currently using NSIS to create an installer for my app. 我当前正在使用NSIS为我的应用程序创建安装程序。 My app is made using C# (with Unity3D) and I was wondering if there is an equivalent to the two following functions in C# that I am using to save files (save data and such) during the execution of my app, in Python. 我的应用程序是使用C#(带有Unity3D)制作的,我想知道在C#中是否有与我在Python执行过程中用来保存文件(保存数据等)的以下两个函数等效。

I want to know the paths to the save files to be able to remove them in my uninstaller ! 我想知道保存文件的路径,以便能够在卸载程序中将其删除!

Here are the paths : 这是路径:

Save path : 保存路径:

Application.persistentDataPath

Image path (the user is able to save some pictures in his picture folder) : 图像路径(用户可以在其图片文件夹中保存一些图片):

Environment.GetFolderPath(Environment.SpecialFolder.MyPictures)

Is there a way to get these paths in Python ? 有没有办法在Python中获得这些路径? Or in my .nsh file (where the uninstall files are listed) ? 还是在我的.nsh文件(列出了卸载文件)中?

The NSIS shell constants are listed in the help file (4.2.3 Constants). NSIS Shell常数在帮助文件中列出(4.2.3常数)。 You are probably looking for $APPDATA\\YourApp and $PICTURES ... 您可能正在寻找$APPDATA\\YourApp$PICTURES ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM