|
![]() |
#1 |
Junior Member
Join Date: Jun 2012
Posts: 12
|
![]()
Hi Guys,
I need some help here. I try to install an exe file with the following line: code: but it failed because of the Space. I was wondering why for MSI packages it work. code: Please help me. I need some light. Thanks a lot in advance. |
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You have one too many quotes in your command:
ExecWait "$\"$TEMP\setup.exe$\" /v$\" /norestart /qb INSTALLDIR=$\"C:\Program Files\Folder$\"" Should be ExecWait "$\"$TEMP\setup.exe$\" /v /norestart /qb INSTALLDIR=$\"C:\Program Files\Folder$\"" But next time, please use ` or ' quotes to prevent trouble like this. It also makes your code much more readable: ExecWait `"$TEMP\setup.exe" /v /norestart /qb INSTALLDIR="C:\Program Files\Folder"` |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Jun 2012
Posts: 12
|
I want to achieve this command line:
code: I believe it's not the quotation because if I manually input the following command: code: it will work. I believe $\" is the way of escaping ". It must have something to do with the space i think... because I coded it the way like the one I posted. Anyways I will try your suggestion. Thanks a lot... ![]() |
![]() |
![]() |
![]() |
#4 | |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
Quote:
Is there a way to prevent the /v" parameter? |
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Jun 2012
Posts: 12
|
@MSG
the sample is just in the command line. thus it is a relative path... @Afrow I already tried the one suggested but it only works on InstallDir with no space. I even changed /v" to /v still the same... ![]() |
![]() |
![]() |
![]() |
#6 |
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
As MSG said above, use ' or `:
Also don't use relative paths.code: Stu |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|