setup.bat will not work on directories with spaces

Hi,

The file wMServiceDesigner-10.4-R01-win-x64-JDK\wMServiceDesigner\setup.bat is missing quotes in the path files so it will fail if you extracted the installation files in a directory which has spaces in its path.

Original:


SET INSTALL_ROOT=%~dp0
%INSTALL_ROOT%\jvm\jvm\bin\java -jar %INSTALL_ROOT%\install\lib\designersetup.jar %INSTALL_ROOT%

However you can’t just simply quote everything as the installer is not correctly unquoting its argument, and it will also fail with the following error:


Installation root folder : C:\<path with spaces>\wMServiceDesigner-10.4-R01-win-x64-JDK\wMServiceDesigner"
Designer/eclipse/eclipse.ini file is updated.
Designer/eclipse/configuration/config.ini file is updated.
install/bin/setenv.bat file is updated.
Exception in thread "main" java.io.FileNotFoundException: C:\<path with spaces>\wMServiceDesigner-10.4-R01-win-x6
4-JDK\wMServiceDesigner"\IntegrationServer\config\server.cnf 

        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
        at com.softwareag.is.designer.setup.PathSetup.createServerConfig(PathSetup.java:81)
        at com.softwareag.is.designer.setup.PathSetup.main(PathSetup.java:30)

I’ll relocate the files to another path, hoping this is the only bug in the installer.

Cheers.

Hi,

Some third-party applications used by runtime products have limitations regarding spaces in the installation directory. Software AG recommends unzip ‘wM Service Designer’ archive in a directory that does not include spaces.

We would review the install steps and update with this prerequisite shortly.

Thank you for reporting.

-Thanks, Sanjib

yes, but it is also an issue with the classpath.
we have spaces in our local workstations classpath, and it is not escaped or quoted. What I had to do to make the included IS able to startup was to edit the server.bat and change

if %USE_ENV_CLASSPATH%==true (
	set ENV_CLASSPATH=%SAVED_CP%
)

to


if %USE_ENV_CLASSPATH%==true (
	set ENV_CLASSPATH="%SAVED_CP%"
)