Hello,
I have the following problem:
In the folder dialog of the setup I have registered a custom action on the next button to set a property value with APPDIR and a specific file name, replacing all "\" to "\\" for a Unix Dev Environment.
On one file there is a text file update to replace a certain string in the file with the new property value.
After installing the software the string in the file is always replaced by the initial value of the property, not by the value created in the custon action.
- initial value of [Path_2_Win32exe] is "{unknown}"
- Custom action is VB script:
msgbox Session.Property("Path_2_Win32exe")
Session.Property("Path_2_Win32exe") = Session.Property("APPDIR") + "\MyFile.exe"
Session.Property("Path_2_Win32exe") = replace(Session.Property("Path_2_Win32exe"),"\\","\")
Session.Property("Path_2_Win32exe") = replace(Session.Property("Path_2_Win32exe"),"\","\\")
msgbox Session.Property("Path_2_Win32exe")
- In the first msgbox "{unknown}" is shown --> correct
- In the second msgbox for example "c:\\programs\\MyApp\\MyFile.exe" is shown --> correct
In the text file, where a replace action is configured with the text file update, the value "{unknown}" is set.
Can you Help?
We are using version 10.8
Best regards
Bernd
FOLLOW US
Get the latest news in Application Packaging