Issue with Convert Short Path and File Association
Posted: Tue Nov 16, 2010 5:14 pm
I need to associate a file to my application which I can do just fine without any problems not using short paths. It is reccomended that short paths be used so that windows does not get confused about spaces or special characters. To do this I was trying to use the following code:
Set Variable SHORT_PATH to $TARGETDIR$\bin\PROGRAM.exe
Convert to Short Path: SHORT_PATH
Create File Type Comp.PROGRAM with extensions .PRG and associate with program $SHORT_PATH$
The problem is that apply install is called after this. This means that the Convert to Short Path command is not able to get the path $TARGETDIR$\bin\PROGRAM.exe because it does not exist until the apply install. Calling 2 apply installs is not a valid option because it does not work as expected. ie. if you pin a short cut to task bar with the first apply install then it gets pined a second time with the second apply install.
if anyone has a way of doing this it would help a lot!
Matthew
Set Variable SHORT_PATH to $TARGETDIR$\bin\PROGRAM.exe
Convert to Short Path: SHORT_PATH
Create File Type Comp.PROGRAM with extensions .PRG and associate with program $SHORT_PATH$
The problem is that apply install is called after this. This means that the Convert to Short Path command is not able to get the path $TARGETDIR$\bin\PROGRAM.exe because it does not exist until the apply install. Calling 2 apply installs is not a valid option because it does not work as expected. ie. if you pin a short cut to task bar with the first apply install then it gets pined a second time with the second apply install.
if anyone has a way of doing this it would help a lot!
Matthew