简体   繁体   中英

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. Have the app look for a line like the following in the log

PROPERTY CHANGE: Modifying DATABASEDIR property. Its current value is 'C:\\Database\\'. Its new value: 'C:\\'.

Details: InstallShield/Installation Designer/General/Create MSI Logs/Yes. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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