$TARGETDIR$ adding extra \\

Got a problem you cannot solve? Try here.
Post Reply
CBiggerstaff
Posts: 6
Joined: Thu Sep 29, 2005 3:00 am
Contact:

$TARGETDIR$ adding extra \\

Post by CBiggerstaff »

$TARGETDIR$ is adding an extra slash after Program Files. If I select "C:\\Program Files\\My Product" as my install folder $TARGETDIR$ is returning "C:\\Program Files\\\\My Product\\" not "C:\\Program Files\\My Product\\" as it should (unless I'm missing something). I have the code below:

Code: Select all

Run Program $WINDIR$Microsoft.NET\\Framework\\v2.0.50727\\Regasm.exe $TARGETDIR$WindImageAM.dll /codebase /nologo /tlb (WAIT)
MessageBox: test, "$TARGETDIR$WindImageAM.dll"
I couldn't figure out why Regasm wasn't generating the tlb file. The messagebox brought the issue to light showing the extra slash.

Is this a known bug? I was strongly considering buying the program, but I need to get my install working first.
Alex_Ronquillo
Site Admin
Posts: 364
Joined: Mon Jul 30, 2007 11:51 am
Location: USA
Contact:

Post by Alex_Ronquillo »

CBiggerstaff,

The problem is that you have "$PROGRAMFILES$\\My Product" as the Target Folder. Try changing that to "$PROGRAMFILES$My Product" as $PROGRAMFILES$ variable contains a leading back slash.
Alejandro Ronquillo
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/
Post Reply