fazeelk
Posts: 32
Joined: Wed Sep 10, 2014 5:15 am

Installation fails when the SETUPEXEDIR contains blank space

Hi
I have to execute an exe in the published events of a push button. The exe file I have kept in the same folder where the setup resides. I have created a custom action with the following vbscript to execute the exe .

appSite=Session.Property("APP_SITE")
appName=Session.Property("APP_NAME")
setupDir=Session.Property("SETUPEXEDIR")
args = protocol+"://"+ appSite+ "/" + appName
batch = setupDir + "AppServiceTester.exe "+ Chr(34) & args & Chr(34)
Set objWshShell = CreateObject("Wscript.Shell")

But the installation is failing if the value of SETUPEXEDIR contains a blank space . eg(C:\My App\Setup\AppServiceTester.exe) .
Could you please update me how to resolve this issue?
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Installation fails when the SETUPEXEDIR contains blank s

Hi,
I have to execute an exe in the published events of a push button.
Since you want to launch an .EXE file, have you tried using the predefined Launch attached file custom action or the Launch file custom action?

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”