我正在为一个程序编写安装程序,它使用注册表项存储用户设置。目前,我已将其设置为在卸载程序时删除这些注册表文件,但我希望能够给用户提供选择保留或删除注册表文件的选项。
我不是最擅长脚本编写/编程的人,因此越简单的答案越好。
我的注册表/卸载当前看起来像这样。
[Registry]
Root: HKCU; Subkey: "Software\FFSPLIT Overlay Filter"; Flags: uninsdeletekey
[UninstallDelete]
Type: filesandordirs; Name: "{app}\ffmpeg"
Type: filesandordirs; Name: "{app}\OverlayData"
Type: files; Name: "{app}\AForge.Controls.dll"
Type: files; Name: "{app}\AForge.Imaging.dll"
Type: files; Name: "{app}\AForge.Video.DirectShow.dll"
Type: files; Name: "{app}\AForge.Video.dll"
Type: files; Name: "{app}\AudioFilter.ax"
Type: files; Name: "{app}\default.cfg"
Type: files; Name: "{app}\DirectShowLib-2005.dll"
Type: files; Name: "{app}\ffmpeg.exe"
Type: files; Name: "{app}\FFSplit Overlay Filter.ax"
Type: files; Name: "{app}\FFsplit.exe"
Type: files; Name: "{app}\FFSplitOverlayManager.exe"
Type: files; Name: "{app}\librtmp.dll"
Type: files; Name: "{app}\msvcp100d.dll"
Type: files; Name: "{app}\msvcr100d.dll"
Type: files; Name: "{app}\NAudio.dll"
Type: files; Name: "{app}\RegisterFilter.bat"
Type: files; Name: "{app}\setting.cfg"
Type: files; Name: "{app}\UNRegisterFilter.bat"
Type: files; Name: "{app}\wavbuffer"
Type: files; Name: "{app}\Micfilter.ax"
[Files]
条目安装的任何内容,您不需要使用[UninstallDelete]
条目--它们默认情况下会被卸载。请注意保持原意并使翻译通俗易懂。 - Miral