empty space in path not being handled even after adding ".dos"

Comments

9 comments

  • Avatar
    michiel

    Hi,

    Could you give the full name of the path? Also, which IB version are you using?

    Regards,

    Michiel

    0
    Comment actions Permalink
  • Avatar
    Yinkun Xue

    Hi Michiel, the full path looks like this "D:\dev\test pathname\" , it is the path where we launch the installer.

    BTW, if we removed the space in the string, make it "D:\dev\test_pathname\" , everything works fine.

    Here is the version we are using:

    BitRock InstallBuilder Multiplatform Enterprise    , Version: 17.10.0 (2017-10-27)

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Yinkun,

    Please note that the file or folder should exist for this modifier to take effect. Can you confirm this is the case?

    Best regards,

    Michiel D'Hont

     

     

    0
    Comment actions Permalink
  • Avatar
    Yinkun Xue

    Yes, the folder and file exist. 

    again, If the folder is named "test_pathname"  , the path is "D:\dev\test_pathname\", everything works fine.

    if we rename the folder to  "test pathname"  , the path is "D:\dev\test pathname\", it fails.

    I am also including my script xml here:

    <runProgram>
    <program>${installer_directory.dos}\executables\stampkey.exe</program>
    <programArguments>${jttk_key} ${installer_directory.dos}\x86\mytarget.dll</programArguments>
    </runProgram>

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Yinkun,

    Could you check the return value of 

    <consoleWrite text="${installer_directory.dos}"/>

    Regards,

    Michiel D'Hont

     

     

     

    0
    Comment actions Permalink
  • Avatar
    Yinkun Xue

    I printed out both ${installer_directory} and ${installer_directory.dos} , appear to be the same-----  D:\dev\test pathname\

    0
    Comment actions Permalink
  • Avatar
    Lam

    Hi,

    I am experiencing a similar problem. My installdir has spaces in one of it directory "My Wine Dir". We running a wine solution and when I try to execute the path, it keep returning an error due to the spacing. Can someone please help how I can achieve this?

    <setInstallerVariable>
    <name>installdir</name>
    <value>/home/${username}/.wine/My Wine Dir/drive_c</value>
    </setInstallerVariable>

    wine regedit ${installdir_wine.dos}/sample/sample.reg
    0
    Comment actions Permalink
  • Avatar
    Lam

    Just FYI, I got it working by putting quotation around installdir:

    wine regedit "${installdir_wine.dos}"/sample/sample.reg
    0
    Comment actions Permalink
  • Avatar
    BitRock support

    Thank you for sharing the solution with the community.

    0
    Comment actions Permalink

Please sign in to leave a comment.