简体   繁体   English

应用程序如何分辨用户在“数据库文件夹”对话框中选择的文件夹?

[英]How can the app tell which folder the user selected in the Database Folder dialog?

使用Installshield 2012 Spring为C#.Net Windows应用程序生成setup.exe,该应用程序如何判断用户在“数据库文件夹”对话框中选择的文件夹?

Set InstallShield to have MSI write a log. 将InstallShield设置为让MSI写入日志。 Have the app look for a line like the following in the log 让应用在日志中查找类似于以下内容的行

PROPERTY CHANGE: Modifying DATABASEDIR property. 属性更改:修改DATABASEDIR属性。 Its current value is 'C:\\Database\\'. 当前值为“ C:\\ Database \\”。 Its new value: 'C:\\'. 其新值:“ C:\\”。

Details: InstallShield/Installation Designer/General/Create MSI Logs/Yes. 详细信息:InstallShield /安装设计器/常规/创建MSI日志/是。 To find the log file Use Run/%temp% Write code in the app to read this log file, search for the key lines and thus get the answer. 查找日志文件使用Run /%temp%在应用程序中编写代码以读取此日志文件,搜索关键行并获得答案。

暂无
暂无

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

相关问题 如何使用FolderBrowserDialog保存和加载用户最后选择的文件夹? - How can I save and load the last selected folder by user with FolderBrowserDialog? 数据库不会存储在所选文件夹中 - DataBase will not store in selected folder 如何在用户选择的根文件夹中创建一个包含一些子文件夹的文件夹? - How to create a folder having some subfolders, in a root folder selected by the user? 如何在用户的 AppData 文件夹中的 app 文件夹中创建一个文件夹,例如 C:\\User\\AppData? - How can I create a folder in the app folder in the user's AppData folder e.g. C:\User\AppData? 我如何告诉我的项目使用项目文件夹中的数据库 - How I tell my project to use the database in project folder 为什么 FolderBrowserDialog 对话框不滚动到选定的文件夹? - Why FolderBrowserDialog dialog does not scroll to selected folder? 从mvc4中的文件夹浏览对话框中获取选定的文件夹路径 - Get selected folder path from a folder browsing dialog in mvc4 WPF 文件夹浏览器对话框,显示外部设备并可导航到用户给定的文件夹路径 - WPF folder browser dialog that shows external devices and can navigate to user-given folder path 如何跟踪用户选择的最后一个文件夹? - How do I keep track of the last folder selected by a user? 如何允许应用程序用户选择可以保存应用程序文档的文件夹位置 - How to allow app user to select a folder location where in app documents can be saved
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM