2

I'm trying to create a setup with Inno Setup.

In the run section, I want to launch a bat with two parameters but in the first parameters, there is a path file and a space is potentially inside. How to avoid the problem?

I found this topic in vain... Inno Setup, spaces and double quote in [Run]

Thanks for your help.

[Run]
Filename: {code:GetDirSQL|0}\installSQL\createBase\launchCreateParam.bat;
    Parameters:  {code:GetDirSQL|0}\installSQL\createBase {code:GetDossier|0}; 
    Description: {cm:LaunchProgram,LumisTraiteur}; 
    StatusMsg: Création de la base de données...; Check: instalDossier
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164

1 Answers1

1

See Parameters in Sections:

Parameters: """{code:GetDirSQL|0}\installSQL\createBase"" ""{code:GetDossier|0}"""

It may get more complicated, when the application, you are running, treats the quotes and spaces specially:

Martin Prikryl
  • 188,800
  • 56
  • 490
  • 992