I have some difficulties with passing a path as a custom action parameter.
In my custom action, i pass a path like this :
/myPath="[PATHPROPERTY]\"
If the path entered by the user is let's say
C:\Programs Files\ProgramX
There is no problem.
However if the user enter :
C:\Programs Files\ProgramX\ ( notice the trailing backslash ) it will crash.
Any idea why I have this problem?
The ideal solution would accept :
C:\Programs Files\ProgramX
and
C:\Programs Files\ProgramX\ as a valid path.
I can also clean the path string in my custom action afterwards, but I only need the data to be passed to my custom action.
I thank you very much in advance.
Note : I use Visual Studio .net without any authorware
Francois Tremblay
