UNC Paths corrupted when passed to RUN PROGRAM command

Got a problem you cannot solve? Try here.
JeffryPaul
Posts: 50
Joined: Fri Mar 02, 2007 6:56 pm

UNC Paths corrupted when passed to RUN PROGRAM command

Postby JeffryPaul » Tue Apr 03, 2007 2:08 pm

When I use the RUN PROGRAM command and pass a parameter that is a UNC path (\\\\servername\\sharepointname), the leading \\ character is eliminated.

For example: RUN COMMAND SETUP.EXE "VAR1=\\\\SERVER1\\MYAPPS"
Within Setup.exe, the VAR1 parameter is passed as \\SERVER1\\MYAPPS

Another post, http://forums.installaware.com/viewtopic.php?t=1267 also mentions this same issue, but the workaround provided is unacceptable since I don't know whether the user will browse to a local drive, mapped drive, or UNC path.

Does anyone have a different workaround?

JeffryPaul
Posts: 50
Joined: Fri Mar 02, 2007 6:56 pm

Postby JeffryPaul » Tue Apr 03, 2007 2:41 pm

As a workaround, I am using the following steps:

Set Variable CommandLine to $CMDLINE$
If $COMMANDLINE$ Contains "VAR1="
Set Variable VAR1 to $VAR1$
Parse VAR1 into String1 and String2 (at index 1)
If $String1$ equals \Set Variable VAR1 to \\$VAR1$
End
End

This bug has been around for 6 months. Will it be included in the next update?


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 89 guests