Code: Select all
Action 08:41:00: SQLBackupFileDialog. Dialog created
MSI (c) (B8:20) [08:42:14:785]: PROPERTY CHANGE: Adding AI_OFN_DLG_TITLE property. Its value is 'Select License File'.
MSI (c) (B8:20) [08:42:14:816]: PROPERTY CHANGE: Adding AI_OFN_FILTERS property. Its value is 'Backup Files (*.bak)|*.bak'.
MSI (c) (B8:20) [08:42:14:847]: PROPERTY CHANGE: Adding AI_OFN_FILEPATH property. Its value is 'C:\p4_PI-1091666_PI-126\AllDay\src_MSVS2K8\build\Backup\Test.bak\'.
MSI (c) (B8:20) [08:42:14:863]: Doing action: BrowseForFile
Action 08:42:14: BrowseForFile.
Action start 08:42:14: BrowseForFile.
MSI (c) (B8:0C) [08:42:15:050]: Invoking remote custom action. DLL: C:\DOCUME~1\ASH~1.MIC\LOCALS~1\Temp\MSI2C.tmp, Entrypoint: BrowseForFile
MSI (c) (B8!18) [08:42:15:472]: PROPERTY CHANGE: Deleting AI_OFN_FILEPATH property. Its current value is 'C:\p4_PI-1091666_PI-126\AllDay\src_MSVS2K8\build\Backup\Test.bak\'.
MSI (c) (B8!18) [08:42:15:519]: PROPERTY CHANGE: Deleting AI_OFN_FILTERS property. Its current value is 'Backup Files (*.bak)|*.bak'.
MSI (c) (B8!18) [08:42:15:535]: PROPERTY CHANGE: Deleting AI_OFN_DLG_TITLE property. Its current value is 'Select License File'.
Action ended 08:42:15: BrowseForFile. Return value 1.
1. The default file path value is generated using a "Property set with Formatted" custom action (in "InstallUISequence\Begin") with the Formatted Text of "[SETUPEXEDIR]Backup\Test.bak", yet the returned value has a "\" on the end of it (seen in the log as "...\Test.bak\") which stops the Browse dialog finding the file. How do I stop this unwanted "\" being added?
2. If the file specified in the 'AI_OFN_FILEPATH' property does not exist, the Browse dialog is not displayed. Once I click the Browse button, how can I validate whether the file exists and if it doesn't, use the "[SETUPEXEDIR]" folder (without a "\") instead?
Thanks.
Ash
FOLLOW US
Get the latest news in Application Packaging